Skip to content

Commit

Permalink
upgrade to latest dependencies
Browse files Browse the repository at this point in the history
bumping knative.dev/reconciler-test d2429fb...36fcbd0:
  > 36fcbd0 upgrade to latest dependencies (# 629)
  > 0b51fb9 upgrade to latest dependencies (# 628)
bumping knative.dev/eventing 62e797b...e3b7970:
  > e3b7970 [main] Upgrade to latest dependencies (# 7430)
  > cc3d30e [main] Upgrade to latest dependencies (# 7429)
bumping knative.dev/pkg 5c9b7a8...6564cf1:
  > 6564cf1 upgrade to latest dependencies (# 2893)
  > 35011d4 upgrade to latest dependencies (# 2892)
bumping knative.dev/hack 0d99b7e...5deadde:
  > 5deadde 🐛 Set latest release only when publishing to Github (# 346)
  > 8834794 Call set_latest_to_highest_semver after publishing a new release (# 343)

Signed-off-by: Knative Automation <automation@knative.team>
  • Loading branch information
knative-automation committed Nov 10, 2023
1 parent b566fcb commit f37da9d
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 21 deletions.
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ require (
k8s.io/client-go v0.27.6
k8s.io/code-generator v0.27.6
k8s.io/kube-openapi v0.0.0-20230928205116-a78145627833
knative.dev/eventing v0.39.1-0.20231106141706-62e797b257bb
knative.dev/hack v0.0.0-20231102183416-0d99b7ee9d63
knative.dev/pkg v0.0.0-20231107094615-5c9b7a8d8265
knative.dev/reconciler-test v0.0.0-20231107120858-d2429fb0b545
knative.dev/eventing v0.39.1-0.20231108081932-e3b797031d76
knative.dev/hack v0.0.0-20231109190034-5deaddeb51a7
knative.dev/pkg v0.0.0-20231109234131-6564cf14689f
knative.dev/reconciler-test v0.0.0-20231109234136-36fcbd054949
sigs.k8s.io/controller-runtime v0.15.2
)

Expand Down
16 changes: 8 additions & 8 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1870,14 +1870,14 @@ k8s.io/kube-openapi v0.0.0-20230928205116-a78145627833 h1:iFFEmmB7szQhJP42AvRD2+
k8s.io/kube-openapi v0.0.0-20230928205116-a78145627833/go.mod h1:AsvuZPBlUDVuCdzJ87iajxtXuR9oktsTctW/R9wwouA=
k8s.io/utils v0.0.0-20230726121419-3b25d923346b h1:sgn3ZU783SCgtaSJjpcVVlRqd6GSnlTLKgpAAttJvpI=
k8s.io/utils v0.0.0-20230726121419-3b25d923346b/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
knative.dev/eventing v0.39.1-0.20231106141706-62e797b257bb h1:cqDvaK7znWzq/UbObhAX8FSWzriZHPBi2QT/xIg1iGo=
knative.dev/eventing v0.39.1-0.20231106141706-62e797b257bb/go.mod h1:2+O6/8BM8o1mMUeaZgAh78u3dAQ0zbbf1Tlt2QEa2zs=
knative.dev/hack v0.0.0-20231102183416-0d99b7ee9d63 h1:QNbIbsep8jreNCXj3EFrsw0RtsrmMZw7yxYyUG5AILs=
knative.dev/hack v0.0.0-20231102183416-0d99b7ee9d63/go.mod h1:yk2OjGDsbEnQjfxdm0/HJKS2WqTLEFg/N6nUs6Rqx3Q=
knative.dev/pkg v0.0.0-20231107094615-5c9b7a8d8265 h1:wFDUSmvSQF48tUCIUIFKMOxq9jpV+vXf5l+RZYxYyt4=
knative.dev/pkg v0.0.0-20231107094615-5c9b7a8d8265/go.mod h1:P3m1Mg/FJjmr9oFHfWcoUbJLSlBi/hgwakobPxyqrZ4=
knative.dev/reconciler-test v0.0.0-20231107120858-d2429fb0b545 h1:0F0E77IbX5XxCxZ19Gopygwy+b6pVktrYAzMcFnVhK4=
knative.dev/reconciler-test v0.0.0-20231107120858-d2429fb0b545/go.mod h1:R7GebYEQbys4NXZJa0EzYx6+Hw3LZduuDkvp8FdBPU8=
knative.dev/eventing v0.39.1-0.20231108081932-e3b797031d76 h1:8BWkTOnmW8U0wNqLFU9AGgymnuhf0b4lcxKC/+UL1g0=
knative.dev/eventing v0.39.1-0.20231108081932-e3b797031d76/go.mod h1:i6R6Yif89VlVaNd4xyAqpZqryBDVv/j/ZFeMzHdgHxI=
knative.dev/hack v0.0.0-20231109190034-5deaddeb51a7 h1:HXf7M7n9jwn+Hp904r0HXRSymf+DLXSciFpXVpCg+Bs=
knative.dev/hack v0.0.0-20231109190034-5deaddeb51a7/go.mod h1:yk2OjGDsbEnQjfxdm0/HJKS2WqTLEFg/N6nUs6Rqx3Q=
knative.dev/pkg v0.0.0-20231109234131-6564cf14689f h1:DA4Gu57CAVdhWna0dj6OAFfwurjhvIsbnF1Sg+Esq8s=
knative.dev/pkg v0.0.0-20231109234131-6564cf14689f/go.mod h1:bG/l4f2gZBUCcpsTEf+yFB6NSG+Epmz6idd7cctlmIM=
knative.dev/reconciler-test v0.0.0-20231109234136-36fcbd054949 h1:/YkzlzrywuNVwpGyLVgFkwbmmRpXxNL1gcXQ4xkELGY=
knative.dev/reconciler-test v0.0.0-20231109234136-36fcbd054949/go.mod h1:Ps0NWuOGMxNZcnc2kpnPfySnPZ+eGc0LDEEk4qhPI6I=
lukechampine.com/uint128 v1.1.1/go.mod h1:c4eWIwlEGaxC/+H1VguhU4PHXNWDCDMUlWdIWl2j1gk=
lukechampine.com/uint128 v1.2.0/go.mod h1:c4eWIwlEGaxC/+H1VguhU4PHXNWDCDMUlWdIWl2j1gk=
modernc.org/cc/v3 v3.36.0/go.mod h1:NFUHyPn4ekoC/JHeZFfZurN6ixxawE1BnVonP/oahEI=
Expand Down
18 changes: 13 additions & 5 deletions vendor/knative.dev/hack/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -652,24 +652,31 @@ function publish_artifacts() {
fi
[[ -n "${RELEASE_GCS_BUCKET}" ]] && publish_to_gcs "${ARTIFACTS_TO_PUBLISH}"
publish_to_github "${ARTIFACTS_TO_PUBLISH}"
set_latest_to_highest_semver
banner "New release published successfully"
}

# Sets the github release with the highest semver to 'latest'
function set_latest_to_highest_semver() {
local last_version # don't combine with the line below, or $? will be 0
if ! (( PUBLISH_TO_GITHUB )); then
return 0
fi
echo "Setting latest release to highest semver"

local last_version release_id # don't combine with assignment else $? will be 0

last_version="$(hub_tool -p release | cut -d'-' -f2 | grep '^v[0-9]\+\.[0-9]\+\.[0-9]\+$'| sort -r -V | head -1)"
if ! [[ $? -eq 0 ]]; then
abort "cannot list releases"
fi

local release_id # don't combine with the line below, or $? will be 0
release_id="$(hub_tool api /repos/${ORG_NAME}/${REPO_NAME}/releases/tags/knative-${last_version} | jq .id)"
release_id="$(hub_tool api "/repos/${ORG_NAME}/${REPO_NAME}/releases/tags/knative-${last_version}" | jq .id)"
if [[ $? -ne 0 ]]; then
abort "cannot get relase id from github"
fi

hub_tool api --method PATCH /repos/knative/serving/releases/$release_id -F make_latest=true > /dev/null || abort "error settomg $last_version to 'latest'"
hub_tool api --method PATCH "/repos/knative/serving/releases/$release_id" \
-F make_latest=true > /dev/null || abort "error settomg $last_version to 'latest'"
echo "Github release ${last_version} set as 'latest'"
}

Expand Down Expand Up @@ -699,6 +706,8 @@ function main() {
function_exists build_release || abort "function 'build_release()' not defined"
[[ -x ${VALIDATION_TESTS} ]] || abort "test script '${VALIDATION_TESTS}' doesn't exist"

banner "Environment variables"
env
# Log what will be done and where.
banner "Release configuration"
if which gcloud &>/dev/null ; then
Expand Down Expand Up @@ -745,7 +754,6 @@ function main() {
done
echo "New release built successfully"
publish_artifacts
set_latest_to_highest_semver
}

# Publishes a new release on GitHub, also git tagging it (unless this is not a versioned release).
Expand Down
8 changes: 4 additions & 4 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1086,7 +1086,7 @@ k8s.io/utils/pointer
k8s.io/utils/ptr
k8s.io/utils/strings/slices
k8s.io/utils/trace
# knative.dev/eventing v0.39.1-0.20231106141706-62e797b257bb
# knative.dev/eventing v0.39.1-0.20231108081932-e3b797031d76
## explicit; go 1.19
knative.dev/eventing/cmd/heartbeats
knative.dev/eventing/pkg/adapter/v2
Expand Down Expand Up @@ -1197,10 +1197,10 @@ knative.dev/eventing/test/test_images
knative.dev/eventing/test/test_images/event-sender
knative.dev/eventing/test/test_images/performance
knative.dev/eventing/test/test_images/print
# knative.dev/hack v0.0.0-20231102183416-0d99b7ee9d63
# knative.dev/hack v0.0.0-20231109190034-5deaddeb51a7
## explicit; go 1.18
knative.dev/hack
# knative.dev/pkg v0.0.0-20231107094615-5c9b7a8d8265
# knative.dev/pkg v0.0.0-20231109234131-6564cf14689f
## explicit; go 1.18
knative.dev/pkg/apis
knative.dev/pkg/apis/duck
Expand Down Expand Up @@ -1305,7 +1305,7 @@ knative.dev/pkg/webhook/json
knative.dev/pkg/webhook/resourcesemantics
knative.dev/pkg/webhook/resourcesemantics/defaulting
knative.dev/pkg/webhook/resourcesemantics/validation
# knative.dev/reconciler-test v0.0.0-20231107120858-d2429fb0b545
# knative.dev/reconciler-test v0.0.0-20231109234136-36fcbd054949
## explicit; go 1.20
knative.dev/reconciler-test/cmd/eventshub
knative.dev/reconciler-test/pkg/environment
Expand Down

0 comments on commit f37da9d

Please sign in to comment.