-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Install `ServiceAccount`, `Role`, and `RoleBinding` to the cluster during helm install - Attach `ServiceAccount` to deployment for API to create custom resource - Updated dummy values.yaml, NOTES.txt - Added `.gitignore` to ignore unwanted files Fixes issue #26
- Loading branch information
1 parent
96b2972
commit edc9862
Showing
7 changed files
with
55 additions
and
21 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.DS_Store |
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,12 @@ | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
namespace: {{ .Values.namespace }} | ||
name: {{ .Release.Name }}-role | ||
rules: | ||
- apiGroups: | ||
- {{ .Values.config.k8s_group }} | ||
resources: | ||
- {{ .Values.config.k8s_cr_kind_plural }} | ||
verbs: ["create", "update", "patch", "delete"] |
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,21 @@ | ||
--- | ||
# This role binding allows {{ .Release.Name }}-role to read pods in the | ||
# {{ .Values.namespace }} namespace. | ||
# Need to already have a Role named {{ .Release.Name }}-role in that namespace | ||
# to create RoleBinding. | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: {{ .Release.Name }}-role-binding | ||
namespace: {{ .Values.namespace }} | ||
subjects: | ||
# You can specify more than one "subject" | ||
- namespace: {{ .Values.namespace }} | ||
kind: ServiceAccount | ||
name: {{ .Release.Name }}-service-account # "name" is case sensitive | ||
roleRef: | ||
# Role or ClusterRole | ||
kind: Role | ||
# Must match the name of the Role or ClusterRole you wish to bind to | ||
name: {{ .Release.Name }}-role | ||
apiGroup: rbac.authorization.k8s.io |
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,5 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: {{ .Release.Name }}-service-account | ||
namespace: {{ .Values.namespace }} |
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