Skip to content

Commit b408d53

Browse files
chore(helm): make capsule configuration name configurable via helm (#1103)
* feat(helm): capsuleconfiguration name configurable Signed-off-by: Daniel S. <sybnex@gmail.com> * feat(helm): capsuleconfiguration name configurable Signed-off-by: Daniel S. <sybnex@gmail.com> * ci(gosec): fix sarif upload Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * feat(helm): capsuleconfiguration name configurable Signed-off-by: Daniel S. <sybnex@gmail.com> --------- Signed-off-by: Daniel S. <sybnex@gmail.com> Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> Co-authored-by: Oliver Bähler <oliverbaehler@hotmail.com>
1 parent a5f544a commit b408d53

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

charts/capsule/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ Here the values you can override:
144144
| manager.image.tag | string | `""` | Overrides the image tag whose default is the chart appVersion. |
145145
| manager.kind | string | `"Deployment"` | Set the controller deployment mode as `Deployment` or `DaemonSet`. |
146146
| manager.livenessProbe | object | `{"httpGet":{"path":"/healthz","port":10080}}` | Configure the liveness probe using Deployment probe spec |
147+
| manager.options.capsuleConfiguration | string | `"default"` | Change the default name of the capsule configuration name |
147148
| manager.options.capsuleUserGroups | list | `["projectcapsule.dev"]` | Override the Capsule user groups |
148149
| manager.options.forceTenantPrefix | bool | `false` | Boolean, enforces the Tenant owner, during Namespace creation, to name it using the selected Tenant name as prefix, separated by a dash |
149150
| manager.options.generateCertificates | bool | `true` | Specifies whether capsule webhooks certificates should be generated by capsule operator |

charts/capsule/templates/daemonset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ spec:
6464
- --webhook-port={{ .Values.manager.webhookPort }}
6565
- --enable-leader-election
6666
- --zap-log-level={{ default 4 .Values.manager.options.logLevel }}
67-
- --configuration-name=default
67+
- --configuration-name={{ .Values.manager.options.capsuleConfiguration }}
6868
image: {{ include "capsule.managerFullyQualifiedDockerImage" . }}
6969
imagePullPolicy: {{ .Values.manager.image.pullPolicy }}
7070
env:

charts/capsule/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ spec:
6565
- --webhook-port={{ .Values.manager.webhookPort }}
6666
- --enable-leader-election
6767
- --zap-log-level={{ default 4 .Values.manager.options.logLevel }}
68-
- --configuration-name=default
68+
- --configuration-name={{ .Values.manager.options.capsuleConfiguration }}
6969
image: {{ include "capsule.managerFullyQualifiedDockerImage" . }}
7070
imagePullPolicy: {{ .Values.manager.image.pullPolicy }}
7171
env:

charts/capsule/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ manager:
7070

7171
# Additional Capsule Controller Options
7272
options:
73+
# -- Change the default name of the capsule configuration name
74+
capsuleConfiguration: default
7375
# -- Set the log verbosity of the capsule with a value from 1 to 10
7476
logLevel: '4'
7577
# -- Boolean, enforces the Tenant owner, during Namespace creation, to name it using the selected Tenant name as prefix, separated by a dash

0 commit comments

Comments
 (0)