Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add KUBEVIP_NAMESPACE, KUBEVIP_CONFIG_MAP environment variables and c… #48

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
8 changes: 4 additions & 4 deletions charts/kube-vip-cloud-provider/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ image:

# cm:
# data:
# cidr-default: 192.168.0.200/29 # CIDR-based IP range for use in the default Namespace
# range-development: 192.168.0.210-192.168.0.219 # Range-based IP range for use in the development Namespace
# cidr-finance: 192.168.0.220/29,192.168.0.230/29 # Multiple CIDR-based ranges for use in the finance Namespace
# cidr-global: 192.168.0.240/29
# cidr-default: 192.168.0.200/29
# range-development: 192.168.0.210-192.168.0.219
# cidr-finance: 192.168.0.220/29,192.168.0.230/29
# cidr-global: 192.168.0.240/29

cm:
data: {}
Expand Down
Loading