Skip to content

Commit

Permalink
Merge pull request #6 from SovereignCloudStack/feat/capo_cspo_cacert
Browse files Browse the repository at this point in the history
Add cacert support for CSPO and CAPO
  • Loading branch information
chess-knight authored Aug 15, 2024
2 parents 28eca07 + e8df2bc commit 857a5bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ This chart can be used to create a new namespace and two secrets for the cluster
```
helm upgrade -i <tenant>-credentials -n <tenant> --create-namespace https://github.com/SovereignCloudStack/openstack-csp-helper/releases/latest/download/openstack-csp-helper.tgz -f clouds.yaml
```

If OpenStack API is protected by the certificate issued by custom CA, add `--set cacert="$(cat /path/to/cacert)"` to the helm command.
5 changes: 4 additions & 1 deletion templates/cloud-secret.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
apiVersion: v1
kind: Secret
metadata:
name: {{ include "cloud_name" . }}
name: {{ include "cloud_name" . }}
data:
cloudName: {{ include "cloud_name" . | b64enc }}
clouds.yaml: {{ toYaml .Values | b64enc }}
{{- if .Values.cacert }}
cacert: {{ .Values.cacert | b64enc }}
{{- end }}
type: Opaque

0 comments on commit 857a5bb

Please sign in to comment.