Skip to content

Commit

Permalink
Add non-default SAs to MariaDB and Minio
Browse files Browse the repository at this point in the history
  • Loading branch information
DharmitD committed Aug 3, 2023
1 parent 543be92 commit 1855730
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/internal/mariadb/deployment.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ spec:
component: data-science-pipelines
dspa: {{.Name}}
spec:
serviceAccountName: ds-pipelines-mariadb-sa-{{.Name}}
containers:
- name: mariadb
image: {{.MariaDB.Image}}
Expand Down
8 changes: 8 additions & 0 deletions config/internal/mariadb/mariadb-sa.yaml.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: ds-pipelines-mariadb-sa-{{.Name}}
namespace: {{.Namespace}}
labels:
app: mariadb-{{.Name}}
component: data-science-pipelines
1 change: 1 addition & 0 deletions config/internal/minio/deployment.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ spec:
component: data-science-pipelines
dspa: {{.Name}}
spec:
serviceAccountName: ds-pipelines-minio-sa-{{.Name}}
containers:
- args:
- server
Expand Down
8 changes: 8 additions & 0 deletions config/internal/minio/minio-sa.yaml.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: ds-pipelines-minio-sa-{{.Name}}
namespace: {{.Namespace}}
labels:
app: minio-{{.Name}}
component: data-science-pipelines
1 change: 1 addition & 0 deletions controllers/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ var dbTemplates = []string{
"mariadb/pvc.yaml.tmpl",
"mariadb/sa.yaml.tmpl",
"mariadb/service.yaml.tmpl",
"mariadb/mariadb-sa.yaml.tmpl",
dbSecret,
}

Expand Down
1 change: 1 addition & 0 deletions controllers/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ var storageTemplates = []string{
"minio/deployment.yaml.tmpl",
"minio/pvc.yaml.tmpl",
"minio/service.yaml.tmpl",
"minio/minio-sa.yaml.tmpl",
storageSecret,
}

Expand Down

0 comments on commit 1855730

Please sign in to comment.