Skip to content

Commit

Permalink
Custom labels added for istio-cni deployment and pods in helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
Nischay Goyal committed Apr 26, 2024
1 parent e48725f commit 0715bf9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions manifests/charts/istio-cni/templates/daemonset.yaml
Expand Up @@ -17,6 +17,10 @@ metadata:
istio.io/rev: {{ .Values.revision | default "default" }}
install.operator.istio.io/owning-resource: {{ .Values.ownerName | default "unknown" }}
operator.istio.io/component: "Cni"
{{- if .Values.cni.deploymentLabels }}
# Custom Labels
{{ toYaml .Values.cni.deploymentLabels | indent 4 }}
{{- end }}
spec:
selector:
matchLabels:
Expand All @@ -30,6 +34,10 @@ spec:
labels:
k8s-app: istio-cni-node
sidecar.istio.io/inject: "false"
{{- if .Values.cni.podLabels }}
# Custom Labels
{{ toYaml .Values.cni.podLabels | indent 8 }}
{{- end }}
annotations:
sidecar.istio.io/inject: "false"
ambient.istio.io/redirection: disabled
Expand Down
6 changes: 6 additions & 0 deletions manifests/charts/istio-cni/values.yaml
Expand Up @@ -32,6 +32,12 @@ defaults:
# Allows user to set custom affinity for the DaemonSet
affinity: {}

# Custom labels on Deployment level, if you need them
deploymentLabels: {}

# Custom labels on Pod level, if you need them
podLabels: {}

# Custom annotations on pod level, if you need them
podAnnotations: {}

Expand Down

0 comments on commit 0715bf9

Please sign in to comment.