Skip to content

Commit 2261ea6

Browse files
feat(helm): add labels and annotations for capsuleconfiguration (#1710)
Signed-off-by: Oliver Bähler <[email protected]>
1 parent d1e0ac5 commit 2261ea6

File tree

4 files changed

+18
-1
lines changed

4 files changed

+18
-1
lines changed

charts/capsule/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,13 @@ The following Values have changed key or Value:
107107
| manager.kind | string | `"Deployment"` | Set the controller deployment mode as `Deployment` or `DaemonSet`. |
108108
| manager.livenessProbe | object | `{"httpGet":{"path":"/healthz","port":10080}}` | Configure the liveness probe using Deployment probe spec |
109109
| manager.options.allowServiceAccountPromotion | bool | `false` | ServiceAccounts within tenant namespaces can be promoted to owners of the given tenant this can be achieved by labeling the serviceaccount and then they are considered owners. This can only be done by other owners of the tenant. However ServiceAccounts which have been promoted to owner can not promote further serviceAccounts. |
110+
| manager.options.annotations | object | `{}` | Additional annotations to add to the CapsuleConfiguration resource |
110111
| manager.options.capsuleConfiguration | string | `"default"` | Change the default name of the capsule configuration name |
111112
| manager.options.capsuleUserGroups | list | `["projectcapsule.dev"]` | Names of the groups considered as Capsule users. |
112113
| 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 |
113114
| manager.options.generateCertificates | bool | `true` | Specifies whether capsule webhooks certificates should be generated by capsule operator |
114115
| manager.options.ignoreUserWithGroups | list | `[]` | Define groups which when found in the request of a user will be ignored by the Capsule this might be useful if you have one group where all the users are in, but you want to separate administrators from normal users with additional groups. |
116+
| manager.options.labels | object | `{}` | Additional labels to add to the CapsuleConfiguration resource |
115117
| manager.options.logLevel | string | `"4"` | Set the log verbosity of the capsule with a value from 1 to 10 |
116118
| manager.options.nodeMetadata | object | `{"forbiddenAnnotations":{"denied":[],"deniedRegex":""},"forbiddenLabels":{"denied":[],"deniedRegex":""}}` | Allows to set the forbidden metadata for the worker nodes that could be patched by a Tenant |
117119
| manager.options.protectedNamespaceRegex | string | `""` | If specified, disallows creation of namespaces matching the passed regexp |

charts/capsule/templates/configuration-default.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ metadata:
55
name: default
66
labels:
77
{{- include "capsule.labels" . | nindent 4 }}
8+
{{- with .Values.manager.options.labels }}
9+
{{- toYaml . | nindent 4 }}
10+
{{- end }}
811
annotations:
9-
{{- with .Values.customAnnotations }}
12+
{{- with (mergeOverwrite .Values.customAnnotations .Values.manager.options.annotations) }}
1013
{{- toYaml . | nindent 4 }}
1114
{{- end }}
1215
spec:

charts/capsule/values.schema.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,10 @@
297297
"description": "ServiceAccounts within tenant namespaces can be promoted to owners of the given tenant this can be achieved by labeling the serviceaccount and then they are considered owners. This can only be done by other owners of the tenant. However ServiceAccounts which have been promoted to owner can not promote further serviceAccounts.",
298298
"type": "boolean"
299299
},
300+
"annotations": {
301+
"description": "Additional annotations to add to the CapsuleConfiguration resource",
302+
"type": "object"
303+
},
300304
"capsuleConfiguration": {
301305
"description": "Change the default name of the capsule configuration name",
302306
"type": "string"
@@ -320,6 +324,10 @@
320324
"description": "Define groups which when found in the request of a user will be ignored by the Capsule this might be useful if you have one group where all the users are in, but you want to separate administrators from normal users with additional groups.",
321325
"type": "array"
322326
},
327+
"labels": {
328+
"description": "Additional labels to add to the CapsuleConfiguration resource",
329+
"type": "object"
330+
},
323331
"logLevel": {
324332
"description": "Set the log verbosity of the capsule with a value from 1 to 10",
325333
"type": "string"

charts/capsule/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@ manager:
158158

159159
# Additional Capsule Controller Options
160160
options:
161+
# -- Additional labels to add to the CapsuleConfiguration resource
162+
labels: {}
163+
# -- Additional annotations to add to the CapsuleConfiguration resource
164+
annotations: {}
161165
# -- Change the default name of the capsule configuration name
162166
capsuleConfiguration: default
163167
# -- Set the log verbosity of the capsule with a value from 1 to 10

0 commit comments

Comments
 (0)