fix: change ntfy-sh to ntfy to try get out of template missing
This commit is contained in:
parent
c7b547d72c
commit
b71a6441be
5 changed files with 22 additions and 22 deletions
|
@ -4,7 +4,7 @@ description: |
|
||||||
ntfy lets you send push notifications to your phone or desktop via scripts from any computer
|
ntfy lets you send push notifications to your phone or desktop via scripts from any computer
|
||||||
appVersion: v2.10.0
|
appVersion: v2.10.0
|
||||||
type: application
|
type: application
|
||||||
version: 0.1.1
|
version: 0.1.2
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: Tommy Skaug
|
- name: Tommy Skaug
|
||||||
email: tommy@skaug.me
|
email: tommy@skaug.me
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
Create a default fully qualified app name.
|
Create a default fully qualified app name.
|
||||||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "ntfy-sh.fullname" -}}
|
{{- define "ntfy.fullname" -}}
|
||||||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
@ -11,9 +11,9 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
|
||||||
{{/*
|
{{/*
|
||||||
Common labels
|
Common labels
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "ntfy-sh.labels" -}}
|
{{- define "ntfy.labels" -}}
|
||||||
helm.sh/chart: {{ include "ntfy-sh.chart" . }}
|
helm.sh/chart: {{ include "ntfy.chart" . }}
|
||||||
app.kubernetes.io/name: {{ include "ntfy-sh.fullname" . }}
|
app.kubernetes.io/name: {{ include "ntfy.fullname" . }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/version: {{ .Chart.Version | quote }}
|
app.kubernetes.io/version: {{ .Chart.Version | quote }}
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
@ -23,7 +23,7 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
{{/*
|
{{/*
|
||||||
Generate basic labels
|
Generate basic labels
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "ntfy-sh.chart" -}}
|
{{- define "ntfy.chart" -}}
|
||||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" -}}
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "ntfy-sh.fullname" . }}-server-config
|
name: {{ include "ntfy.fullname" . }}-server-config
|
||||||
labels:
|
labels:
|
||||||
{{- include "ntfy-sh.labels" . | nindent 4 }}
|
{{- include "ntfy.labels" . | nindent 4 }}
|
||||||
data:
|
data:
|
||||||
server.yaml: |
|
server.yaml: |
|
||||||
enable-metrics: true
|
enable-metrics: true
|
|
@ -1,22 +1,22 @@
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "ntfy-sh.fullname" . }}
|
name: {{ include "ntfy.fullname" . }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "ntfy-sh.labels" . | nindent 4 }}
|
{{- include "ntfy.labels" . | nindent 4 }}
|
||||||
app.kubernetes.io/component: {{ include "ntfy-sh.fullname" . }}-server
|
app.kubernetes.io/component: {{ include "ntfy.fullname" . }}-server
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/component: {{ include "ntfy-sh.fullname" . }}-server
|
app.kubernetes.io/component: {{ include "ntfy.fullname" . }}-server
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/component: {{ include "ntfy-sh.fullname" . }}-server
|
app.kubernetes.io/component: {{ include "ntfy.fullname" . }}-server
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: {{ include "ntfy-sh.fullname" . }}
|
serviceAccountName: {{ include "ntfy.fullname" . }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ include "ntfy-sh.fullname" . }}-server
|
- name: {{ include "ntfy.fullname" . }}-server
|
||||||
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
|
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
|
||||||
args: ["serve"]
|
args: ["serve"]
|
||||||
env: &dispatchEnv
|
env: &dispatchEnv
|
||||||
|
@ -42,16 +42,16 @@ metadata:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
name: http
|
name: http
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: {{ include "ntfy-sh.fullname" . }}-server
|
- name: {{ include "ntfy.fullname" . }}-server
|
||||||
mountPath: "/var/lib/ntfy"
|
mountPath: "/var/lib/ntfy"
|
||||||
readOnly: false
|
readOnly: false
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: "/etc/ntfy"
|
mountPath: "/etc/ntfy"
|
||||||
readOnly: true
|
readOnly: true
|
||||||
volumes:
|
volumes:
|
||||||
- name: {{ include "ntfy-sh.fullname" . }}-server
|
- name: {{ include "ntfy.fullname" . }}-server
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ .Values.persistence.existingClaim }}
|
claimName: {{ .Values.persistence.existingClaim }}
|
||||||
- name: config
|
- name: config
|
||||||
configMap:
|
configMap:
|
||||||
name: {{ include "ntfy-sh.fullname" . }}-server-config
|
name: {{ include "ntfy.fullname" . }}-server-config
|
|
@ -2,13 +2,13 @@
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "ntfy-sh.fullname" . }}-server
|
name: {{ include "ntfy.fullname" . }}-server
|
||||||
labels:
|
labels:
|
||||||
{{- include "ntfy-sh.labels" . | nindent 4 }}
|
{{- include "ntfy.labels" . | nindent 4 }}
|
||||||
app.kubernetes.io/component: {{ include "ntfy-sh.fullname" . }}-server
|
app.kubernetes.io/component: {{ include "ntfy.fullname" . }}-server
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
app: {{ include "ntfy-sh.fullname" . }}-server
|
app: {{ include "ntfy.fullname" . }}-server
|
||||||
ports:
|
ports:
|
||||||
- port: 80
|
- port: 80
|
||||||
targetPort: 80
|
targetPort: 80
|
Loading…
Reference in a new issue