Skip to content

Commit 7c2f581

Browse files
jschooneJan Schoonematofeder
authored
feat(cloud.conf): add cacert for workload cluster (#9)
Signed-off-by: Jan Schoone <schoone@osb-alliance.com> Co-authored-by: Jan Schoone <schoone@osb-alliance.com> Co-authored-by: Matej Feder <feder.mato@gmail.com>
1 parent c375da6 commit 7c2f581

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

templates/_helpers.tpl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ Templates the cloud.conf as needed by the openstack CCM
7474
[Global]
7575
auth-url={{ include "auth_auth_url" . }}
7676
region={{ include "region_name" . }}
77+
{{- if .Values.cacert }}
78+
ca-file=/etc/config/cacert
79+
{{- end }}
7780
{{ if include "isAppCredential" . }}
7881
application-credential-id={{ include "auth_application_credential_id" . }}
7982
application-credential-secret={{ include "auth_application_credential_secret" . }}
@@ -103,6 +106,9 @@ apiVersion: v1
103106
data:
104107
cloud.conf: {{ include "cloud.conf" . | b64enc }}
105108
cloudprovider.conf: {{ include "cloud.conf" . | b64enc }}
109+
{{- if .Values.cacert }}
110+
cacert: {{ .Values.cacert | b64enc }}
111+
{{- end }}
106112
kind: Secret
107113
metadata:
108114
name: cloud-config

0 commit comments

Comments
 (0)