Skip to content

Commit

Permalink
Merge pull request #9 from nginxinc/rbac-fix
Browse files Browse the repository at this point in the history
RBAC resources to `nkl` namespace
  • Loading branch information
ciroque authored Feb 13, 2023
2 parents 6fe6efb + b5441f2 commit 1e1af3a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions k8s/RBAC/ClusterRole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: ingress-resource-get-watch-list
namespace: nkl
rules:
- apiGroups:
- ""
Expand Down
4 changes: 3 additions & 1 deletion k8s/RBAC/ClusterRoleBinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: "nginx-k8s-edge-controller:ingress-resource-get-watch-list"
namespace: nkl
subjects:
- kind: ServiceAccount
name: nginx-k8s-edge-controller
namespace: default
namespace: nkl
roleRef:
kind: ClusterRole
name: ingress-resource-get-watch-list
namespace: nkl
apiGroup: rbac.authorization.k8s.io
1 change: 1 addition & 0 deletions k8s/RBAC/Secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: v1
kind: Secret
metadata:
name: nginx-k8s-edge-controller-secret
namespace: nkl
annotations:
kubernetes.io/service-account.name: nginx-k8s-edge-controller
type: kubernetes.io/service-account-token
1 change: 1 addition & 0 deletions k8s/RBAC/ServiceAccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: nginx-k8s-edge-controller
namespace: nkl

0 comments on commit 1e1af3a

Please sign in to comment.