Skip to content

Commit

Permalink
fix(chart): fix invalid rbac specs for auto cluster roles (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
raffis authored May 22, 2024
1 parent df66b0d commit e5ca221
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ kustomize: ## Download kustomize locally if necessary.
ENVTEST = $(GOBIN)/setup-envtest
.PHONY: envtest
envtest: ## Download envtest-setup locally if necessary.
$(call go-install-tool,$(ENVTEST),sigs.k8s.io/controller-runtime/tools/setup-envtest@latest)
$(call go-install-tool,$(ENVTEST),sigs.k8s.io/controller-runtime/tools/setup-envtest@release-0.17)

# go-install-tool will 'go install' any package $2 and install it to $1
define go-install-tool
Expand Down
10 changes: 4 additions & 6 deletions chart/cloud-autoscale-controller/templates/clusterrole-edit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ rules:
- apiGroups:
- "cloudautoscale.infra.doodle.com"
resources:
- cloudautoscalerealms
- cloudautoscaleclients
- cloudautoscaleusers
- awsrdsinstances
- mongodbatlasclusters
verbs:
- create
- delete
Expand All @@ -30,9 +29,8 @@ rules:
- apiGroups:
- "cloudautoscale.infra.doodle.com"
resources:
- cloudautoscalerealms/status
- cloudautoscaleclients/status
- cloudautoscaleusers/status
- awsrdsinstances/status
- mongodbatlasclusters/status
verbs:
- get
{{- end }}
10 changes: 4 additions & 6 deletions chart/cloud-autoscale-controller/templates/clusterrole-view.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,17 @@ rules:
- apiGroups:
- "cloudautoscale.infra.doodle.com"
resources:
- cloudautoscalerealms
- cloudautoscaleclients
- cloudautoscaleusers
- awsrdsinstances
- mongodbatlasclusters
verbs:
- get
- list
- watch
- apiGroups:
- "cloudautoscale.infra.doodle.com"
resources:
- cloudautoscalerealms/status
- cloudautoscaleclients/status
- cloudautoscaleusers/status
- awsrdsinstances/status
- mongodbatlasclusters/status
verbs:
- get
{{- end }}

0 comments on commit e5ca221

Please sign in to comment.