Skip to content

Commit

Permalink
Add custom quota configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
aandryashin committed Dec 4, 2020
1 parent a06a89e commit cf6f50e
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
9 changes: 9 additions & 0 deletions moon/templates/moon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
28 changes: 27 additions & 1 deletion moon/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit cf6f50e

Please sign in to comment.