Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2 from DoodleScheduling/bump-chart
Browse files Browse the repository at this point in the history
fix rbac helm chart
  • Loading branch information
raffis authored Apr 1, 2022
2 parents 5fbd79b + 3ec6966 commit 0c5a56f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion chart/k8sprom-patch-controller/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ keywords:
name: k8sprom-patch-controller
sources:
- https://github.com/DoodleScheduling/k8sprom-patch-controller
version: 0.1.1
version: 0.1.2
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ rules:
- apiGroups:
- metrics.infra.doodle.com
resources:
- patchrules
- prometheuspatchrules
verbs:
- create
- delete
Expand All @@ -28,7 +28,7 @@ rules:
- apiGroups:
- metrics.infra.doodle.com
resources:
- patchrules/status
- prometheuspatchrules/status
verbs:
- get
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ rules:
- apiGroups:
- metrics.infra.doodle.com
resources:
- patchrules
- prometheuspatchrules
verbs:
- get
- list
- watch
- apiGroups:
- metrics.infra.doodle.com
resources:
- patchrules/status
- prometheuspatchrules/status
verbs:
- get
{{- end }}
6 changes: 3 additions & 3 deletions chart/k8sprom-patch-controller/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ rules:
- apiGroups:
- metrics.infra.doodle.com
resources:
- patchrules
- prometheuspatchrules
verbs:
- create
- delete
Expand All @@ -26,13 +26,13 @@ rules:
- apiGroups:
- metrics.infra.doodle.com
resources:
- patchrules/finalizers
- prometheuspatchrules/finalizers
verbs:
- update
- apiGroups:
- metrics.infra.doodle.com
resources:
- patchrules/status
- prometheuspatchrules/status
verbs:
- get
- patch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ subjects:
{{- end }}
namespace: {{ .Release.Namespace }}
{{- end }}
{{- if .Values.clusterRBAC.fullAdmin -}}
{{- if .Values.clusterRBAC.fullAdmin }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ template "k8sprom-patch-controller.fullname" . }}
name: {{ template "k8sprom-patch-controller.fullname" . }}-cluster-admin
labels:
app.kubernetes.io/name: {{ include "k8sprom-patch-controller.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
Expand Down

0 comments on commit 0c5a56f

Please sign in to comment.