Skip to content

Commit

Permalink
Merge pull request #246 from aandryashin/master
Browse files Browse the repository at this point in the history
Fix VNC on Openshift.
  • Loading branch information
vania-pooh authored Feb 26, 2024
2 parents e47b49a + 926ebc1 commit c04f950
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 c04f950

Please sign in to comment.