-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: audit controller and management controller permissions #2230
Changes from all commits
ed119c5
a35a1f8
0eab185
818c25b
89e12a7
05b06ba
824a808
34ff2f3
415edab
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,6 @@ rules: | |
- get | ||
- list | ||
- watch | ||
- patch | ||
- apiGroups: | ||
- kargo.akuity.io | ||
resources: | ||
|
@@ -50,7 +49,6 @@ rules: | |
- list | ||
- patch | ||
- promote | ||
- update | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The only update to Stages involves removing a finalizer and that can quite easily be done with a patch. |
||
- watch | ||
- apiGroups: | ||
- kargo.akuity.io | ||
|
@@ -59,7 +57,6 @@ rules: | |
verbs: | ||
- get | ||
- list | ||
- patch | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The controller does not need to patch Warehouses at all. |
||
- watch | ||
- apiGroups: | ||
- kargo.akuity.io | ||
|
@@ -70,16 +67,7 @@ rules: | |
- warehouses/finalizers | ||
- warehouses/status | ||
verbs: | ||
- update | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The controller only ever patches status subresources. |
||
- patch | ||
- apiGroups: | ||
- argoproj.io | ||
resources: | ||
- analysistemplates | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
{{- if and .Values.controller.argocd.integrationEnabled (not .Values.controller.argocd.watchArgocdNamespaceOnly) }} | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
|
@@ -110,6 +98,14 @@ metadata: | |
{{- include "kargo.labels" . | nindent 4 }} | ||
{{- include "kargo.controller.labels" . | nindent 4 }} | ||
rules: | ||
- apiGroups: | ||
- argoproj.io | ||
resources: | ||
- analysistemplates | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
Comment on lines
+101
to
+108
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These permissions are better off down here where they will not be granted in the event that Rollouts integration is completely disabled. |
||
- apiGroups: | ||
- argoproj.io | ||
resources: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The controller doesn't need to patch Freight or Promotions at all.