Skip to content

Commit 7df2c58

Browse files
committed
Document extraEnv in values.yaml for every workload.
1 parent ad686c1 commit 7df2c58

6 files changed

Lines changed: 33 additions & 12 deletions

File tree

charts/matrix-stack/source/haproxy.yaml.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ replicas: 1
1111
{{- sub_schema_values.labels() }}
1212
{{- sub_schema_values.workloadAnnotations() }}
1313
{{- sub_schema_values.containersSecurityContext() }}
14+
{{- sub_schema_values.extraEnv() }}
1415
{{- sub_schema_values.nodeSelector() }}
1516
{{- sub_schema_values.podSecurityContext(user_id='10001', group_id='10001') }}
1617
{{- sub_schema_values.resources(requests_memory='100Mi', requests_cpu='100m', limits_memory='200Mi') }}

charts/matrix-stack/source/matrix-rtc.yaml.j2

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,13 @@ enabled: true
1717
{#- We set `initSecret=false` because we are describing the mechanism in the comment parameter #}
1818
{{- sub_schema_values.credential("The secret for the LiveKit SFU.\n## This is required if `sfu.enabled` and `keysYaml` is not used. It will be generated by the `initSecrets` job if it is empty", "secret", initIfAbsent=False, commented=True) | indent(2) }}
1919

20-
{{- sub_schema_values.ingress() -}}
21-
{{- sub_schema_values.extraEnv() }}
22-
2320
replicas: 1
21+
{{- sub_schema_values.ingress() }}
2422
{{- sub_schema_values.image(registry='ghcr.io', repository='element-hq/lk-jwt-service', tag='0.2.3') }}
2523
{{- sub_schema_values.labels() }}
2624
{{- sub_schema_values.workloadAnnotations() }}
2725
{{- sub_schema_values.containersSecurityContext() }}
26+
{{- sub_schema_values.extraEnv() }}
2827
{{- sub_schema_values.nodeSelector() }}
2928
{{- sub_schema_values.podSecurityContext(user_id='10033', group_id='10033') }}
3029
{{- sub_schema_values.resources(requests_memory='20Mi', requests_cpu='50m', limits_memory='20Mi') }}

charts/matrix-stack/source/matrixAuthenticationService.yaml.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ syn2mas:
6868
{{- sub_schema_values.podSecurityContext(user_id='10005', group_id='10005') | indent(2) -}}
6969
{{- sub_schema_values.resources(requests_memory='50Mi', requests_cpu='50m', limits_memory='350Mi') | indent(2) -}}
7070
{{- sub_schema_values.serviceAccount() | indent(2) -}}
71+
{{- sub_schema_values.extraEnv() | indent(2) -}}
7172
{{- sub_schema_values.tolerations() | indent(2) }}
7273

7374
## Runs the syn2mas process in dryRun mode.

charts/matrix-stack/source/postgres.yaml.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ enabled: true
88
postgresExporter:
99
{{- sub_schema_values.image(registry='docker.io', repository='prometheuscommunity/postgres-exporter', tag='v0.17.0') | indent(2) }}
1010
{{- sub_schema_values.resources(requests_memory='10Mi', requests_cpu='10m', limits_memory='500Mi')| indent(2) }}
11-
{{- sub_schema_values.containersSecurityContext()| indent(2) }}
11+
{{- sub_schema_values.containersSecurityContext() | indent(2) }}
12+
{{- sub_schema_values.extraEnv() | indent(2) }}
1213
{{- sub_schema_values.probe("liveness", periodSeconds=6, timeoutSeconds=2) | indent(2) }}
1314
{{- sub_schema_values.probe("readiness", periodSeconds=2, successThreshold=2, timeoutSeconds=2) | indent(2) }}
1415
{{- sub_schema_values.probe("startup", failureThreshold=20, periodSeconds=2) | indent(2) }}

charts/matrix-stack/values.yaml

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,8 @@ matrixRTC:
395395
## secret: existing-secret
396396
## secretKey: key-in-secret
397397
# secret: {}
398+
399+
replicas: 1
398400
## How this ingress should be constructed
399401
ingress:
400402
## What hostname should be used for this Ingress
@@ -417,14 +419,6 @@ matrixRTC:
417419
## If set, some tweaks will be applied automatically to ingresses based on the controller type here.
418420
## This can be set to `ingress-nginx`.
419421
# controllerType:
420-
## Defines additional environment variables to be injected onto this workload
421-
## e.g.
422-
## extraEnv:
423-
## - name: FOO
424-
## value: "bar"
425-
extraEnv: []
426-
427-
replicas: 1
428422
# Details of the image to be used
429423
image:
430424
## The host and (optional) port of the container image registry for this component.
@@ -478,6 +472,12 @@ matrixRTC:
478472
## localhostProfile must only be set set if type Localhost. It indicates the path of the pre-configured profile on the node, relative to the kubelet's configured Seccomp profile location (configured with the --root-dir flag).
479473
# seccompProfile:
480474
# type: RuntimeDefault
475+
## Defines additional environment variables to be injected onto this workload
476+
## e.g.
477+
## extraEnv:
478+
## - name: FOO
479+
## value: "bar"
480+
extraEnv: []
481481
## NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
482482
# nodeSelector: {}
483483
## A subset of PodSecurityContext. PodSecurityContext holds pod-level security attributes and common container settings
@@ -1181,6 +1181,12 @@ haproxy:
11811181
## localhostProfile must only be set set if type Localhost. It indicates the path of the pre-configured profile on the node, relative to the kubelet's configured Seccomp profile location (configured with the --root-dir flag).
11821182
# seccompProfile:
11831183
# type: RuntimeDefault
1184+
## Defines additional environment variables to be injected onto this workload
1185+
## e.g.
1186+
## extraEnv:
1187+
## - name: FOO
1188+
## value: "bar"
1189+
extraEnv: []
11841190
## NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
11851191
# nodeSelector: {}
11861192
## A subset of PodSecurityContext. PodSecurityContext holds pod-level security attributes and common container settings
@@ -1883,6 +1889,12 @@ matrixAuthenticationService:
18831889

18841890
## Annotations to add to the service account
18851891
annotations: {}
1892+
## Defines additional environment variables to be injected onto this workload
1893+
## e.g.
1894+
## extraEnv:
1895+
## - name: FOO
1896+
## value: "bar"
1897+
extraEnv: []
18861898
## Workload tolerations allows Pods that are part of this (sub)component to 'tolerate' any taint that matches the triple <key,value,effect> using the matching operator <operator>.
18871899
##
18881900
## * effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
@@ -1969,6 +1981,12 @@ postgres:
19691981
## localhostProfile must only be set set if type Localhost. It indicates the path of the pre-configured profile on the node, relative to the kubelet's configured Seccomp profile location (configured with the --root-dir flag).
19701982
# seccompProfile:
19711983
# type: RuntimeDefault
1984+
## Defines additional environment variables to be injected onto this workload
1985+
## e.g.
1986+
## extraEnv:
1987+
## - name: FOO
1988+
## value: "bar"
1989+
extraEnv: []
19721990
## Configuration of the thresholds and frequencies of the livenessProbe
19731991
livenessProbe:
19741992
## How many consecutive failures for the probe to be considered failed

newsfragments/559.changed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Document `extraEnv` in `values.yaml` for every workload.

0 commit comments

Comments
 (0)