Skip to content

Commit

Permalink
Add helm disable console value
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
  • Loading branch information
torchiaf committed May 19, 2024
1 parent 4a3edb9 commit 4d51617
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helm-charts/code-editor/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ spec:
path: containers.json
- key: vscode-settings
path: vscode-settings.json
{{- if .Values.console.enabled }}
---
apiVersion: apps/v1
kind: Deployment
Expand Down Expand Up @@ -94,3 +95,4 @@ spec:
env:
- name: BASE_HREF
value: {{ quote .Values.console.env.baseHref }}
{{- end }}
2 changes: 2 additions & 0 deletions helm-charts/code-editor/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ spec:
- name: headers-manage
- name: strip-prefix
- name: cors
{{- if .Values.console.enabled }}
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
Expand All @@ -108,3 +109,4 @@ spec:
services:
- name: {{ .Release.Name }}-console
port: 8083
{{- end }}
2 changes: 2 additions & 0 deletions helm-charts/code-editor/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ spec:
app: {{ .Release.Name }}-server
ports:
{{- .Values.server.ports | toYaml | nindent 2 }}
{{- if .Values.console.enabled }}
---
apiVersion: v1
kind: Service
Expand All @@ -23,3 +24,4 @@ spec:
app: {{ .Release.Name }}-console
ports:
{{- .Values.console.ports | toYaml | nindent 2 }}
{{- end }}
2 changes: 2 additions & 0 deletions helm-charts/code-editor/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ metadata:
creationTimestamp: null
name: {{ .Release.Name }}-server
---
{{- if .Values.console.enabled }}
apiVersion: v1
kind: ServiceAccount
metadata:
creationTimestamp: null
name: {{ .Release.Name }}-console
---
{{- end }}
apiVersion: v1
kind: ServiceAccount
metadata:
Expand Down

0 comments on commit 4d51617

Please sign in to comment.