From 6521cb037e4464fdb95049f8882170ee0d0a612d Mon Sep 17 00:00:00 2001 From: Pan Luo Date: Wed, 8 Feb 2023 14:09:45 -0800 Subject: [PATCH] Reformat to make prettier happy --- images/taint-manager/README.md | 13 ++++--------- images/taint-manager/test/clusterrole.yaml | 6 +++--- images/taint-manager/test/clusterrolebinding.yaml | 8 ++++---- 3 files changed, 11 insertions(+), 16 deletions(-) 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