-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Onyxia v4 : ui renamed to web and version bumps (#52)
* Warning : breaking changes, read README.md ! * Refactor ui to web * Repository and tag for standard renovate matching * Bump versions --------- Co-authored-by: odysseu <[email protected]>
- Loading branch information
Showing
13 changed files
with
130 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Helm chart for [Onyxia](https://www.onyxia.sh/) | ||
|
||
## Breaking changes | ||
|
||
### v3 to v4 | ||
|
||
* `ui` block has been renamed to `web` in the values. Change your `values.yaml` file accordingly. | ||
* Any resource created by helm that was suffixed by `ui` is now suffixed by `web`. This should be seamless for you unless you specifically rely on resource name for other purposes. | ||
* `image.name` has been renamed to `image.repository` and `image.version` has been renamed to `image.tag` to be more standard. If you are overriding versions in either web or API you should use those new values keys. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ include "onyxia.web.fullname" . }} | ||
labels: | ||
{{- include "onyxia.web.labels" . | nindent 4 }} | ||
spec: | ||
replicas: {{ .Values.web.replicaCount }} | ||
selector: | ||
matchLabels: | ||
{{- include "onyxia.web.selectorLabels" . | nindent 6 }} | ||
template: | ||
metadata: | ||
labels: | ||
{{- include "onyxia.web.selectorLabels" . | nindent 8 }} | ||
{{- with .Values.web.podLabels }} | ||
{{ toYaml . | indent 8 }} | ||
{{- end }} | ||
spec: | ||
{{- with .Values.imagePullSecrets }} | ||
imagePullSecrets: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
serviceAccountName: {{ include "onyxia.web.serviceAccountName" . }} | ||
securityContext: | ||
{{- toYaml .Values.web.podSecurityContext | nindent 8 }} | ||
containers: | ||
- name: {{ .Chart.Name }} | ||
securityContext: | ||
{{- toYaml .Values.web.securityContext | nindent 12 }} | ||
image: "{{ .Values.web.image.repository }}:{{ .Values.web.image.tag }}" | ||
imagePullPolicy: {{ .Values.web.image.pullPolicy }} | ||
env: | ||
{{- if .Values.web.env }} | ||
{{- range $key, $value := .Values.web.env }} | ||
- name: {{ $key }} | ||
value: {{ $value | quote }} | ||
{{- end -}} | ||
{{- end }} | ||
ports: | ||
- name: http | ||
containerPort: {{ .Values.web.containerPort }} | ||
protocol: TCP | ||
livenessProbe: | ||
httpGet: | ||
path: / | ||
port: http | ||
readinessProbe: | ||
httpGet: | ||
path: / | ||
port: http | ||
resources: | ||
{{- toYaml .Values.web.resources | nindent 12 }} | ||
{{- if .Values.web.extraVolumeMounts }} | ||
volumeMounts: {{- toYaml .Values.web.extraVolumeMounts | nindent 12 }} | ||
{{- end }} | ||
{{- with .Values.web.nodeSelector }} | ||
nodeSelector: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.web.affinity }} | ||
affinity: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.web.tolerations }} | ||
tolerations: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- if .Values.web.extraVolumes }} | ||
volumes: {{- toYaml .Values.web.extraVolumes | nindent 6 }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "onyxia.web.fullname" . }} | ||
labels: | ||
{{- include "onyxia.web.labels" . | nindent 4 }} | ||
spec: | ||
type: {{ .Values.web.service.type }} | ||
ports: | ||
- port: {{ .Values.web.service.port }} | ||
targetPort: http | ||
protocol: TCP | ||
name: http | ||
selector: | ||
{{- include "onyxia.web.selectorLabels" . | nindent 4 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: "{{ include "onyxia.ui.fullname" . }}-test-connection" | ||
name: "{{ include "onyxia.web.fullname" . }}-test-connection" | ||
labels: | ||
{{- include "onyxia.ui.labels" . | nindent 4 }} | ||
{{- include "onyxia.web.labels" . | nindent 4 }} | ||
annotations: | ||
"helm.sh/hook": test-success | ||
spec: | ||
containers: | ||
- name: wget | ||
image: busybox | ||
command: ['wget'] | ||
args: ['{{ include "onyxia.ui.fullname" . }}:{{ .Values.ui.service.port }}'] | ||
args: ['{{ include "onyxia.web.fullname" . }}:{{ .Values.web.service.port }}'] | ||
restartPolicy: Never |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters