Added commonLabels to argo-workflows

Signed-off-by: kvanzuijlen <8818390+kvanzuijlen@users.noreply.github.com>
This commit is contained in:
kvanzuijlen 2023-10-17 15:24:51 +02:00
parent df9ee892b5
commit 81a9a4e639
No known key found for this signature in database
GPG key ID: 3BD884D2AE99AD59
3 changed files with 7 additions and 0 deletions

View file

@ -108,6 +108,7 @@ Fields to note:
|-----|------|---------|-------------| |-----|------|---------|-------------|
| apiVersionOverrides.autoscaling | string | `""` | String to override apiVersion of autoscaling rendered by this helm chart | | apiVersionOverrides.autoscaling | string | `""` | String to override apiVersion of autoscaling rendered by this helm chart |
| apiVersionOverrides.cloudgoogle | string | `""` | String to override apiVersion of GKE resources rendered by this helm chart | | apiVersionOverrides.cloudgoogle | string | `""` | String to override apiVersion of GKE resources rendered by this helm chart |
| commonLabels | object | `{}` | Labels to set on all resources |
| crds.annotations | object | `{}` | Annotations to be added to all CRDs | | crds.annotations | object | `{}` | Annotations to be added to all CRDs |
| crds.install | bool | `true` | Install and upgrade CRDs | | crds.install | bool | `true` | Install and upgrade CRDs |
| crds.keep | bool | `true` | Keep CRDs on chart uninstall | | crds.keep | bool | `true` | Keep CRDs on chart uninstall |

View file

@ -79,6 +79,9 @@ helm.sh/chart: {{ include "argo-workflows.chart" .context }}
{{ include "argo-workflows.selectorLabels" (dict "context" .context "component" .component "name" .name) }} {{ include "argo-workflows.selectorLabels" (dict "context" .context "component" .component "name" .name) }}
app.kubernetes.io/managed-by: {{ .context.Release.Service }} app.kubernetes.io/managed-by: {{ .context.Release.Service }}
app.kubernetes.io/part-of: argo-workflows app.kubernetes.io/part-of: argo-workflows
{{- with .Values.commonLabels }}
{{ toYaml .}}
{{- end }}
{{- end }} {{- end }}
{{/* {{/*

View file

@ -26,6 +26,9 @@ nameOverride:
# -- String to fully override "argo-workflows.fullname" template # -- String to fully override "argo-workflows.fullname" template
fullnameOverride: fullnameOverride:
# -- Labels to set on all resources
commonLabels: {}
# -- Override the Kubernetes version, which is used to evaluate certain manifests # -- Override the Kubernetes version, which is used to evaluate certain manifests
kubeVersionOverride: "" kubeVersionOverride: ""