Skip to content

Commit

Permalink
Fix VNC on Openshift.
Browse files Browse the repository at this point in the history
  • Loading branch information
aandryashin committed Feb 26, 2024
1 parent e47b49a commit 926ebc1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion moon2/templates/configs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,20 @@

{{- $releaseNamespace := .Release.Namespace }}
{{- range $name, $conf := .Values.configs }}
{{- if $.Values.ingress.openshift }}
{{- $containers := get $conf "containers" }}
{{- $vncServer := get $containers "vnc-server" }}
{{- $repo := get $vncServer "repository" }}
{{- if eq $repo "quay.io/aerokube/vnc-server" }}
{{- $_ := set $vncServer "repository" "quay.io/aerokube/vnc-server-openshift" }}
{{- $_ := set $conf.containers "vnc-server" $vncServer }}
{{- end }}
{{- end }}
---
apiVersion: moon.aerokube.com/v1
kind: Config
metadata:
name: {{ $name }}
namespace: {{ $releaseNamespace }}
spec: {{- $conf | toYaml | nindent 2 }}
{{- end }}
{{- end }}

0 comments on commit 926ebc1

Please sign in to comment.