-
-
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.
Add service account for operator-companion (#31)
Co-authored-by: Frédéric Collonval <[email protected]>
- Loading branch information
1 parent
2c055da
commit 050cd9e
Showing
3 changed files
with
35 additions
and
0 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,14 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
namespace: datalayer-jupyter | ||
name: datalayer-operator-companion | ||
labels: | ||
k8s-app: datalayer-operator-companion | ||
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} | ||
release: {{ .Release.Name }} | ||
heritage: {{ .Release.Service }} | ||
rules: | ||
- apiGroups: [""] # "" indicates the core API group | ||
resources: ["pods"] | ||
verbs: ["get"] |
13 changes: 13 additions & 0 deletions
13
charts/datalayer-operator/templates/companion-rolebinding.yaml
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,13 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: read-pods | ||
namespace: datalayer-jupyter | ||
subjects: | ||
- kind: ServiceAccount | ||
name: datalayer-operator-companion | ||
namespace: datalayer-jupyter | ||
roleRef: | ||
kind: Role | ||
name: datalayer-operator-companion | ||
apiGroup: rbac.authorization.k8s.io |
8 changes: 8 additions & 0 deletions
8
charts/datalayer-operator/templates/companion-serviceaccount.yaml
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,8 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: datalayer-operator-companion | ||
namespace: datalayer-jupyter | ||
# Opt out of auto API credentials to prevent all containers | ||
# to use the service account | ||
automountServiceAccountToken: false |