Skip to content

Commit ba6413c

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

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed
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.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)