From fb03c17a218ac5e3cbcc41493d0d8ed311463032 Mon Sep 17 00:00:00 2001 From: Tommy Skaug <104122981+tommy-skaug@users.noreply.github.com> Date: Sat, 6 Apr 2024 16:19:39 +0000 Subject: [PATCH] fix: Typo nfty -> ntfy --- charts/nfty-sh/templates/configuration.yaml | 10 ---------- charts/{nfty-sh => ntfy-sh}/Chart.yaml | 0 .../templates/_helpers.tpl | 10 +++++----- charts/ntfy-sh/templates/configuration.yaml | 10 ++++++++++ .../templates/deployment-server.yaml | 20 +++++++++---------- .../templates/service-server.yaml | 6 +++--- charts/{nfty-sh => ntfy-sh}/values.yaml | 2 +- 7 files changed, 29 insertions(+), 29 deletions(-) delete mode 100644 charts/nfty-sh/templates/configuration.yaml rename charts/{nfty-sh => ntfy-sh}/Chart.yaml (100%) rename charts/{nfty-sh => ntfy-sh}/templates/_helpers.tpl (78%) create mode 100644 charts/ntfy-sh/templates/configuration.yaml rename charts/{nfty-sh => ntfy-sh}/templates/deployment-server.yaml (69%) rename charts/{nfty-sh => ntfy-sh}/templates/service-server.yaml (51%) rename charts/{nfty-sh => ntfy-sh}/values.yaml (76%) diff --git a/charts/nfty-sh/templates/configuration.yaml b/charts/nfty-sh/templates/configuration.yaml deleted file mode 100644 index 5ccf348..0000000 --- a/charts/nfty-sh/templates/configuration.yaml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/charts/nfty-sh/Chart.yaml b/charts/ntfy-sh/Chart.yaml similarity index 100% rename from charts/nfty-sh/Chart.yaml rename to charts/ntfy-sh/Chart.yaml diff --git a/charts/nfty-sh/templates/_helpers.tpl b/charts/ntfy-sh/templates/_helpers.tpl similarity index 78% rename from charts/nfty-sh/templates/_helpers.tpl rename to charts/ntfy-sh/templates/_helpers.tpl index 71739f8..cfd98ab 100644 --- a/charts/nfty-sh/templates/_helpers.tpl +++ b/charts/ntfy-sh/templates/_helpers.tpl @@ -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 }} diff --git a/charts/ntfy-sh/templates/configuration.yaml b/charts/ntfy-sh/templates/configuration.yaml new file mode 100644 index 0000000..d587e14 --- /dev/null +++ b/charts/ntfy-sh/templates/configuration.yaml @@ -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 \ No newline at end of file diff --git a/charts/nfty-sh/templates/deployment-server.yaml b/charts/ntfy-sh/templates/deployment-server.yaml similarity index 69% rename from charts/nfty-sh/templates/deployment-server.yaml rename to charts/ntfy-sh/templates/deployment-server.yaml index 29e711d..d72498d 100644 --- a/charts/nfty-sh/templates/deployment-server.yaml +++ b/charts/ntfy-sh/templates/deployment-server.yaml @@ -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 \ No newline at end of file + name: {{ include "ntfy-sh.fullname" . }}-server-config \ No newline at end of file diff --git a/charts/nfty-sh/templates/service-server.yaml b/charts/ntfy-sh/templates/service-server.yaml similarity index 51% rename from charts/nfty-sh/templates/service-server.yaml rename to charts/ntfy-sh/templates/service-server.yaml index c91d844..eb872c4 100644 --- a/charts/nfty-sh/templates/service-server.yaml +++ b/charts/ntfy-sh/templates/service-server.yaml @@ -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 \ No newline at end of file diff --git a/charts/nfty-sh/values.yaml b/charts/ntfy-sh/values.yaml similarity index 76% rename from charts/nfty-sh/values.yaml rename to charts/ntfy-sh/values.yaml index 27e4799..9ea091f 100644 --- a/charts/nfty-sh/values.yaml +++ b/charts/ntfy-sh/values.yaml @@ -2,7 +2,7 @@ config: baseUrl: https://ntfy.sh persistence: - existingClaim: nfty-sh-server + existingClaim: ntfy-sh-server image: repository: binwiederhier/ntfy