forked from OCP-on-NERC/nerc-ocp-config
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend project-robbie RBAC across all project-robbie projects
Configure consistent RBAC in all project-robbie namespaces: - project-robbie-6f75ac - project-robbie-8dd79e - project-robbie-b4784c These changes included custom configuration for the Kustomize namespace transformer so that it will update the namespace for all subjects listed in the RoleBindings. See [1] for an example configuration, and [2] for what passes for documentation. [1]: kubernetes-sigs/kustomize#629 (comment) [2]: kubernetes-sigs/kustomize#4704
- Loading branch information
Showing
7 changed files
with
68 additions
and
2 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
cluster-scope/overlays/nerc-ocp-prod/rolebindings/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
16 changes: 16 additions & 0 deletions
16
cluster-scope/overlays/nerc-ocp-prod/rolebindings/project-robbie-6f75ac/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
11 changes: 11 additions & 0 deletions
11
...lays/nerc-ocp-prod/rolebindings/project-robbie-6f75ac/project-robbie-allow-sys-admin.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
16 changes: 16 additions & 0 deletions
16
cluster-scope/overlays/nerc-ocp-prod/rolebindings/project-robbie-8dd79e/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
11 changes: 11 additions & 0 deletions
11
...lays/nerc-ocp-prod/rolebindings/project-robbie-8dd79e/project-robbie-allow-sys-admin.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
13 changes: 12 additions & 1 deletion
13
cluster-scope/overlays/nerc-ocp-prod/rolebindings/project-robbie-b4784c/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters