Skip to content

Commit

Permalink
Merge pull request #38 from aandryashin/master
Browse files Browse the repository at this point in the history
Add custom quota configuration.
  • Loading branch information
vania-pooh authored Dec 4, 2020
2 parents a06a89e + cf6f50e commit 0e080cb
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 0e080cb

Please sign in to comment.