Skip to content

Commit 8b58e18

Browse files
authored
Merge pull request #451 from helgi/patch
fix(user): supply a kubectl patch function to simplify registration mode setting
2 parents 8d271ca + d097233 commit 8b58e18

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

-35.8 KB
Binary file not shown.

src/users/registration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ Deis Workflow supports three registration modes:
6262
| admin\_only | Only existing admins may register new users |
6363

6464
To modify the registration mode for Workflow you may add or modify the `REGISTRATION_MODE` environment variable for the
65-
controller component. If Deis Workflow is already running, use `kubectl --namespace=deis edit deployment deis-controller`:
65+
controller component. If Deis Workflow is already running, use:
6666

67-
Find the `REGISTRATION_MODE` environment variable in the template file or add the appropriate section:
67+
`kubectl patch deployments deis-controller -p '{"spec":{"template":{"spec":{"containers":[{"name":"deis-controller","env":[{"name":"REGISTRATION_MODE","value":"disabled"}]}]}}}}'`
6868

69-
![](../images/controller-registration-mode.png)
69+
Modify the `value` portion to match the desired mode.
7070

7171
Kubernetes will automatically deploy a new ReplicaSet and corresponding Pod with the new environment variables set.
7272

0 commit comments

Comments
 (0)