-
Notifications
You must be signed in to change notification settings - Fork 901
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Use KFP multi user mode for GCP (#1373)
* refactor: pipelines profile controller should get minio access keys from the secret * do not print secrets in log * use kfp multi user mode for gcp stacks * update snapshot
- Loading branch information
Showing
77 changed files
with
1,819 additions
and
25 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
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
48 changes: 48 additions & 0 deletions
48
...ice/test_data/expected/apps_v1beta1_deployment_kubeflow-pipelines-profile-controller.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,48 @@ | ||
apiVersion: apps/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: kubeflow-pipelines-profile-controller | ||
name: kubeflow-pipelines-profile-controller | ||
namespace: kubeflow | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: kubeflow-pipelines-profile-controller | ||
template: | ||
metadata: | ||
annotations: | ||
sidecar.istio.io/inject: "false" | ||
labels: | ||
app: kubeflow-pipelines-profile-controller | ||
spec: | ||
containers: | ||
- command: | ||
- python | ||
- /hooks/sync.py | ||
env: | ||
- name: MINIO_ACCESS_KEY | ||
valueFrom: | ||
secretKeyRef: | ||
key: accesskey | ||
name: mlpipeline-minio-artifact | ||
- name: MINIO_SECRET_KEY | ||
valueFrom: | ||
secretKeyRef: | ||
key: secretkey | ||
name: mlpipeline-minio-artifact | ||
envFrom: | ||
- configMapRef: | ||
name: kubeflow-pipelines-profile-controller-env-822cf46mft | ||
image: python:3.7 | ||
name: profile-controller | ||
ports: | ||
- containerPort: 80 | ||
volumeMounts: | ||
- mountPath: /hooks | ||
name: hooks | ||
volumes: | ||
- configMap: | ||
name: kubeflow-pipelines-profile-controller-code-m828g88mtm | ||
name: hooks |
46 changes: 46 additions & 0 deletions
46
...controller.k8s.io_v1alpha1_compositecontroller_kubeflow-pipelines-profile-controller.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,46 @@ | ||
apiVersion: metacontroller.k8s.io/v1alpha1 | ||
kind: CompositeController | ||
metadata: | ||
labels: | ||
app: kubeflow-pipelines-profile-controller | ||
name: kubeflow-pipelines-profile-controller | ||
namespace: kubeflow | ||
spec: | ||
childResources: | ||
- apiVersion: v1 | ||
resource: secrets | ||
updateStrategy: | ||
method: OnDelete | ||
- apiVersion: v1 | ||
resource: configmaps | ||
updateStrategy: | ||
method: OnDelete | ||
- apiVersion: apps/v1 | ||
resource: deployments | ||
updateStrategy: | ||
method: InPlace | ||
- apiVersion: v1 | ||
resource: services | ||
updateStrategy: | ||
method: InPlace | ||
- apiVersion: networking.istio.io/v1alpha3 | ||
resource: destinationrules | ||
updateStrategy: | ||
method: InPlace | ||
- apiVersion: rbac.istio.io/v1alpha1 | ||
resource: serviceroles | ||
updateStrategy: | ||
method: InPlace | ||
- apiVersion: rbac.istio.io/v1alpha1 | ||
resource: servicerolebindings | ||
updateStrategy: | ||
method: InPlace | ||
generateSelector: true | ||
hooks: | ||
sync: | ||
webhook: | ||
url: http://kubeflow-pipelines-profile-controller/sync | ||
parentResource: | ||
apiVersion: v1 | ||
resource: namespaces | ||
resyncPeriodSeconds: 10 |
10 changes: 10 additions & 0 deletions
10
...ce/test_data/expected/networking.istio.io_v1alpha3_destinationrule_ml-pipeline-mysql.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,10 @@ | ||
apiVersion: networking.istio.io/v1alpha3 | ||
kind: DestinationRule | ||
metadata: | ||
name: ml-pipeline-mysql | ||
namespace: kubeflow | ||
spec: | ||
host: mysql.kubeflow.svc.cluster.local | ||
trafficPolicy: | ||
tls: | ||
mode: ISTIO_MUTUAL |
10 changes: 10 additions & 0 deletions
10
...alice/test_data/expected/networking.istio.io_v1alpha3_destinationrule_ml-pipeline-ui.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,10 @@ | ||
apiVersion: networking.istio.io/v1alpha3 | ||
kind: DestinationRule | ||
metadata: | ||
name: ml-pipeline-ui | ||
namespace: kubeflow | ||
spec: | ||
host: ml-pipeline-ui.kubeflow.svc.cluster.local | ||
trafficPolicy: | ||
tls: | ||
mode: ISTIO_MUTUAL |
10 changes: 10 additions & 0 deletions
10
...xpected/networking.istio.io_v1alpha3_destinationrule_ml-pipeline-visualizationserver.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,10 @@ | ||
apiVersion: networking.istio.io/v1alpha3 | ||
kind: DestinationRule | ||
metadata: | ||
name: ml-pipeline-visualizationserver | ||
namespace: kubeflow | ||
spec: | ||
host: ml-pipeline-visualizationserver.kubeflow.svc.cluster.local | ||
trafficPolicy: | ||
tls: | ||
mode: ISTIO_MUTUAL |
10 changes: 10 additions & 0 deletions
10
...es/alice/test_data/expected/networking.istio.io_v1alpha3_destinationrule_ml-pipeline.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,10 @@ | ||
apiVersion: networking.istio.io/v1alpha3 | ||
kind: DestinationRule | ||
metadata: | ||
name: ml-pipeline | ||
namespace: kubeflow | ||
spec: | ||
host: ml-pipeline.kubeflow.svc.cluster.local | ||
trafficPolicy: | ||
tls: | ||
mode: ISTIO_MUTUAL |
31 changes: 31 additions & 0 deletions
31
...data/expected/rbac.authorization.k8s.io_v1_clusterrole_kubeflow-pipelines-cache-role.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,31 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: kubeflow-pipelines-cache-role | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- pods | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- update | ||
- patch | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- configmaps | ||
verbs: | ||
- get | ||
- apiGroups: | ||
- argoproj.io | ||
resources: | ||
- workflows | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- update | ||
- patch |
31 changes: 31 additions & 0 deletions
31
...ted/rbac.authorization.k8s.io_v1_clusterrole_kubeflow-pipelines-metadata-writer-role.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,31 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: kubeflow-pipelines-metadata-writer-role | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- pods | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- update | ||
- patch | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- configmaps | ||
verbs: | ||
- get | ||
- apiGroups: | ||
- argoproj.io | ||
resources: | ||
- workflows | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- update | ||
- patch |
21 changes: 21 additions & 0 deletions
21
.../expected/rbac.authorization.k8s.io_v1_clusterrole_ml-pipeline-persistenceagent-role.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,21 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: ml-pipeline-persistenceagent-role | ||
rules: | ||
- apiGroups: | ||
- argoproj.io | ||
resources: | ||
- workflows | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- kubeflow.org | ||
resources: | ||
- scheduledworkflows | ||
verbs: | ||
- get | ||
- list | ||
- watch |
36 changes: 36 additions & 0 deletions
36
...expected/rbac.authorization.k8s.io_v1_clusterrole_ml-pipeline-scheduledworkflow-role.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,36 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: ml-pipeline-scheduledworkflow-role | ||
rules: | ||
- apiGroups: | ||
- argoproj.io | ||
resources: | ||
- workflows | ||
verbs: | ||
- create | ||
- get | ||
- list | ||
- watch | ||
- update | ||
- patch | ||
- delete | ||
- apiGroups: | ||
- kubeflow.org | ||
resources: | ||
- scheduledworkflows | ||
verbs: | ||
- create | ||
- get | ||
- list | ||
- watch | ||
- update | ||
- patch | ||
- delete | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- events | ||
verbs: | ||
- create | ||
- patch |
Oops, something went wrong.