Skip to content

Commit

Permalink
Add extraEnv config for the deployment pod
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed May 22, 2024
1 parent cb8682f commit 76b2bc9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions binderhub-service/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
{{- with .Values.extraEnv }}
{{- tpl (. | toYaml) $ | nindent 12 }}
{{- end }}
resources:
{{- .Values.resources | toYaml | nindent 12 }}
securityContext:
Expand Down
2 changes: 2 additions & 0 deletions binderhub-service/values.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ properties:
patternProperties:
".*":
type: [string, "null"]
extraEnv:
type: array

replicas:
type: integer
Expand Down
1 change: 1 addition & 0 deletions binderhub-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ extraConfig:
namespace = os.environ["NAMESPACE"]
c.KubernetesBuildExecutor.docker_host = f"/var/run/{ namespace }-{ helm_release_name }/docker-api/docker-api.sock"
extraEnv: []
replicas: 1
image:
repository: quay.io/2i2c/binderhub-service
Expand Down

0 comments on commit 76b2bc9

Please sign in to comment.