Skip to content

Commit

Permalink
RBAC: Move RoleBinding to separate file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gacko committed Nov 10, 2022
1 parent 6f72451 commit 6ebc881
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ and this project's packages adheres to [Semantic Versioning](http://semver.org/s
- Webhook: Align to upstream. ([#374](https://github.com/giantswarm/nginx-ingress-controller-app/pull/374))
- RBAC: Align to upstream. ([#378](https://github.com/giantswarm/nginx-ingress-controller-app/pull/378))
- RBAC: Move `ClusterRoleBinding` to separate file.
- RBAC: Move `RoleBinding` to separate file.

## [2.20.0] - 2022-11-02

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: {{ include "ingress-nginx.fullname" . }}-ng
namespace: {{ .Release.Namespace }}
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
subjects:
- kind: ServiceAccount
name: {{ include "ingress-nginx.fullname" . }}
namespace: {{ .Release.Namespace }}
roleRef:
kind: Role
name: {{ include "ingress-nginx.fullname" . }}
apiGroup: rbac.authorization.k8s.io
16 changes: 0 additions & 16 deletions helm/nginx-ingress-controller-app/templates/rbac.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: {{ include "ingress-nginx.fullname" . }}-ng
namespace: {{ .Release.Namespace }}
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
subjects:
- kind: ServiceAccount
name: {{ include "ingress-nginx.fullname" . }}
namespace: {{ .Release.Namespace }}
roleRef:
kind: Role
name: {{ include "ingress-nginx.fullname" . }}
apiGroup: rbac.authorization.k8s.io
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
Expand Down

0 comments on commit 6ebc881

Please sign in to comment.