Skip to content

Commit 7e54609

Browse files
committed
feat: Add extra objects support
- Add extra objects template - Add sample values and json schema for extra objects Signed-off-by: Luis Gallo <gallolp@gmail.com>
1 parent fa1050a commit 7e54609

3 files changed

Lines changed: 48 additions & 3 deletions

File tree

templates/extra-objects.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{{ range .Values.extraObjects }}
2+
---
3+
{{ tpl . $ }}
4+
{{ end }}

values.schema.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,12 @@
219219
"default": "IfNotPresent",
220220
"title": "when kubelet should pull specified image"
221221
}
222+
},
223+
"extraObjects": {
224+
"type": "array",
225+
"title": "extra kubernetes objects to deploy with the release",
226+
"default": null,
227+
"items": { "type": "string" }
222228
}
223229
}
224230
}

values.yaml

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,12 @@ server:
3939
broadcastPgsql: true
4040
uvicornWorkers: 4
4141
replicas: 1
42-
extraEnv: {
43-
# "CUSTOM_ENV_VAR": "VALUE"
44-
}
42+
extraEnv: {}
43+
# "CUSTOM_ENV_VAR": "VALUE"
44+
# Additional secrets to mount as environment on the server
45+
secrets:
46+
[]
47+
# - my-secret-server-data
4548

4649
client:
4750
port: 7000
@@ -50,3 +53,35 @@ client:
5053
# If you need to specify a custom hostname for the opal-sever, configure the serverUrl property
5154
# serverUrl: http://custom-hostname-for-opal:opal-port
5255
extraEnv: {}
56+
# Additional secrets to mount as environment on the client
57+
secrets:
58+
[]
59+
# - my-secret-client-data
60+
61+
# Additional resources to deploy in this release
62+
# Each element as a string and supports templates
63+
extraObjects:
64+
[]
65+
# - |-
66+
# apiVersion: v1
67+
# kind: Secret
68+
# metadata:
69+
# name: my-secret-server-data
70+
# labels:
71+
# {{- include "opal.serverLabels" . | nindent 4}}
72+
# type: Opaque
73+
# data:
74+
# OPAL_AUTH_PRIVATE_KEY_PASSPHRASE: "passphrase"
75+
# OPAL_AUTH_PUBLIC_KEY: "pubkey"
76+
# OPAL_AUTH_PRIVATE_KEY: "privkey"
77+
# OPAL_BROADCAST_URI: "user:pass@host:port/db"
78+
# - |-
79+
# apiVersion: v1
80+
# kind: Secret
81+
# metadata:
82+
# name: my-secret-client-data
83+
# labels:
84+
# {{- include "opal.clientLabels" . | nindent 4 }}
85+
# type: Opaque
86+
# data:
87+
# OPAL_CLIENT_TOKEN: "client-token"

0 commit comments

Comments
 (0)