Skip to content

Commit

Permalink
Merge pull request #52 from rptaylor/20241025-configMapName
Browse files Browse the repository at this point in the history
kv-cp: add configMapName value to use your own configmap
  • Loading branch information
thebsdbox authored Oct 30, 2024
2 parents a4591b2 + aaf3972 commit a29bdc2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 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 @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.3
version: 0.2.4

# 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
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 @@ -2,7 +2,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "kube-vip-cloud-provider.name" . }}-cm
name: {{ include "kube-vip-cloud-provider.name" . }}
namespace: {{ .Release.Namespace }}
data:
{{- range $key, $value := .Values.cm.data }}
Expand Down
2 changes: 1 addition & 1 deletion charts/kube-vip-cloud-provider/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
- name: KUBEVIP_NAMESPACE
value: {{ .Release.Namespace }}
- name: KUBEVIP_CONFIG_MAP
value: {{ include "kube-vip-cloud-provider.name" . }}-cm
value: {{ .Values.configMapName | default (include "kube-vip-cloud-provider.name" .) }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/kube-vip-cloud-provider/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ image:
cm:
data: {}

# By default, kube-vip-cloud-provider will use a configMap automatically generated from .Values.cm.data.
# If .Values.configMapName is defined, it will use that configMap instead, which you must create yourself.
configMapName: ""

resources:
requests:
cpu: 50m
Expand Down

0 comments on commit a29bdc2

Please sign in to comment.