diff --git a/docs/helm/hydra-maester.md b/docs/helm/hydra-maester.md index 96a14f831..35aef06d8 100644 --- a/docs/helm/hydra-maester.md +++ b/docs/helm/hydra-maester.md @@ -9,6 +9,8 @@ Hydra Maester is a part of the Hydra chart and is installed together with it. ## Configuration - `enabledNamespaces` defines the namespaces in which instances of `oauth2clients.hydra.ory.sh/v1alpha1` CR can be created. By default, users are allowed to create CR instances only in the controller's native namespace. +- `deployment.podLabels` permit to set custom additional labels on hydra-maester controller pod. +- `job.podLabels` permit to set custom additional labels on hydra-maester job init-crd pod (which setup crd on cluster). You can set the values in the `values.yaml` file or using the `--set` syntax of Helm during chart installation. diff --git a/helm/charts/hydra-maester/Chart.yaml b/helm/charts/hydra-maester/Chart.yaml index a6dc1eab9..9fd231a85 100644 --- a/helm/charts/hydra-maester/Chart.yaml +++ b/helm/charts/hydra-maester/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 appVersion: "v0.0.19" description: A Helm chart for Kubernetes name: hydra-maester -version: 0.5.0 +version: 0.5.1 type: application diff --git a/helm/charts/hydra-maester/templates/crd-job.yaml b/helm/charts/hydra-maester/templates/crd-job.yaml index c9717a0db..a2f15e4dc 100644 --- a/helm/charts/hydra-maester/templates/crd-job.yaml +++ b/helm/charts/hydra-maester/templates/crd-job.yaml @@ -11,6 +11,10 @@ metadata: spec: template: metadata: + {{- with .Values.job.podLabels }} + labels: + {{- toYaml . | nindent 8 }} + {{- end }} annotations: sidecar.istio.io/inject: "false" spec: diff --git a/helm/charts/hydra-maester/templates/deployment.yaml b/helm/charts/hydra-maester/templates/deployment.yaml index dfbcb6640..db3ea0328 100644 --- a/helm/charts/hydra-maester/templates/deployment.yaml +++ b/helm/charts/hydra-maester/templates/deployment.yaml @@ -19,6 +19,9 @@ spec: control-plane: controller-manager app.kubernetes.io/name: {{ include "hydra-maester.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} + {{- with .Values.deployment.podLabels }} + {{- toYaml . | nindent 8 }} + {{- end }} {{- with .Values.annotations }} annotations: {{- toYaml . | nindent 8 }} diff --git a/helm/charts/hydra-maester/values.yaml b/helm/charts/hydra-maester/values.yaml index 0d9b34b76..29b15f81f 100644 --- a/helm/charts/hydra-maester/values.yaml +++ b/helm/charts/hydra-maester/values.yaml @@ -46,6 +46,10 @@ deployment: # Configure node tolerations. tolerations: [] annotations: {} + podLabels: {} + +job: + podLabels: {} # Configure node affinity affinity: {}