File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed
charts/openstack-cloud-controller-manager Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -68,10 +68,14 @@ spec:
68
68
name : http
69
69
protocol : TCP
70
70
{{- end }}
71
+ {{- if or (.Values.extraVolumeMounts) (.Values.secret.enabled) }}
71
72
volumeMounts :
73
+ {{- end }}
74
+ {{- if .Values.secret.enabled }}
72
75
- mountPath : /etc/config
73
76
name : cloud-config-volume
74
77
readOnly : true
78
+ {{- end }}
75
79
{{- if .Values.extraVolumeMounts }}
76
80
{{- toYaml .Values.extraVolumeMounts | nindent 12 }}
77
81
{{- end }}
@@ -99,10 +103,15 @@ spec:
99
103
{{- if .Values.priorityClassName }}
100
104
priorityClassName : {{ .Values.priorityClassName }}
101
105
{{- end }}
106
+
107
+ {{- if or (.Values.extraVolumes) (.Values.secret.enabled) }}
102
108
volumes :
109
+ {{- end }}
110
+ {{- if .Values.secret.enabled }}
103
111
- name : cloud-config-volume
104
112
secret :
105
113
secretName : {{ .Values.secret.name }}
114
+ {{- end }}
106
115
{{- if .Values.extraVolumes }}
107
116
{{ toYaml .Values.extraVolumes | nindent 6 }}
108
117
{{- end }}
Original file line number Diff line number Diff line change 1
- {{- if .Values.secret.create }}
1
+ {{- if and ( .Values.secret.create) (.Values.secret.enabled) }}
2
2
apiVersion : v1
3
3
kind : Secret
4
4
metadata :
Original file line number Diff line number Diff line change @@ -82,7 +82,11 @@ serviceMonitor: {}
82
82
# Create a secret resource cloud-config (or other name) to store credentials and settings from cloudConfig
83
83
# You can also provide your own secret (not created by the Helm chart), in this case set create to false
84
84
# and adjust the name of the secret as necessary
85
+ # If you dont want to use a secret (because you are using something like an agent injector to inject the cloud config file)
86
+ # you can disable the secret usage by setting enabled to false.
87
+ # If you disable the secret, you have to insert the cloud config file into the path /etc/cloud/config.
85
88
secret :
89
+ enabled : true
86
90
create : true
87
91
name : cloud-config
88
92
You can’t perform that action at this time.
0 commit comments