Skip to content

Commit

Permalink
adding func-deploy-pac patch script (#749)
Browse files Browse the repository at this point in the history
* adding func-deploy-pac override patch

* chore: adding func-deploy-pac.yaml patch (using bash script)
  • Loading branch information
jrangelramos authored Mar 7, 2024
1 parent 000af19 commit 098cb78
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions openshift/release/update-to-head.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ if [[ -d openshift/overrides ]]; then
cp -r openshift/overrides/. .
rm -rf openshift/overrides
fi
# Apply midstream patches using scripts
if [[ -d openshift/scripts ]]; then
for script in openshift/scripts/*.sh; do
"$script"
done
fi
git add .

make generate/zz_filesystem_generated.go
Expand Down
11 changes: 11 additions & 0 deletions openshift/scripts/generate-tekton-pac.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

set -e

FUNC_S2I="pkg/pipelines/resources/tekton/task/func-s2i/0.1/func-s2i"
FUNC_BUILDPACKS="pkg/pipelines/resources/tekton/task/func-buildpacks/0.2/func-buildpacks"
FUNC_DEPLOY="pkg/pipelines/resources/tekton/task/func-deploy/0.1/func-deploy"

sed -e 's/^kind: .*/kind: Task/' "${FUNC_S2I}.yaml" > "${FUNC_S2I}-pac.yaml"
sed -e 's/^kind: .*/kind: Task/' "${FUNC_BUILDPACKS}.yaml" > "${FUNC_BUILDPACKS}-pac.yaml"
sed -e 's/^kind: .*/kind: Task/' "${FUNC_DEPLOY}.yaml" > "${FUNC_DEPLOY}-pac.yaml"

0 comments on commit 098cb78

Please sign in to comment.