Skip to content
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

Extend project-robbie RBAC across all project-robbie projects #577

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- project-robbie-6f75ac
- project-robbie-8dd79e
- project-robbie-b4784c
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- project-robbie-allow-sys-admin.yaml

transformers:
- |-
apiVersion: builtin
kind: NamespaceTransformer
metadata:
name: notImportantHere
namespace: project-robbie-6f75ac
setRoleBindingSubjects: allServiceAccounts
fieldSpecs:
- path: metadata/namespace
create: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: project-robbie-allow-sys-admin
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: nerc-allow-sys-admin
subjects:
- kind: ServiceAccount
name: robbie-job-runner
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- project-robbie-allow-sys-admin.yaml

transformers:
- |-
apiVersion: builtin
kind: NamespaceTransformer
metadata:
name: notImportantHere
namespace: project-robbie-8dd79e
setRoleBindingSubjects: allServiceAccounts
fieldSpecs:
- path: metadata/namespace
create: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: project-robbie-allow-sys-admin
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: nerc-allow-sys-admin
subjects:
- kind: ServiceAccount
name: robbie-job-runner
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: project-robbie-b4784c
resources:
- project-robbie-allow-sys-admin.yaml

transformers:
- |-
apiVersion: builtin
kind: NamespaceTransformer
metadata:
name: notImportantHere
namespace: project-robbie-b4784c
setRoleBindingSubjects: allServiceAccounts
fieldSpecs:
- path: metadata/namespace
create: true
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ roleRef:
name: nerc-allow-sys-admin
subjects:
- kind: ServiceAccount
namespace: project-robbie-b4784c
name: robbie-job-runner