Skip to content

Commit

Permalink
add suspend option (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
ihiverlet authored Apr 12, 2024
1 parent 6097b46 commit 3ce415d
Show file tree
Hide file tree
Showing 24 changed files with 130 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: 1.33.12
version: 1.33.13

dependencies:
- name: library-chart
Expand Down
4 changes: 4 additions & 0 deletions charts/jupyter-pyspark/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ metadata:
{{- include "library-chart.labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
{{- if .Values.global.suspend }}
replicas: 0
{{- else}}
replicas: {{ .Values.replicaCount }}
{{- end}}
{{- end }}
serviceName: {{ include "library-chart.fullname" . }}
selector:
Expand Down
14 changes: 14 additions & 0 deletions charts/jupyter-pyspark/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,20 @@
}
}
}
},
"global": {
"description": "Suspend",
"type": "object",
"properties": {
"suspend": {
"type": "boolean",
"description": "Suspend this service",
"default": false,
"x-onyxia": {
"hidden": true
}
}
}
}
}
}
2 changes: 2 additions & 0 deletions charts/jupyter-pyspark/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Default values for jupyter.
global:
suspend: false

service:
image:
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 @@ -23,7 +23,7 @@ type: application
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)

version: 1.13.30
version: 1.13.31

dependencies:
- name: library-chart
Expand Down
4 changes: 4 additions & 0 deletions charts/jupyter-python/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ metadata:
{{- include "library-chart.labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
{{- if .Values.global.suspend }}
replicas: 0
{{- else}}
replicas: {{ .Values.replicaCount }}
{{- end}}
{{- end }}
serviceName: {{ include "library-chart.fullname" . }}
selector:
Expand Down
16 changes: 15 additions & 1 deletion charts/jupyter-python/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,20 @@
}
}
}
}
},
"global": {
"description": "Suspend",
"type": "object",
"properties": {
"suspend": {
"type": "boolean",
"description": "Suspend this service",
"default": false,
"x-onyxia": {
"hidden": true
}
}
}
}
}
}
2 changes: 2 additions & 0 deletions charts/jupyter-python/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Default values for jupyter.
global:
suspend: false

service:
image:
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 @@ -24,7 +24,7 @@ type: application
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)

version: 1.17.12
version: 1.17.13

dependencies:
- name: library-chart
Expand Down
4 changes: 4 additions & 0 deletions charts/rstudio-sparkr/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ metadata:
{{- include "library-chart.labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
{{- if .Values.global.suspend }}
replicas: 0
{{- else}}
replicas: {{ .Values.replicaCount }}
{{- end}}
{{- end }}
serviceName: {{ include "library-chart.fullname" . }}
selector:
Expand Down
16 changes: 15 additions & 1 deletion charts/rstudio-sparkr/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,20 @@
}
}
}
}
},
"global": {
"description": "Suspend",
"type": "object",
"properties": {
"suspend": {
"type": "boolean",
"description": "Suspend this service",
"default": false,
"x-onyxia": {
"hidden": true
}
}
}
}
}
}
2 changes: 2 additions & 0 deletions charts/rstudio-sparkr/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Default values for rstudio.
global:
suspend: false

service:
image:
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: 1.15.22
version: 1.15.23

dependencies:
- name: library-chart
Expand Down
4 changes: 4 additions & 0 deletions charts/rstudio/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ metadata:
{{- include "library-chart.labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
{{- if .Values.global.suspend }}
replicas: 0
{{- else}}
replicas: {{ .Values.replicaCount }}
{{- end}}
{{- end }}
serviceName: {{ include "library-chart.fullname" . }}
selector:
Expand Down
15 changes: 15 additions & 0 deletions charts/rstudio/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,21 @@
}
}
}
},
"global": {
"description": "Suspend",
"type": "object",
"properties": {
"suspend": {
"type": "boolean",
"description": "Suspend this service",
"default": false,
"x-onyxia": {
"hidden": true
}
}
}
}

}
}
2 changes: 2 additions & 0 deletions charts/rstudio/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Default values for rstudio.
global:
suspend: false

service:
image:
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: 1.3.31
version: 1.3.32

dependencies:
- name: library-chart
Expand Down
4 changes: 4 additions & 0 deletions charts/vscode-pyspark/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ metadata:
{{- include "library-chart.labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
{{- if .Values.global.suspend }}
replicas: 0
{{- else}}
replicas: {{ .Values.replicaCount }}
{{- end}}
{{- end }}
serviceName: {{ include "library-chart.fullname" . }}
selector:
Expand Down
14 changes: 14 additions & 0 deletions charts/vscode-pyspark/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,20 @@
}
}
}
},
"global": {
"description": "Suspend",
"type": "object",
"properties": {
"suspend": {
"type": "boolean",
"description": "Suspend this service",
"default": false,
"x-onyxia": {
"hidden": true
}
}
}
}
}
}
2 changes: 2 additions & 0 deletions charts/vscode-pyspark/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Default values for vscode.
global:
suspend: false

service:
image:
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 @@ -23,7 +23,7 @@ type: application
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)

version: 1.11.29
version: 1.11.30

dependencies:
- name: library-chart
Expand Down
4 changes: 4 additions & 0 deletions charts/vscode-python/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ metadata:
{{- include "library-chart.labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
{{- if .Values.global.suspend }}
replicas: 0
{{- else}}
replicas: {{ .Values.replicaCount }}
{{- end}}
{{- end }}
serviceName: {{ include "library-chart.fullname" . }}
selector:
Expand Down
14 changes: 14 additions & 0 deletions charts/vscode-python/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,20 @@
}
}
}
},
"global": {
"description": "Suspend",
"type": "object",
"properties": {
"suspend": {
"type": "boolean",
"description": "Suspend this service",
"default": false,
"x-onyxia": {
"hidden": true
}
}
}
}
}
}
4 changes: 3 additions & 1 deletion charts/vscode-python/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Default values for rstudio.
# Default values for vscode.
global:
suspend: false

service:
image:
Expand Down

0 comments on commit 3ce415d

Please sign in to comment.