Skip to content

Commit

Permalink
Add KUBEVIP_NAMESPACE, KUBEVIP_CONFIG_MAP environment variables and c…
Browse files Browse the repository at this point in the history
…onfigmap-checksum to redeploy workload

Signed-off-by: Ibrahima COULIBALY <[email protected]>
  • Loading branch information
ibra-coul committed Oct 11, 2024
1 parent f93c33a commit 1a76e90
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions charts/kube-vip-cloud-provider/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,20 @@ spec:
metadata:
labels:
{{- include "kube-vip-cloud-provider.selectorLabels" . | nindent 8 }}
annotations:
configmap-checksum: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
spec:
containers:
- command:
- /kube-vip-cloud-provider
- --leader-elect-resource-name=kube-vip-cloud-controller
image: {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}
name: {{ include "kube-vip-cloud-provider.name" . }}
env:
- name: KUBEVIP_NAMESPACE
value: {{ .Release.Namespace | default "kube-system" }}
- name: KUBEVIP_CONFIG_MAP
value: {{ include "kube-vip-cloud-provider.name" . }}-cm
imagePullPolicy: {{ .Values.image.pullPolicy }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
Expand Down

0 comments on commit 1a76e90

Please sign in to comment.