diff --git a/moon/templates/moon.yaml b/moon/templates/moon.yaml index 69a3791..3ca8eef 100644 --- a/moon/templates/moon.yaml +++ b/moon/templates/moon.yaml @@ -459,10 +459,19 @@ metadata: name: {{ .Release.Name }}-quota namespace: {{ .Release.Namespace }} data: +{{- if .Values.moon.customQuota }} +{{- range $k,$v := .Values.moon.customQuota }} + {{ $k }}.json: | + {{ $v | toJson }} +{{- end }} +{{- else }} +{{- if .Values.moon.quota }} {{- range $k,$v := .Values.moon.quota }} {{ $k }}.json: | {{ $v | toJson }} {{- end }} +{{- end }} +{{- end }} --- apiVersion: v1 kind: Secret diff --git a/moon/values.yaml b/moon/values.yaml index 55c20d9..4c31d3e 100644 --- a/moon/values.yaml +++ b/moon/values.yaml @@ -274,8 +274,34 @@ moon: # limits: 1Gi # requests: 512Mi +# ## +# ## Custom browser configuration to ovewrite defaults, it is used instead quota if exists. For ex. major browsers latest versions. +# ## +# customQuota: +# browsers: +# safari: +# default: "13.0" +# versions: +# "13.0": +# image: browsers/safari:13.0 +# port: "4444" +# path: "/" +# firefox: +# default: "83.0" +# versions: +# "83.0": +# image: selenoid/vnc_firefox:83.0 +# port: "4444" +# path: "/wd/hub" +# chrome: +# default: "87.0" +# versions: +# "87.0": +# image: selenoid/vnc_chrome:87.0 +# port: "4444" + ## - ## Moon browsers configuration. + ## Default Moon browsers configuration. ## quota: browsers: