generated from hybrid-cloud-patterns/example
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #291 from mbaldessari/quick-fixes
ds-pipeline-config fixes and url fixes
- Loading branch information
Showing
2 changed files
with
70 additions
and
7 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
63 changes: 63 additions & 0 deletions
63
charts/datacenter/data-science-project/templates/ds-pipeline-config-custom.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,63 @@ | ||
# At the moment it seems that the ds-pipeline-config secret only | ||
# gets generated by the RHOAI dashboard once you log in and click around | ||
# Until it is a bit more gitops friendly, let's create it ourselves | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: ds-pipeline-config-custom-tpl | ||
data: | ||
odh_dsp.json: | | ||
{ | ||
"display_name": "Data Science Pipeline", | ||
"metadata": { | ||
"tags": [], | ||
"display_name": "Data Science Pipeline", | ||
"engine": "Argo", | ||
"auth_type": "KUBERNETES_SERVICE_ACCOUNT_TOKEN", | ||
"api_endpoint": "https://ds-pipeline-dspa-ml-development.{{ .Values.global.localClusterDomain }}", | ||
"public_api_endpoint": "https://rhods-dashboard-redhat-ods-applications.{{ .Values.global.localClusterDomain }}/experiments/ml-development/", | ||
"cos_auth_type": "KUBERNETES_SECRET", | ||
"cos_secret": "aws-connection-pipeline-bucket", | ||
"cos_endpoint": "http://s3.openshift-storage.svc.cluster.local", | ||
"cos_bucket": "pipeline-bucket", | ||
"cos_username": "{{ `{{ .aws_access_key_id }}` }}", | ||
"cos_password": "{{ `{{ .aws_secret_access_key }}` }}", | ||
"runtime_type": "KUBEFLOW_PIPELINES" | ||
}, | ||
"schema_name": "kfp" | ||
} | ||
--- | ||
apiVersion: "external-secrets.io/v1beta1" | ||
kind: ExternalSecret | ||
metadata: | ||
name: ds-pipeline-config-custom | ||
namespace: ml-development | ||
spec: | ||
refreshInterval: 15s | ||
secretStoreRef: | ||
name: {{ $.Values.secretStore.name }} | ||
kind: {{ $.Values.secretStore.kind }} | ||
target: | ||
name: ds-pipeline-config-custom | ||
template: | ||
type: Opaque | ||
engineVersion: v2 | ||
templateFrom: | ||
- target: Data | ||
configMap: | ||
name: ds-pipeline-config-custom-tpl | ||
items: | ||
- key: odh_dsp.json | ||
templateAs: Values | ||
data: | ||
- secretKey: aws_secret_access_key | ||
remoteRef: | ||
key: "pushsecrets/pipeline-bucket" | ||
property: "AWS_SECRET_ACCESS_KEY" | ||
|
||
- secretKey: aws_access_key_id | ||
remoteRef: | ||
key: "pushsecrets/pipeline-bucket" | ||
property: "AWS_ACCESS_KEY_ID" | ||
|