Skip to content

Commit c18f6ca

Browse files
[occm] add secret enabled option (#2239)
* feat(occm): add secret enabled option * fix(occm): helm template operator * feat(occm): update chart version * fix(occm): use newer chart version * fix(occm): remove trailing spaces
1 parent 43b55ba commit c18f6ca

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

charts/openstack-cloud-controller-manager/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Openstack Cloud Controller Manager Helm Chart
44
icon: https://object-storage-ca-ymq-1.vexxhost.net/swift/v1/6e4619c416ff4bd19e1c087f27a43eea/www-images-prod/openstack-logo/OpenStack-Logo-Vertical.png
55
home: https://github.com/kubernetes/cloud-provider-openstack
66
name: openstack-cloud-controller-manager
7-
version: 2.28.0-alpha.4
7+
version: 2.28.0-alpha.5
88
maintainers:
99
- name: eumel8
1010

charts/openstack-cloud-controller-manager/templates/daemonset.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,14 @@ spec:
6666
name: http
6767
protocol: TCP
6868
{{- end }}
69+
{{- if or (.Values.extraVolumeMounts) (.Values.secret.enabled) }}
6970
volumeMounts:
71+
{{- end }}
72+
{{- if .Values.secret.enabled }}
7073
- mountPath: /etc/config
7174
name: cloud-config-volume
7275
readOnly: true
76+
{{- end }}
7377
{{- if .Values.extraVolumeMounts }}
7478
{{- toYaml .Values.extraVolumeMounts | nindent 12 }}
7579
{{- end }}
@@ -97,10 +101,15 @@ spec:
97101
{{- if .Values.priorityClassName }}
98102
priorityClassName: {{ .Values.priorityClassName }}
99103
{{- end }}
104+
105+
{{- if or (.Values.extraVolumes) (.Values.secret.enabled) }}
100106
volumes:
107+
{{- end }}
108+
{{- if .Values.secret.enabled }}
101109
- name: cloud-config-volume
102110
secret:
103111
secretName: {{ .Values.secret.name }}
112+
{{- end }}
104113
{{- if .Values.extraVolumes }}
105114
{{ toYaml .Values.extraVolumes | nindent 6 }}
106115
{{- end }}

charts/openstack-cloud-controller-manager/templates/secret.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if .Values.secret.create }}
1+
{{- if and (.Values.secret.create) (.Values.secret.enabled) }}
22
apiVersion: v1
33
kind: Secret
44
metadata:

charts/openstack-cloud-controller-manager/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,11 @@ serviceMonitor: {}
8181
# Create a secret resource cloud-config (or other name) to store credentials and settings from cloudConfig
8282
# You can also provide your own secret (not created by the Helm chart), in this case set create to false
8383
# and adjust the name of the secret as necessary
84+
# If you dont want to use a secret (because you are using something like an agent injector to inject the cloud config file)
85+
# you can disable the secret usage by setting enabled to false.
86+
# If you disable the secret, you have to insert the cloud config file into the path /etc/cloud/config.
8487
secret:
88+
enabled: true
8589
create: true
8690
name: cloud-config
8791

0 commit comments

Comments
 (0)