Skip to content

Commit 172d91b

Browse files
committed
fix(registration): Add support to change the default regsitration mode
1 parent c9fc062 commit 172d91b

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

charts/controller/templates/controller-deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ spec:
5353
{{- end}}
5454
{{- end}}
5555
env:
56+
- name: REGISTRATION_MODE
57+
value: {{ .Values.registration_mode }}
5658
# NOTE(bacongobbler): use deis/registry_proxy to work around Docker --insecure-registry requirements
5759
- name: "DEIS_REGISTRY_SERVICE_HOST"
5860
value: "localhost"

charts/controller/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ docker_tag: canary
44
app_pull_policy: "Always"
55
# limits_cpu: "100m"
66
# limits_memory: "50Mi"
7+
# Possible values are:
8+
# enabled - allows for open registration
9+
# disabled - turns off open registration
10+
# admin_only - allows for registration by an admin only.
11+
registration_mode: "enabled"
712

813
global:
914
# Set the storage backend

0 commit comments

Comments
 (0)