mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-02-14 09:59:57 +00:00
* chore: add golint to pre-commit Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore: move legacy docs Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore: ran pre-commit Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore: fix goreleaser regexps Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> --------- Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>
53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
{{- if .Values.crds.install }}
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRole
|
|
metadata:
|
|
name: {{ include "capsule.crds.name" . }}
|
|
namespace: {{ .Release.Namespace | quote }}
|
|
annotations:
|
|
# create hook dependencies in the right order
|
|
"helm.sh/hook-weight": "-3"
|
|
{{- include "capsule.crds.annotations" . | nindent 4 }}
|
|
labels:
|
|
app.kubernetes.io/component: {{ include "capsule.crds.component" . | quote }}
|
|
{{- include "capsule.labels" . | nindent 4 }}
|
|
rules:
|
|
- apiGroups:
|
|
- ""
|
|
resources:
|
|
- jobs
|
|
verbs:
|
|
- create
|
|
- delete
|
|
- apiGroups:
|
|
- apiextensions.k8s.io
|
|
resources:
|
|
- customresourcedefinitions
|
|
verbs:
|
|
- create
|
|
- delete
|
|
- get
|
|
- patch
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRoleBinding
|
|
metadata:
|
|
name: {{ include "capsule.crds.name" . }}
|
|
namespace: {{ .Release.Namespace | quote }}
|
|
annotations:
|
|
# create hook dependencies in the right order
|
|
"helm.sh/hook-weight": "-2"
|
|
{{- include "capsule.crds.annotations" . | nindent 4 }}
|
|
labels:
|
|
app.kubernetes.io/component: {{ include "capsule.crds.component" . | quote }}
|
|
{{- include "capsule.labels" . | nindent 4 }}
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: ClusterRole
|
|
name: {{ include "capsule.crds.name" . }}
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: {{ include "capsule.crds.name" . }}
|
|
namespace: {{ .Release.Namespace | quote }}
|
|
{{- end }}
|