This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2020-10-16 19:36:12 +00:00
|
|
|
{{- if .Values.kubernetesIntegration }}
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRole
|
|
|
|
metadata:
|
|
|
|
name: {{ include "passbook.fullname" . }}-sa-role
|
|
|
|
rules:
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- secrets
|
|
|
|
- services
|
|
|
|
verbs:
|
|
|
|
- "get"
|
|
|
|
- "create"
|
|
|
|
- "delete"
|
|
|
|
- "read"
|
|
|
|
- "patch"
|
|
|
|
- apiGroups:
|
|
|
|
- "extensions"
|
|
|
|
- "apps"
|
|
|
|
resources:
|
|
|
|
- "deployments"
|
|
|
|
verbs:
|
|
|
|
- "get"
|
|
|
|
- "create"
|
|
|
|
- "delete"
|
|
|
|
- "read"
|
|
|
|
- "patch"
|
2020-10-18 15:13:44 +00:00
|
|
|
- apiGroups:
|
|
|
|
- "extensions"
|
|
|
|
- "networking"
|
|
|
|
resources:
|
|
|
|
- "ingress"
|
|
|
|
verbs:
|
|
|
|
- "get"
|
|
|
|
- "create"
|
|
|
|
- "delete"
|
|
|
|
- "read"
|
|
|
|
- "patch"
|
2020-10-16 19:36:12 +00:00
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- namespaces
|
|
|
|
verbs:
|
|
|
|
- list
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ServiceAccount
|
|
|
|
metadata:
|
|
|
|
name: {{ include "passbook.fullname" . }}-sa
|
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRoleBinding
|
|
|
|
metadata:
|
|
|
|
name: {{ include "passbook.fullname" . }}-sa-role-binding
|
|
|
|
roleRef:
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
kind: ClusterRole
|
|
|
|
name: {{ include "passbook.fullname" . }}-sa-role
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: {{ include "passbook.fullname" . }}-sa
|
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
{{- end }}
|