Skip to content

Commit

Permalink
keystone_auth: fix errors providing CA cert as string (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbonney authored Oct 16, 2024
1 parent 824fb57 commit 770fa90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ metadata:
labels:
{{- include "k8s-keystone-auth.labels" . | nindent 4 }}
stringData:
cloud_ca.crt: {{ .Values.conf.ca_cert }}
{{- end -}}
cloud_ca.crt: |
{{ .Values.conf.ca_cert | indent 4 }}
{{- end }}
2 changes: 1 addition & 1 deletion magnum_cluster_api/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def get_object(self) -> pykube.ConfigMap:
"conf": {
"auth_url": auth_url
+ ("" if auth_url.endswith("/v3") else "/v3"),
"ca_file": utils.get_cloud_ca_cert(),
"ca_cert": utils.get_cloud_ca_cert(),
"policy": utils.get_keystone_auth_default_policy(
self.cluster
),
Expand Down

0 comments on commit 770fa90

Please sign in to comment.