Skip to content

Commit

Permalink
feat: Ignore *Role and *RoleBinding pod-pinner resources (#89)
Browse files Browse the repository at this point in the history
Ignore *Role and *RoleBinding pod-pinner resources
  • Loading branch information
kiriloman authored Nov 28, 2023
1 parent 613c33d commit 8d89f1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions helm/hook/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ var labelIgnoreResources = map[string]struct{}{
"rbac.authorization.k8s.io/v1/Role//castai-evictor": {},
"rbac.authorization.k8s.io/v1/RoleBinding//castai-evictor": {},

"rbac.authorization.k8s.io/v1/ClusterRole//castai-pod-pinner": {},
"rbac.authorization.k8s.io/v1/ClusterRoleBinding//castai-pod-pinner": {},
"rbac.authorization.k8s.io/v1/Role//castai-pod-pinner": {},
"rbac.authorization.k8s.io/v1/RoleBinding//castai-pod-pinner": {},

"rbac.authorization.k8s.io/v1/ClusterRole//castai-agent": {},
"rbac.authorization.k8s.io/v1/ClusterRoleBinding//castai-agent": {},
"rbac.authorization.k8s.io/v1/Role//castai-agent": {},
Expand Down
1 change: 1 addition & 0 deletions helm/hook/hook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ func TestIgnoreHook(t *testing.T) {

components := map[string]componentVersions{
"castai-evictor": {"0.5.1", "0.10.0", "0.6.0", "0.11.0"},
"castai-pod-pinner": {"0.5.1", "0.10.0", "0.6.0", "0.11.0"},
"castai-agent": {"0.5.1", "0.10.0", "0.6.0", "0.11.0"},
"castai-spot-handler": {"0.5.1", "0.10.0", "0.6.0", "0.11.0"},
"castai-egressd": {"0.5.1", "0.10.0", "0.6.0", "0.11.0"},
Expand Down

0 comments on commit 8d89f1b

Please sign in to comment.