Skip to content

Commit

Permalink
Reformat to make prettier happy
Browse files Browse the repository at this point in the history
  • Loading branch information
xcompass committed Feb 10, 2023
1 parent b591809 commit 6521cb0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 16 deletions.
13 changes: 4 additions & 9 deletions images/taint-manager/README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
6 changes: 3 additions & 3 deletions images/taint-manager/test/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
8 changes: 4 additions & 4 deletions images/taint-manager/test/clusterrolebinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6521cb0

Please sign in to comment.