Skip to content

Commit

Permalink
fix(scribe): add missing rolebinding
Browse files Browse the repository at this point in the history
Signed-off-by: Mateusz Urbanek <[email protected]>
  • Loading branch information
shanduur committed Sep 29, 2024
1 parent 55a1697 commit 0c4c8ca
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion anza-labs/scribe/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: |
Scribe is a tool that automates the propagation of annotations across Kubernetes resources based
on the annotations in a Namespace.
type: application
version: 0.1.0
version: 0.1.1
appVersion: "v0.1.0"
maintainers:
- name: Mateusz Urbanek
Expand Down
2 changes: 1 addition & 1 deletion anza-labs/scribe/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# scribe

![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat)
![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-informational?style=flat) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat)

Scribe is a tool that automates the propagation of annotations across Kubernetes resources based
on the annotations in a Namespace.
Expand Down
18 changes: 16 additions & 2 deletions anza-labs/scribe/templates/rbac.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,26 @@
---
{{- $separator := "/" }}
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
kind: ClusterRoleBinding
metadata:
name: {{ include "scribe.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "scribe.labels" . | nindent 4 }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{ include "scribe.fullname" . }}
subjects:
- kind: ServiceAccount
name: {{ include "scribe.fullname" . }}
namespace: {{ .Release.Namespace }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ include "scribe.fullname" . }}
labels:
{{- include "scribe.labels" . | nindent 4 }}
rules:
# Leader election
- apiGroups:
Expand Down

0 comments on commit 0c4c8ca

Please sign in to comment.