Skip to content

Commit 18e6fbf

Browse files
committed
Make the certificate issuer name configurable
If we want to deploy it twice, we need to differentiate these issuers.
1 parent b60efdb commit 18e6fbf

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

charts/openstack-hypervisor-operator/templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ spec:
3939
secretKeyRef:
4040
key: SERVICE_PASSWORD
4141
name: {{ include "openstack-hypervisor-operator.fullname" . }}-secret
42+
- name: CERTIFICATE_ISSUER_NAME
43+
value: {{ quote .Values.controllerManager.manager.env.certificateIssuerName }}
4244
- name: LABEL_SELECTOR
4345
value: {{ quote .Values.controllerManager.manager.env.labelSelector }}
4446
- name: KUBERNETES_CLUSTER_DOMAIN

charts/openstack-hypervisor-operator/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ controllerManager:
44
- --metrics-bind-address=:8443
55
- --leader-elect
66
- --health-probe-bind-address=:8081
7+
- --certificate-issuer-name=${CERTIFICATE_ISSUER_NAME}
78
- --label-selector=${LABEL_SELECTOR}
89
containerSecurityContext:
910
allowPrivilegeEscalation: false
1011
capabilities:
1112
drop:
1213
- ALL
1314
env:
15+
certificateIssuerName: ""
1416
labelSelector: ""
1517
osAuthUrl: ""
1618
osProjectDomainName: ""

config/manager/manager.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ spec:
6161
- args:
6262
- --leader-elect
6363
- --health-probe-bind-address=:8081
64+
- --certificate-issuer-name=${CERTIFICATE_ISSUER_NAME}
6465
- --label-selector=${LABEL_SELECTOR}
6566
env:
6667
- name: OS_AUTH_URL
@@ -74,6 +75,7 @@ spec:
7475
secretKeyRef:
7576
name: secret
7677
key: SERVICE_PASSWORD
78+
- name: CERTIFICATE_ISSUER_NAME
7779
- name: LABEL_SELECTOR
7880
image: keppel.eu-de-1.cloud.sap/ccloud/openstack-hypervisor-operator:latest
7981
name: manager

0 commit comments

Comments
 (0)