diff --git a/images/taint-manager/README.md b/images/taint-manager/README.md index 9ac722d1f8..0e8dad27c1 100644 --- a/images/taint-manager/README.md +++ b/images/taint-manager/README.md @@ -1,23 +1,18 @@ -In Cluster Taint Manager -========================== +# In Cluster Taint Manager To add or remove taint of a node from a in-cluster pod. -Compile ---------- +## Compile ``` GOOS=linux GOARCH=amd64 go build -o taintmanager taintmanager.go ``` -Development and Debug ------------------------ +## Development and Debug The dev/debug environment is setup by `tilt`. To start, run `tilt up`. - -Test -------- +## Test The `test` directory contains YAML files for deploy a pod with required permissions to run taintmanager. Please change `namespace` field in `clusterrolebinding.yaml` before deploying to a cluster. diff --git a/images/taint-manager/test/clusterrole.yaml b/images/taint-manager/test/clusterrole.yaml index 2f671740ec..33553ce37c 100644 --- a/images/taint-manager/test/clusterrole.yaml +++ b/images/taint-manager/test/clusterrole.yaml @@ -3,6 +3,6 @@ kind: ClusterRole metadata: name: taintmanager rules: -- apiGroups: [""] # "" indicates the core API group - resources: ["nodes"] - verbs: ["get", "update"] + - apiGroups: [""] # "" indicates the core API group + resources: ["nodes"] + verbs: ["get", "update"] diff --git a/images/taint-manager/test/clusterrolebinding.yaml b/images/taint-manager/test/clusterrolebinding.yaml index 06660a792e..0eb5c77791 100644 --- a/images/taint-manager/test/clusterrolebinding.yaml +++ b/images/taint-manager/test/clusterrolebinding.yaml @@ -5,10 +5,10 @@ kind: ClusterRoleBinding metadata: name: taintmanager subjects: -# You can specify more than one "subject" -- kind: ServiceAccount - name: taintmanager - namespace: default + # You can specify more than one "subject" + - kind: ServiceAccount + name: taintmanager + namespace: default roleRef: # "roleRef" specifies the binding to a Role / ClusterRole kind: ClusterRole #this must be Role or ClusterRole