Skip to content

Commit 8962a3c

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 8962a3c

File tree

5 files changed

+26
-0
lines changed

5 files changed

+26
-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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# -- Array of additional resources to be created alongside Capsule helm chart
2+
extraManifests:
3+
- apiVersion: v1
4+
kind: ConfigMap
5+
metadata:
6+
name: random-config
7+
data:
8+
random-value: "{{ randAlphaNum 16 }}"
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: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,15 @@ 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+
332341
webhooks:
333342
# -- Enable the usage of mutating and validating webhooks
334343
enabled: false

0 commit comments

Comments
 (0)