fix: Typo nfty -> ntfy
This commit is contained in:
parent
6cd445a691
commit
fb03c17a21
7 changed files with 29 additions and 29 deletions
|
@ -1,10 +0,0 @@
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: {{ include "nfty-sh.fullname" . }}-server-config
|
|
||||||
labels:
|
|
||||||
{{- include "nfty-sh.labels" . | nindent 4 }}
|
|
||||||
data:
|
|
||||||
server.yaml: |
|
|
||||||
enable-metrics: true
|
|
|
@ -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 "nfty-sh.fullname" -}}
|
{{- define "ntfy-sh.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 "nfty-sh.labels" -}}
|
{{- define "ntfy-sh.labels" -}}
|
||||||
helm.sh/chart: {{ include "nfty-sh.chart" . }}
|
helm.sh/chart: {{ include "ntfy-sh.chart" . }}
|
||||||
app.kubernetes.io/name: {{ include "nfty-sh.fullname" . }}
|
app.kubernetes.io/name: {{ include "ntfy-sh.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 "nfty-sh.chart" -}}
|
{{- define "ntfy-sh.chart" -}}
|
||||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" -}}
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
10
charts/ntfy-sh/templates/configuration.yaml
Normal file
10
charts/ntfy-sh/templates/configuration.yaml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: {{ include "ntfy-sh.fullname" . }}-server-config
|
||||||
|
labels:
|
||||||
|
{{- include "ntfy-sh.labels" . | nindent 4 }}
|
||||||
|
data:
|
||||||
|
server.yaml: |
|
||||||
|
enable-metrics: true
|
|
@ -1,22 +1,22 @@
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "nfty-sh.fullname" . }}
|
name: {{ include "ntfy-sh.fullname" . }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "ntfy-sh.labels" . | nindent 4 }}
|
{{- include "ntfy-sh.labels" . | nindent 4 }}
|
||||||
app.kubernetes.io/component: {{ include "nfty-sh.fullname" . }}-server
|
app.kubernetes.io/component: {{ include "ntfy-sh.fullname" . }}-server
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/component: {{ include "nfty-sh.fullname" . }}-server
|
app.kubernetes.io/component: {{ include "ntfy-sh.fullname" . }}-server
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/component: {{ include "nfty-sh.fullname" . }}-server
|
app.kubernetes.io/component: {{ include "ntfy-sh.fullname" . }}-server
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: {{ include "nfty-sh.fullname" . }}
|
serviceAccountName: {{ include "ntfy-sh.fullname" . }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ include "nfty-sh.fullname" . }}-server
|
- name: {{ include "ntfy-sh.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 "nfty-sh.fullname" . }}-server
|
- name: {{ include "ntfy-sh.fullname" . }}-server
|
||||||
mountPath: "/var/lib/nfty"
|
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 "nfty-sh.fullname" . }}-server
|
- name: {{ include "ntfy-sh.fullname" . }}-server
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ .Values.persistence.existingClaim }}
|
claimName: {{ .Values.persistence.existingClaim }}
|
||||||
- name: config
|
- name: config
|
||||||
configMap:
|
configMap:
|
||||||
name: {{ include "nfty-sh.fullname" . }}-server-config
|
name: {{ include "ntfy-sh.fullname" . }}-server-config
|
|
@ -2,13 +2,13 @@
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "nfty-sh.fullname" . }}-server
|
name: {{ include "ntfy-sh.fullname" . }}-server
|
||||||
labels:
|
labels:
|
||||||
{{- include "ntfy-sh.labels" . | nindent 4 }}
|
{{- include "ntfy-sh.labels" . | nindent 4 }}
|
||||||
app.kubernetes.io/component: {{ include "nfty-sh.fullname" . }}-server
|
app.kubernetes.io/component: {{ include "ntfy-sh.fullname" . }}-server
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
app: {{ include "nfty-sh.fullname" . }}-server
|
app: {{ include "ntfy-sh.fullname" . }}-server
|
||||||
ports:
|
ports:
|
||||||
- port: 80
|
- port: 80
|
||||||
targetPort: 80
|
targetPort: 80
|
|
@ -2,7 +2,7 @@ config:
|
||||||
baseUrl: https://ntfy.sh
|
baseUrl: https://ntfy.sh
|
||||||
|
|
||||||
persistence:
|
persistence:
|
||||||
existingClaim: nfty-sh-server
|
existingClaim: ntfy-sh-server
|
||||||
|
|
||||||
image:
|
image:
|
||||||
repository: binwiederhier/ntfy
|
repository: binwiederhier/ntfy
|
Loading…
Reference in a new issue