-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add service account * Bump version
- Loading branch information
Svetomir Smiljkovic
authored
Jun 26, 2020
1 parent
ad5bb81
commit af59741
Showing
11 changed files
with
168 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
{{- if and .Values.serviceAccount.create .Values.serviceAccount.createClusterRole -}} | ||
--- | ||
kind: ClusterRole | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
metadata: | ||
name: {{ include "beekeeper.serviceAccountName" . }} | ||
labels: | ||
{{ include "beekeeper.labels" . | nindent 4 }} | ||
rules: | ||
- apiGroups: [""] | ||
resources: | ||
- services | ||
- events | ||
- namespaces | ||
verbs: ["*"] | ||
- apiGroups: [""] | ||
resources: ["endpoints"] | ||
verbs: ["create", "get", "list", "watch", "update"] | ||
- apiGroups: ["batch"] | ||
resources: ["jobs"] | ||
verbs: ["get", "list", "watch", "create", "update", "delete"] | ||
- apiGroups: [""] | ||
resources: ["secrets"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: [""] | ||
resources: ["persistentvolumeclaims"] | ||
verbs: ["get", "list", "watch", "create", "update", "delete"] | ||
- apiGroups: [""] | ||
resources: ["pods"] | ||
verbs: ["get", "list", "watch","update", "delete"] | ||
- apiGroups: ["apps"] | ||
resources: ["statefulsets"] | ||
verbs: ["*"] | ||
- apiGroups: [""] | ||
resources: ["configmaps"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: [""] | ||
resources: ["nodes"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: [""] | ||
resources: ["persistentvolumes"] | ||
verbs: ["get", "list", "watch", "patch","update"] | ||
- apiGroups: ["certificates.k8s.io"] | ||
resources: ["certificatesigningrequests", "certificatesigningrequests/approval"] | ||
verbs: ["get", "delete", "create", "update"] | ||
- apiGroups: ["certificates.k8s.io"] | ||
resources: | ||
- "signers" | ||
resourceNames: | ||
- "kubernetes.io/legacy-unknown" | ||
verbs: ["approve"] | ||
- apiGroups: [""] | ||
resources: ["secrets"] | ||
verbs: ["get", "create", "list", "watch", "update", "delete"] | ||
- apiGroups: ["admissionregistration.k8s.io"] | ||
resources: ["mutatingwebhookconfigurations","validatingwebhookconfigurations"] | ||
verbs: ["get", "create", "delete", "update", "patch"] | ||
- apiGroups: ["pingcap.com"] | ||
resources: | ||
- podchaos | ||
- networkchaos | ||
- iochaos | ||
- timechaos | ||
- kernelchaos | ||
- stresschaos | ||
verbs: ["*"] | ||
--- | ||
kind: ClusterRoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
metadata: | ||
name: {{ include "beekeeper.serviceAccountName" . }} | ||
labels: | ||
{{ include "beekeeper.labels" . | nindent 4 }} | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ include "beekeeper.serviceAccountName" . }} | ||
namespace: {{ .Release.Namespace }} | ||
roleRef: | ||
kind: ClusterRole | ||
name: {{ include "beekeeper.serviceAccountName" . }} | ||
apiGroup: rbac.authorization.k8s.io | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{{- if and .Values.serviceAccount.create .Values.serviceAccount.createRole -}} | ||
--- | ||
kind: Role | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
metadata: | ||
namespace: {{ .Release.Namespace }} | ||
name: {{ include "beekeeper.serviceAccountName" . }} | ||
labels: | ||
{{ include "beekeeper.labels" . | nindent 4 }} | ||
rules: | ||
- apiGroups: [""] | ||
resources: | ||
- services | ||
- events | ||
- namespaces | ||
verbs: ["*"] | ||
- apiGroups: [""] | ||
resources: ["endpoints"] | ||
verbs: ["create", "get", "list", "watch", "update"] | ||
- apiGroups: ["batch"] | ||
resources: ["jobs"] | ||
verbs: ["get", "list", "watch", "create", "update", "delete"] | ||
- apiGroups: [""] | ||
resources: ["secrets"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: [""] | ||
resources: ["persistentvolumeclaims"] | ||
verbs: ["get", "list", "watch", "create", "update", "delete"] | ||
- apiGroups: [""] | ||
resources: ["pods"] | ||
verbs: ["get", "list", "watch","update", "delete"] | ||
- apiGroups: ["apps"] | ||
resources: ["statefulsets"] | ||
verbs: ["*"] | ||
- apiGroups: ["pingcap.com"] | ||
resources: | ||
- podchaos | ||
- networkchaos | ||
- iochaos | ||
- timechaos | ||
- kernelchaos | ||
- stresschaos | ||
verbs: ["*"] | ||
--- | ||
kind: RoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
metadata: | ||
namespace: {{ .Release.Namespace }} | ||
name: {{ include "beekeeper.serviceAccountName" . }} | ||
labels: | ||
{{ include "beekeeper.labels" . | nindent 4 }} | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ include "beekeeper.serviceAccountName" . }} | ||
roleRef: | ||
kind: Role | ||
name: {{ include "beekeeper.serviceAccountName" . }} | ||
apiGroup: rbac.authorization.k8s.io | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{{- if .Values.serviceAccount.create -}} | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
namespace: {{ .Release.Namespace }} | ||
name: {{ include "beekeeper.serviceAccountName" . }} | ||
labels: | ||
{{ include "beekeeper.labels" . | nindent 4 }} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters