Skip to content

Commit c6878f3

Browse files
committed
feat(charts/capsule-proxy): added extra manifests in values file
Signed-off-by: Llyth <6819575+Llyth@users.noreply.github.com>
1 parent 2631f0e commit c6878f3

File tree

5 files changed

+59
-0
lines changed

5 files changed

+59
-0
lines changed

charts/capsule-proxy/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ If you only need to make minor customizations, you can specify them on the comma
136136
| daemonset.hostNetwork | bool | `false` | Use the host network namespace for capsule-proxy pod. |
137137
| daemonset.hostPort | bool | `false` | Binding the capsule-proxy listening port to the host port. |
138138
| env | list | `[]` | Additional environment variables |
139+
| extraManifests | list | `[]` | Array of additional resources to be created alongside Capsule helm chart |
139140
| hostNetwork | bool | `false` | When deployed as DaemonSet use |
140141
| image.pullPolicy | string | `"IfNotPresent"` | Set the image pull policy. |
141142
| image.registry | string | `"ghcr.io"` | Set the image registry for capsule-proxy |
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# -- Array of additional resources to be created alongside Capsule helm chart
2+
extraManifests:
3+
- apiVersion: capsule.clastix.io/v1beta1
4+
kind: GlobalProxySettings
5+
metadata:
6+
name: global-proxy-settings
7+
spec:
8+
rules:
9+
- subjects:
10+
- kind: User
11+
name: alice
12+
clusterResources:
13+
- apiGroups:
14+
- "*"
15+
resources:
16+
- "*"
17+
operations:
18+
- List
19+
selector:
20+
matchLabels:
21+
app.kubernetes.io/type: dev
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{{ range .Values.extraManifests }}
2+
---
3+
{{ tpl (toYaml .) $ }}
4+
{{ end }}

charts/capsule-proxy/values.schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@
154154
"description": "Additional environment variables",
155155
"type": "array"
156156
},
157+
"extraManifests": {
158+
"description": "Array of additional resources to be created alongside Capsule helm chart",
159+
"type": "array"
160+
},
157161
"global": {
158162
"type": "object",
159163
"properties": {

charts/capsule-proxy/values.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,35 @@ certManager:
329329
rotationPolicy: 'Always'
330330
# renewBefore: '24h'
331331

332+
# -- Array of additional resources to be created alongside Capsule helm chart
333+
extraManifests: []
334+
# - apiVersion: v1
335+
# kind: ConfigMap
336+
# metadata:
337+
# name: extra-configmap
338+
# data:
339+
# key: value
340+
#
341+
# - apiVersion: capsule.clastix.io/v1beta1
342+
# kind: GlobalProxySettings
343+
# metadata:
344+
# name: global-proxy-settings
345+
# spec:
346+
# rules:
347+
# - subjects:
348+
# - kind: User
349+
# name: alice
350+
# clusterResources:
351+
# - apiGroups:
352+
# - "*"
353+
# resources:
354+
# - "*"
355+
# operations:
356+
# - List
357+
# selector:
358+
# matchLabels:
359+
# app.kubernetes.io/type: dev
360+
332361
webhooks:
333362
# -- Enable the usage of mutating and validating webhooks
334363
enabled: false

0 commit comments

Comments
 (0)