-
Notifications
You must be signed in to change notification settings - Fork 895
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix env -> envs transform when pulling kfp upstream manifest
- Loading branch information
Showing
2 changed files
with
17 additions
and
1 deletion.
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 |
---|---|---|
@@ -1,9 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
export PIPELINES_SRC_REPO=https://github.com/kubeflow/pipelines.git | ||
# Usage: | ||
# This script should be run from kubeflow/manifest repo's root: | ||
# ./hack/pull_kfp_upstream.sh | ||
|
||
set -ex | ||
|
||
# Please edit the following version before running the script to pull new | ||
# pipelines version. | ||
export PIPELINES_VERSION=1.0.0-rc.2 | ||
export PIPELINES_SRC_REPO=https://github.com/kubeflow/pipelines.git | ||
# Pulling for the first time | ||
# kpt pkg get $PIPELINES_SRC_REPO/manifests/kustomize@$PIPELINES_VERSION pipeline/upstream | ||
|
||
# Updates | ||
kpt pkg update pipeline/upstream/@$PIPELINES_VERSION --strategy force-delete-replace | ||
# Before kubeflow/pipelines/manifests/kustomize supports kustomize v3.5+, we | ||
# have to convert kustomization.yaml env to envs syntax, so that it is compatible | ||
# with latest kustomize used in kubeflow/manifests. | ||
# ref: https://github.com/kubeflow/manifests/pull/1248#issuecomment-645739641 | ||
find pipeline/upstream -name 'kustomization.yaml' -exec \ | ||
sed -i.bak 's#env: \(.*\)#envs: ["\1"]#g' {} + |
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,2 @@ | ||
# sed backup files | ||
*.bak |