fix: add missing selectorlabels for podmonitor and source image tag from chart

This commit is contained in:
Tommy 2024-04-13 23:10:58 +02:00
parent ea8eb431f0
commit 477ea20fc8
No known key found for this signature in database
5 changed files with 21 additions and 4 deletions

View file

@ -4,7 +4,7 @@ description: |
ntfy lets you send push notifications to your phone or desktop via scripts from any computer
appVersion: v2.10.0
type: application
version: 0.2.1
version: 0.2.2
maintainers:
- name: Tommy Skaug
email: tommy@skaug.me

View file

@ -7,6 +7,13 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end }}
{{/*
Get the correct image tag name
*/}}
{{- define "ntfy.imageTag" -}}
{{- .Values.image.tag | default (printf "v%s" .Chart.AppVersion) -}}
{{- end -}}
# Define a template for standard labels.
{{/*
Common labels
@ -19,6 +26,14 @@ app.kubernetes.io/version: {{ .Chart.Version | quote }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}
{{/*
Selector labels
*/}}
{{- define "ntfy.selectorLabels" -}}
app.kubernetes.io/name: {{ include "ntfy.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end -}}
# Define a template for the chart name and version.
{{/*
Generate basic labels

View file

@ -17,7 +17,7 @@ spec:
serviceAccountName: {{ include "ntfy.fullname" . }}
containers:
- name: {{ include "ntfy.fullname" . }}-server
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
image: {{ .Values.image.repository }}:{{ include "ntfy.imageTag" . }}
args: ["serve"]
env:
- name: NTFY_BASE_URL

View file

@ -6,4 +6,7 @@ persistence:
image:
repository: binwiederhier/ntfy
tag: v2.10.0
prometheus:
podmonitor:
enabled: true

View file

@ -6,7 +6,6 @@ persistence:
image:
repository: binwiederhier/ntfy
tag: v2.10.0
prometheus:
podmonitor: