Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Kidswiss committed Sep 20, 2024
1 parent 853c130 commit ff1775f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ __debug_bin*

hack/res
hack/tmp
hack/diff/function.yaml
9 changes: 5 additions & 4 deletions hack/diff/compare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,12 @@ function get_pnt_func_version() {
function template_func_file() {
export PNT_VERSION=$1
export APPCAT_VERSION=$2
cat "$(dirname "$0")/function.yaml.tmpl" | envsubst > "$(dirname "$0")/function.yaml"
}
function diff_func() {
run_func "$1"
# run_func "$1"
trap stop_func EXIT
while read -r type name rest
Expand All @@ -79,7 +80,7 @@ function diff_func() {
run_single_diff "$type" "$name" "$2"
done <<< "$(kubectl get composite --no-headers | sed 's/\// /g' )"
stop_func
# stop_func
}
# do the diff
Expand Down Expand Up @@ -115,11 +116,11 @@ function clean() {
rm -rf "$(dirname "$0")/function.yaml"
}
stop_func
# stop_func
clean
trap clean EXIT
template_func_file "$(get_pnt_func_version)"
template_func_file "$(get_pnt_func_version)" "$(get_running_func_version)"
echo "Render live manifests"
first_diff
Expand Down
8 changes: 4 additions & 4 deletions hack/diff/function.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ kind: Function
metadata:
name: function-appcat
annotations:
render.crossplane.io/runtime: Development
render.crossplane.io/runtime-docker-cleanup: Stop
spec:
# The tag here doesn't matter, as the annotation above instructs
# crank to connect to a local grpc endpoint.
package: ghcr.io/vshn/appcat:v4.92.0-func
package: ghcr.io/vshn/appcat:v4.93.1
---
apiVersion: pkg.crossplane.io/v1
kind: Function
metadata:
name: function-patch-and-transform
annotations:
render.crossplane.io/runtime-docker-cleanup: Stop
spec:
package: xpkg.upbound.io/crossplane-contrib/function-patch-and-transform:v0.1.4
8 changes: 4 additions & 4 deletions hack/diff/function.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ kind: Function
metadata:
name: function-appcat
annotations:
render.crossplane.io/runtime: Development
render.crossplane.io/runtime-docker-cleanup: Stop
spec:
# The tag here doesn't matter, as the annotation above instructs
# crank to connect to a local grpc endpoint.
package: ghcr.io/vshn/appcat:v4.92.0-func
package: ghcr.io/vshn/appcat:$APPCAT_VERSION
---
apiVersion: pkg.crossplane.io/v1
kind: Function
metadata:
name: function-patch-and-transform
annotations:
render.crossplane.io/runtime-docker-cleanup: Stop
spec:
package: xpkg.upbound.io/crossplane-contrib/function-patch-and-transform:$PNT_VERSION

0 comments on commit ff1775f

Please sign in to comment.