feat: use helper
Some checks failed
lint-test-helm / lint-helm (pull_request) Failing after 1m22s
lint-test-helm / validate-kubeconform (pull_request) Has been skipped

This commit is contained in:
2026-04-19 21:03:44 -05:00
parent 00d5109152
commit 60213a92d3
29 changed files with 234 additions and 112 deletions

View File

@@ -0,0 +1,14 @@
{{/*
Common labels
*/}}
{{- define "dawarich.labels" -}}
{{ include "dawarich.selectorLabels" $ }}
{{- end }}
{{/*
Selector labels
*/}}
{{- define "dawarich.selectorLabels" -}}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/part-of: {{ .Release.Name }}
{{- end }}

View File

@@ -4,9 +4,8 @@ metadata:
name: dawarich-key
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: {{ .Template.Name }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/part-of: {{ .Release.Name }}
app.kubernetes.io/name: dawarich-key
{{- include "dawarich.labels" . | nindent 4 }}
spec:
secretStoreRef:
kind: ClusterSecretStore
@@ -24,9 +23,8 @@ metadata:
name: dawarich-oidc-authentik
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: {{ .Template.Name }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/part-of: {{ .Release.Name }}
app.kubernetes.io/name: dawarich-oidc-authentik
{{- include "dawarich.labels" . | nindent 4 }}
spec:
secretStoreRef:
kind: ClusterSecretStore