Skip to content

Commit

Permalink
Add add custom environment variables in services (extraEnvVars value) (
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaspi authored Oct 30, 2024
1 parent 59a65de commit da64b52
Show file tree
Hide file tree
Showing 24 changed files with 186 additions and 9 deletions.
2 changes: 1 addition & 1 deletion charts/jupyter-pyspark/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.1.8
version: 2.1.9

dependencies:
- name: library-chart
Expand Down
3 changes: 3 additions & 0 deletions charts/jupyter-pyspark/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ spec:
- name: DARK_MODE
value: "true"
{{- end }}
{{- with .Values.extraEnvVars }}
{{- tpl (toYaml .) $.Values | nindent 12 }}
{{- end }}
envFrom:
- secretRef:
name: {{ include "library-chart.secretNameToken" . }}
Expand Down
20 changes: 20 additions & 0 deletions charts/jupyter-pyspark/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,26 @@
}
}
},
"extraEnvVars": {
"description": "environment variables available within your service",
"type": "array",
"default": [],
"x-onyxia": {
"hidden": true,
"overwriteSchemaWith": "ide/extraenv.json"
},
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
},
"kubernetes": {
"description": "configuration of your kubernetes access",
"type": "object",
Expand Down
7 changes: 7 additions & 0 deletions charts/jupyter-pyspark/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ init:
personalInit: ""
personalInitArgs: ""

# Array with (templated) extra environment variables to be made accessible within the service
# e.g:
# extraEnvVars:
# - name: FOO
# value: "bar"
extraEnvVars: []

environment:
user: onyxia
group: users
Expand Down
2 changes: 1 addition & 1 deletion charts/jupyter-python/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.1.7
version: 2.1.8

dependencies:
- name: library-chart
Expand Down
3 changes: 3 additions & 0 deletions charts/jupyter-python/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ spec:
- name: DARK_MODE
value: "true"
{{- end }}
{{- with .Values.extraEnvVars }}
{{- tpl (toYaml .) $.Values | nindent 12 }}
{{- end }}
envFrom:
- secretRef:
name: {{ include "library-chart.secretNameToken" . }}
Expand Down
20 changes: 20 additions & 0 deletions charts/jupyter-python/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,26 @@
}
}
},
"extraEnvVars": {
"description": "environment variables available within your service",
"type": "array",
"default": [],
"x-onyxia": {
"hidden": true,
"overwriteSchemaWith": "ide/extraenv.json"
},
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
},
"kubernetes": {
"description": "configuration of your kubernetes access",
"type": "object",
Expand Down
7 changes: 7 additions & 0 deletions charts/jupyter-python/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ init:
personalInit: ""
personalInitArgs: ""

# Array with (templated) extra environment variables to be made accessible within the service
# e.g:
# extraEnvVars:
# - name: FOO
# value: "bar"
extraEnvVars: []

environment:
user: onyxia
group: users
Expand Down
2 changes: 1 addition & 1 deletion charts/rstudio-sparkr/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.1.6
version: 2.1.7
dependencies:
- name: library-chart
version: 1.5.28
Expand Down
3 changes: 3 additions & 0 deletions charts/rstudio-sparkr/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ spec:
- name: DARK_MODE
value: "true"
{{- end }}
{{- with .Values.extraEnvVars }}
{{- tpl (toYaml .) $.Values | nindent 12 }}
{{- end }}
envFrom:
- secretRef:
name: {{ include "library-chart.secretNameToken" . }}
Expand Down
20 changes: 20 additions & 0 deletions charts/rstudio-sparkr/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,26 @@
}
}
},
"extraEnvVars": {
"description": "environment variables available within your service",
"type": "array",
"default": [],
"x-onyxia": {
"hidden": true,
"overwriteSchemaWith": "ide/extraenv.json"
},
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
},
"kubernetes": {
"description": "configuration of your kubernetes access",
"type": "object",
Expand Down
9 changes: 7 additions & 2 deletions charts/rstudio-sparkr/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ init:
personalInit: ""
personalInitArgs: ""

# Array with (templated) extra environment variables to be made accessible within the service
# e.g:
# extraEnvVars:
# - name: FOO
# value: "bar"
extraEnvVars: []

environment:
root: true
user: onyxia
Expand All @@ -75,7 +82,6 @@ s3:
secretAccessKey: ""
sessionToken: ""


vault:
# Specifies whether a config map should be created
enabled: true
Expand Down Expand Up @@ -105,7 +111,6 @@ git:
# Declare variables to be passed into your templates.
replicaCount: 1


imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
Expand Down
2 changes: 1 addition & 1 deletion charts/rstudio/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.1.4
version: 2.1.5
dependencies:
- name: library-chart
version: 1.5.28
Expand Down
3 changes: 3 additions & 0 deletions charts/rstudio/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ spec:
- name: DARK_MODE
value: "true"
{{- end }}
{{- with .Values.extraEnvVars }}
{{- tpl (toYaml .) $.Values | nindent 12 }}
{{- end }}
envFrom:
{{- if .Values.s3.enabled }}
- secretRef:
Expand Down
20 changes: 20 additions & 0 deletions charts/rstudio/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,26 @@
}
}
},
"extraEnvVars": {
"description": "environment variables available within your service",
"type": "array",
"default": [],
"x-onyxia": {
"hidden": true,
"overwriteSchemaWith": "ide/extraenv.json"
},
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
},
"kubernetes": {
"description": "configuration of your kubernetes access",
"type": "object",
Expand Down
7 changes: 7 additions & 0 deletions charts/rstudio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ init:
personalInit: ""
personalInitArgs: ""

# Array with (templated) extra environment variables to be made accessible within the service
# e.g:
# extraEnvVars:
# - name: FOO
# value: "bar"
extraEnvVars: []

environment:
user: onyxia
group: users
Expand Down
2 changes: 1 addition & 1 deletion charts/vscode-pyspark/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.1.9
version: 2.1.10

dependencies:
- name: library-chart
Expand Down
3 changes: 3 additions & 0 deletions charts/vscode-pyspark/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,9 @@ spec:
- name: DARK_MODE
value: "true"
{{- end }}
{{- with .Values.extraEnvVars }}
{{- tpl (toYaml .) $.Values | nindent 12 }}
{{- end }}
envFrom:
- secretRef:
name: {{ include "library-chart.secretNameToken" . }}
Expand Down
20 changes: 20 additions & 0 deletions charts/vscode-pyspark/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,26 @@
}
}
},
"extraEnvVars": {
"description": "environment variables available within your service",
"type": "array",
"default": [],
"x-onyxia": {
"hidden": true,
"overwriteSchemaWith": "ide/extraenv.json"
},
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
},
"kubernetes": {
"description": "configuration of your kubernetes access",
"type": "object",
Expand Down
8 changes: 7 additions & 1 deletion charts/vscode-pyspark/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ init:
personalInit: ""
personalInitArgs: ""

# Array with (templated) extra environment variables to be made accessible within the service
# e.g:
# extraEnvVars:
# - name: FOO
# value: "bar"
extraEnvVars: []

environment:
user: onyxia
group: users
Expand Down Expand Up @@ -125,7 +132,6 @@ metaflow:
# Declare variables to be passed into your templates.
replicaCount: 1


imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
Expand Down
2 changes: 1 addition & 1 deletion charts/vscode-python/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.1.8
version: 2.1.9

dependencies:
- name: library-chart
Expand Down
3 changes: 3 additions & 0 deletions charts/vscode-python/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ spec:
- name: DARK_MODE
value: "true"
{{- end }}
{{- with .Values.extraEnvVars }}
{{- tpl (toYaml .) $.Values | nindent 12 }}
{{- end }}
envFrom:
- secretRef:
name : {{ include "library-chart.secretNameToken" . }}
Expand Down
20 changes: 20 additions & 0 deletions charts/vscode-python/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,26 @@
}
}
},
"extraEnvVars": {
"description": "environment variables available within your service",
"type": "array",
"default": [],
"x-onyxia": {
"hidden": true,
"overwriteSchemaWith": "ide/extraenv.json"
},
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
},
"kubernetes": {
"description": "configuration of your kubernetes access",
"type": "object",
Expand Down
7 changes: 7 additions & 0 deletions charts/vscode-python/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ init:
personalInit: ""
personalInitArgs: ""

# Array with (templated) extra environment variables to be made accessible within the service
# e.g:
# extraEnvVars:
# - name: FOO
# value: "bar"
extraEnvVars: []

s3:
# Specifies whether a config map should be created
enabled: true
Expand Down

0 comments on commit da64b52

Please sign in to comment.