Skip to content

Commit e8df2bc

Browse files
committed
Add cacert support for CSPO and CAPO
Helm '.Files' object cannot be used for files external to the chart Signed-off-by: Roman Hros <roman.hros@dnation.cloud>
1 parent 28eca07 commit e8df2bc

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ This chart can be used to create a new namespace and two secrets for the cluster
33
```
44
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
55
```
6+
7+
If OpenStack API is protected by the certificate issued by custom CA, add `--set cacert="$(cat /path/to/cacert)"` to the helm command.

templates/cloud-secret.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
apiVersion: v1
22
kind: Secret
33
metadata:
4-
name: {{ include "cloud_name" . }}
4+
name: {{ include "cloud_name" . }}
55
data:
66
cloudName: {{ include "cloud_name" . | b64enc }}
77
clouds.yaml: {{ toYaml .Values | b64enc }}
8+
{{- if .Values.cacert }}
9+
cacert: {{ .Values.cacert | b64enc }}
10+
{{- end }}
811
type: Opaque

0 commit comments

Comments
 (0)