Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/restart-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: restart-operator
description: A Helm chart for Kubernetes restart-operator
type: application
version: 0.1.0
version: 0.1.1
appVersion: "0.1.0"
keywords:
- kubernetes
Expand Down
3 changes: 3 additions & 0 deletions charts/restart-operator/templates/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ metadata:
name: restartschedules.restart-operator.k8s
labels:
{{- include "restart-operator.labels" . | nindent 4 }}
annotations:
helm.sh/hook: "pre-install,pre-upgrade"
helm.sh/hook-weight: "-5"
spec:
group: restart-operator.k8s
versions:
Expand Down
10 changes: 10 additions & 0 deletions charts/restart-operator/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ metadata:
name: {{ include "restart-operator.fullname" . }}
labels:
{{- include "restart-operator.labels" . | nindent 4 }}
annotations:
helm.sh/hook: "pre-install,pre-upgrade"
helm.sh/hook-weight: "-4"
rules:
# Allow managing restart schedules
- apiGroups: ["restart-operator.k8s"]
Expand Down Expand Up @@ -39,6 +42,9 @@ metadata:
name: {{ include "restart-operator.fullname" . }}
labels:
{{- include "restart-operator.labels" . | nindent 4 }}
annotations:
helm.sh/hook: "pre-install,pre-upgrade"
helm.sh/hook-weight: "-3"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand All @@ -48,6 +54,7 @@ subjects:
name: {{ include "restart-operator.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}

---
# Leader election role binding in operator namespace
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand All @@ -56,6 +63,9 @@ metadata:
namespace: {{ .Release.Namespace }}
labels:
{{- include "restart-operator.labels" . | nindent 4 }}
annotations:
helm.sh/hook: "pre-install,pre-upgrade"
helm.sh/hook-weight: "-2"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand Down
Loading