-
-
Notifications
You must be signed in to change notification settings - Fork 4
chore: Describe RBAC rules, remove unnecessary rules #767
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
Changes from all commits
0a19455
b806a1b
cd40882
10175f6
a8017e4
3ab5d3d
8c56f24
ddba1bd
7412911
11daf90
93743c4
b0d870f
07280cc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Techassi marked this conversation as resolved.
Show resolved
Hide resolved
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| --- | ||
| # Product ClusterRole: bound (via per AirflowCluster RoleBinding) to the ServiceAccount that Airflow | ||
| # workload pods (webserver, scheduler, worker, triggerer, dag-processor) run as. | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: ClusterRole | ||
| metadata: | ||
| name: {{ include "operator.name" . }}-clusterrole | ||
| labels: | ||
| {{- include "operator.labels" . | nindent 4 }} | ||
| rules: | ||
| # KubernetesExecutor: the Airflow scheduler creates, monitors, and cleans up task pods directly | ||
| - apiGroups: | ||
| - "" | ||
| resources: | ||
| - pods | ||
| verbs: | ||
| - create | ||
| - delete | ||
| - get | ||
| - list | ||
| - patch | ||
| - update | ||
| - watch | ||
| # KubernetesExecutor: the scheduler reads task pod logs for display in the Airflow UI | ||
| - apiGroups: | ||
| - "" | ||
| resources: | ||
| - pods/log | ||
| verbs: | ||
| - get | ||
| # Airflow components publish Kubernetes events | ||
| - apiGroups: | ||
| - events.k8s.io | ||
| resources: | ||
| - events | ||
| verbs: | ||
| - create | ||
| - patch | ||
|
Comment on lines
+31
to
+38
Member
Author
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. I think this is unused. The operator should be the one to create/update events. |
||
| {{ if .Capabilities.APIVersions.Has "security.openshift.io/v1" }} | ||
| # On OpenShift: allows workload pods to use the nonroot-v2 SecurityContextConstraint | ||
| - apiGroups: | ||
| - security.openshift.io | ||
| resources: | ||
| - securitycontextconstraints | ||
| resourceNames: | ||
| - nonroot-v2 | ||
| verbs: | ||
| - use | ||
| {{ end }} | ||
Uh oh!
There was an error while loading. Please reload this page.