fix: Typo nfty -> ntfy

This commit is contained in:
Tommy Skaug 2024-04-06 16:19:39 +00:00
parent 6cd445a691
commit fb03c17a21
7 changed files with 29 additions and 29 deletions

View file

@ -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

View file

@ -3,7 +3,7 @@
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).
*/}}
{{- define "nfty-sh.fullname" -}}
{{- define "ntfy-sh.fullname" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end }}
@ -11,9 +11,9 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
{{/*
Common labels
*/}}
{{- define "nfty-sh.labels" -}}
helm.sh/chart: {{ include "nfty-sh.chart" . }}
app.kubernetes.io/name: {{ include "nfty-sh.fullname" . }}
{{- define "ntfy-sh.labels" -}}
helm.sh/chart: {{ include "ntfy-sh.chart" . }}
app.kubernetes.io/name: {{ include "ntfy-sh.fullname" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Chart.Version | quote }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
@ -23,7 +23,7 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
{{/*
Generate basic labels
*/}}
{{- define "nfty-sh.chart" -}}
{{- define "ntfy-sh.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" -}}
{{- end }}

View 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

View file

@ -1,22 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "nfty-sh.fullname" . }}
name: {{ include "ntfy-sh.fullname" . }}
labels:
{{- 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
selector:
matchLabels:
app.kubernetes.io/component: {{ include "nfty-sh.fullname" . }}-server
app.kubernetes.io/component: {{ include "ntfy-sh.fullname" . }}-server
template:
metadata:
labels:
app.kubernetes.io/component: {{ include "nfty-sh.fullname" . }}-server
app.kubernetes.io/component: {{ include "ntfy-sh.fullname" . }}-server
spec:
serviceAccountName: {{ include "nfty-sh.fullname" . }}
serviceAccountName: {{ include "ntfy-sh.fullname" . }}
containers:
- name: {{ include "nfty-sh.fullname" . }}-server
- name: {{ include "ntfy-sh.fullname" . }}-server
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
args: ["serve"]
env: &dispatchEnv
@ -42,16 +42,16 @@ metadata:
- containerPort: 80
name: http
volumeMounts:
- name: {{ include "nfty-sh.fullname" . }}-server
mountPath: "/var/lib/nfty"
- name: {{ include "ntfy-sh.fullname" . }}-server
mountPath: "/var/lib/ntfy"
readOnly: false
- name: config
mountPath: "/etc/ntfy"
readOnly: true
volumes:
- name: {{ include "nfty-sh.fullname" . }}-server
- name: {{ include "ntfy-sh.fullname" . }}-server
persistentVolumeClaim:
claimName: {{ .Values.persistence.existingClaim }}
- name: config
configMap:
name: {{ include "nfty-sh.fullname" . }}-server-config
name: {{ include "ntfy-sh.fullname" . }}-server-config

View file

@ -2,13 +2,13 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "nfty-sh.fullname" . }}-server
name: {{ include "ntfy-sh.fullname" . }}-server
labels:
{{- 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:
selector:
app: {{ include "nfty-sh.fullname" . }}-server
app: {{ include "ntfy-sh.fullname" . }}-server
ports:
- port: 80
targetPort: 80

View file

@ -2,7 +2,7 @@ config:
baseUrl: https://ntfy.sh
persistence:
existingClaim: nfty-sh-server
existingClaim: ntfy-sh-server
image:
repository: binwiederhier/ntfy