Skip to content

Commit

Permalink
Merge pull request #48 from ibra-coul/feature/env-vars-kubevip-ns-kub…
Browse files Browse the repository at this point in the history
…evip-cm

Add KUBEVIP_NAMESPACE, KUBEVIP_CONFIG_MAP environment variables and c…
  • Loading branch information
thebsdbox authored Oct 18, 2024
2 parents f13d698 + dbf3542 commit 39ffb8d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/kube-vip-cloud-provider/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ version: 0.2.2
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: v0.0.4
appVersion: v0.0.10

icon: https://github.com/kube-vip/kube-vip/raw/main/kube-vip.png

Expand Down
2 changes: 1 addition & 1 deletion charts/kube-vip-cloud-provider/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "kube-vip-cloud-provider.name" . }}-cm
namespace: {{ .Release.Namespace | default "kube-system" }}
namespace: {{ .Release.Namespace }}
data:
{{- range $key, $value := .Values.cm.data }}
{{ $key }}: {{ $value | quote }}
Expand Down
5 changes: 5 additions & 0 deletions charts/kube-vip-cloud-provider/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ spec:
- --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 }}
- 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 39ffb8d

Please sign in to comment.