Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alewitt2 committed Aug 1, 2019
1 parent 1e31e97 commit f0076c8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,15 @@ Mode options:
- `EnsureExists`
- Will ensure the resource is created and is replaced if deleted. Will not
enforce a definition.

### Lock Cluster Updates

Prevents the controller from updating resources on the cluster. If this is the
first time creating the `kapitan-config` ConfigMap, you must delete the running
controller pods so the deployment can mount the ConfigMap as a volume. If the
`kapitan-config` ConfigMap already exists, just add the pair `lock-cluster: true`.

1. `export CONTROLLER_NAME=remoteresource-controller && export CONTROLLER_NAMESPACE=razee`
1. `kubectl create cm kapitan-config -n $CONTROLLER_NAMESPACE --from-literal=lock-cluster=true`
1. `kubectl delete pods -n $CONTROLLER_NAMESPACE $(kubectl get pods -n $CONTROLLER_NAMESPACE
| grep $CONTROLLER_NAME | awk '{print $1}' | paste -s -d ',' -)`

0 comments on commit f0076c8

Please sign in to comment.