Skip to content

Commit 366fcae

Browse files
upgrade to latest dependencies (#650)
bumping knative.dev/serving 6a27004...674f624: > 674f624 [release-1.16] Fix configuration timeout defaulting (# 15721) > 06bb3a7 Ensure ContainerHealthy condition is set back to True (# 15712) > b17688f upgrade to latest dependencies (# 15704) > 0f99634 upgrade to latest dependencies (# 15692) > 18588ed pin chainguard action version (# 15693) > a230c06 [release-1.16] Fix configuration metadata inconsistency (# 15650) bumping knative.dev/hack 30344ae...b5e4ff8: > b5e4ff8 [release-1.16] Update GKE version to 1.29 (# 415) > 6cb0feb [release-1.16] Refactor release script to gh CLI (# 410) bumping knative.dev/eventing 96ab579...1898a2a: > 1898a2a [release-1.16] Upgrade to latest dependencies (# 8488) > d59d3b6 [release-1.16] Scheduler: Resync reserved periodically to keep state consistent (# 8452) > aae7a34 [release-1.16] Add `sinks.knative.dev` to namespaced ClusterRole (# 8434) > 7289df9 [release-1.16] fix: remove duplicated observedGeneration from jobsinks.sinks.knative.dev (# 8423) > 2a46ff5 [release-1.16] Reduce mt-broker-controller memory usage with namespaced endpoint informer (# 8422) > bb92b8c [release-1.16] Upgrade to latest dependencies (# 8409) > 7da3cee [release-1.16] Scheduler: LastOrdinal based on replicas instead of FreeCap (# 8394) > ee786ee [release-1.16] Register eventshub image for JobSink (# 8391) > 852ae3b [release-1.16] Remove conversion webhook config in EventPolicy CRD (# 8381) > 9740b12 [release-1.16] MT-Broker: return retriable status code based on the state to leverage retries (# 8367) Signed-off-by: Knative Automation <automation@knative.team>
1 parent 2905e5a commit 366fcae

5 files changed

Lines changed: 35 additions & 37 deletions

File tree

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ require (
1313
k8s.io/api v0.30.3
1414
k8s.io/apimachinery v0.30.3
1515
k8s.io/client-go v0.30.3
16-
knative.dev/eventing v0.43.3
17-
knative.dev/hack v0.0.0-20250114120502-30344aeba756
16+
knative.dev/eventing v0.43.4
17+
knative.dev/hack v0.0.0-20250220110655-b5e4ff820460
1818
knative.dev/pkg v0.0.0-20241021183759-9b9d535af5ad
19-
knative.dev/serving v0.43.0
19+
knative.dev/serving v0.43.2
2020
)
2121

2222
require (

go.sum

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -794,16 +794,16 @@ k8s.io/kube-openapi v0.0.0-20240808142205-8e686545bdb8 h1:1Wof1cGQgA5pqgo8MxKPtf
794794
k8s.io/kube-openapi v0.0.0-20240808142205-8e686545bdb8/go.mod h1:Os6V6dZwLNii3vxFpxcNaTmH8LJJBkOTg1N0tOA0fvA=
795795
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 h1:pUdcCO1Lk/tbT5ztQWOBi5HBgbBP1J8+AsQnQCKsi8A=
796796
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
797-
knative.dev/eventing v0.43.3 h1:xt10rMoe6t1hFPPrnsR5NYe/vWRXQqLgRK8lS6n5mU8=
798-
knative.dev/eventing v0.43.3/go.mod h1:pdrF+bEUfRkNn9ifWXS7DoVj5W31gA5KQVd8iwplXUo=
799-
knative.dev/hack v0.0.0-20250114120502-30344aeba756 h1:WOZy3XeC4frTOCHmmPjPj70ojyeAjO8MtNfO02nMq0w=
800-
knative.dev/hack v0.0.0-20250114120502-30344aeba756/go.mod h1:R0ritgYtjLDO9527h5vb5X6gfvt5LCrJ55BNbVDsWiY=
797+
knative.dev/eventing v0.43.4 h1:70PVmvOsfVfD+gLbFRfBaAWOdBJXcDCcGAYLqepSixA=
798+
knative.dev/eventing v0.43.4/go.mod h1:2Ag0XextzS6/Z5GYFVNTRrWBHzBXq+l9DxmXJcrWntI=
799+
knative.dev/hack v0.0.0-20250220110655-b5e4ff820460 h1:N82WjXiv6RlXnA+qV4cA2tUbTnE3B6C3BWE+dcM/F9A=
800+
knative.dev/hack v0.0.0-20250220110655-b5e4ff820460/go.mod h1:R0ritgYtjLDO9527h5vb5X6gfvt5LCrJ55BNbVDsWiY=
801801
knative.dev/networking v0.0.0-20241022012959-60e29ff520dc h1:0d9XXRLlyuHfINZLlYqo/BYe/+chqqNBMLKJldjTbtw=
802802
knative.dev/networking v0.0.0-20241022012959-60e29ff520dc/go.mod h1:G56j6VCLzfaN9yZ4IqfNyN4c3U1czvhUmKeZX4UjQ8Q=
803803
knative.dev/pkg v0.0.0-20241021183759-9b9d535af5ad h1:Nrjtr2H168rJeamH4QdyLMV1lEKHejNhaj1ymgQMfLk=
804804
knative.dev/pkg v0.0.0-20241021183759-9b9d535af5ad/go.mod h1:StJI72GWcm/iErmk4RqFJiOo8RLbVqPbHxUqeVwAzeo=
805-
knative.dev/serving v0.43.0 h1:S+nCHYBaKo8r1kge6zF7hDxQrag5rwMkQTSZyDmrYIc=
806-
knative.dev/serving v0.43.0/go.mod h1:qYjwZdjv3SD7t+Tk/hvxml824G5njXZrycmCBBALpJk=
805+
knative.dev/serving v0.43.2 h1:itJXTQeWUnqoIChf5uXQ97UG0sxNos1H0ZHov4GA/+g=
806+
knative.dev/serving v0.43.2/go.mod h1:KhhRhb3HPyKSm924/QRjqtAj2U0x5UZM217SxVTbibs=
807807
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
808808
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
809809
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=

vendor/knative.dev/hack/infra-library.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ source "$(dirname "${BASH_SOURCE[0]:-$0}")/library.sh"
2121

2222
# Default Kubernetes version to use for GKE, if not overridden with
2323
# the `--cluster-version` parameter.
24-
readonly GKE_DEFAULT_CLUSTER_VERSION="1.28"
24+
readonly GKE_DEFAULT_CLUSTER_VERSION="1.29"
2525

2626
# Dumps the k8s api server metrics. Spins up a proxy, waits a little bit and
2727
# dumps the metrics to ${ARTIFACTS}/k8s.metrics.txt

vendor/knative.dev/hack/release.sh

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,10 @@ export GOFLAGS="-ldflags=-s -ldflags=-w"
9090
export GITHUB_TOKEN=""
9191
readonly IMAGES_REFS_FILE="${IMAGES_REFS_FILE:-$(mktemp -d)/images_refs.txt}"
9292

93-
# Convenience function to run the hub tool.
94-
# Parameters: $1..$n - arguments to hub.
95-
function hub_tool() {
96-
# Pinned to SHA because of https://github.com/github/hub/issues/2517
97-
go_run github.com/github/hub/v2@363513a "$@"
93+
# Convenience function to run the GitHub CLI tool `gh`.
94+
# Parameters: $1..$n - arguments to gh.
95+
function gh_tool() {
96+
go_run github.com/cli/cli/v2/cmd/gh@v2.65.0 "$@"
9897
}
9998

10099
# Shortcut to "git push" that handles authentication.
@@ -193,7 +192,7 @@ function prepare_dot_release() {
193192
# Support tags in two formats
194193
# - knative-v1.0.0
195194
# - v1.0.0
196-
releases="$(hub_tool release | cut -d '-' -f2)"
195+
releases="$(gh_tool release list --json tagName --jq '.[].tagName' | cut -d '-' -f2)"
197196
echo "Current releases are: ${releases}"
198197
[[ $? -eq 0 ]] || abort "cannot list releases"
199198
# If --release-branch passed, restrict to that release
@@ -218,7 +217,7 @@ function prepare_dot_release() {
218217
# Ensure there are new commits in the branch, otherwise we don't create a new release
219218
setup_branch
220219
# Use the original tag (ie. potentially with a knative- prefix) when determining the last version commit sha
221-
local github_tag="$(hub_tool release | grep "${last_version}")"
220+
local github_tag="$(gh_tool release list --json tagName --jq '.[].tagName' | grep "${last_version}")"
222221
local last_release_commit="$(git rev-list -n 1 "${github_tag}")"
223222
local last_release_commit_filtered="$(git rev-list --invert-grep --grep "\[skip-dot-release\]" -n 1 "${github_tag}")"
224223
local release_branch_commit="$(git rev-list -n 1 upstream/"${RELEASE_BRANCH}")"
@@ -239,7 +238,7 @@ function prepare_dot_release() {
239238
# If --release-notes not used, copy from the latest release
240239
if [[ -z "${RELEASE_NOTES}" ]]; then
241240
RELEASE_NOTES="$(mktemp)"
242-
hub_tool release show -f "%b" "${github_tag}" > "${RELEASE_NOTES}"
241+
gh_tool release view "${github_tag}" --json "body" --jq '.body' > "${RELEASE_NOTES}"
243242
echo "Release notes from ${last_version} copied to ${RELEASE_NOTES}"
244243
fi
245244
}
@@ -640,18 +639,12 @@ function set_latest_to_highest_semver() {
640639

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

643-
last_version="$(hub_tool -p release | cut -d'-' -f2 | grep '^v[0-9]\+\.[0-9]\+\.[0-9]\+$'| sort -r -V | head -1)"
642+
last_version="$(gh_tool release list --json tagName --jq '.[].tagName' | cut -d'-' -f2 | grep '^v[0-9]\+\.[0-9]\+\.[0-9]\+$'| sort -r -V | head -1)"
644643
if ! [[ $? -eq 0 ]]; then
645644
abort "cannot list releases"
646645
fi
647-
648-
release_id="$(hub_tool api "/repos/${ORG_NAME}/${REPO_NAME}/releases/tags/knative-${last_version}" | jq .id)"
649-
if [[ $? -ne 0 ]]; then
650-
abort "cannot get relase id from github"
651-
fi
652-
653-
hub_tool api --method PATCH "/repos/${ORG_NAME}/${REPO_NAME}/releases/$release_id" \
654-
-F make_latest=true > /dev/null || abort "error setting $last_version to 'latest'"
646+
647+
gh_tool release edit "knative-${last_version}" --latest > /dev/null || abort "error setting $last_version to 'latest'"
655648
echo "Github release ${last_version} set as 'latest'"
656649
}
657650

@@ -742,12 +735,14 @@ function publish_to_github() {
742735
local description="$(mktemp)"
743736
local attachments_dir="$(mktemp -d)"
744737
local commitish=""
738+
local target_branch=""
745739
local github_tag="knative-${TAG}"
746740

747741
# Copy files to a separate dir
742+
# shellcheck disable=SC2068
748743
for artifact in $@; do
749744
cp ${artifact} "${attachments_dir}"/
750-
attachments+=("--attach=${artifact}#$(basename ${artifact})")
745+
attachments+=("${artifact}#$(basename ${artifact})")
751746
done
752747
echo -e "${title}\n" > "${description}"
753748
if [[ -n "${RELEASE_NOTES}" ]]; then
@@ -774,13 +769,16 @@ function publish_to_github() {
774769
git tag -a "${github_tag}" -m "${title}"
775770
git_push tag "${github_tag}"
776771

777-
[[ -n "${RELEASE_BRANCH}" ]] && commitish="--commitish=${RELEASE_BRANCH}"
772+
[[ -n "${RELEASE_BRANCH}" ]] && target_branch="--target=${RELEASE_BRANCH}"
778773
for i in {2..0}; do
779-
hub_tool release create \
780-
${attachments[@]} \
781-
--file="${description}" \
782-
"${commitish}" \
783-
"${github_tag}" && return 0
774+
# shellcheck disable=SC2068
775+
gh_tool release create \
776+
"${github_tag}" \
777+
--title "${title}" \
778+
--notes-file "${description}" \
779+
"${target_branch}" \
780+
${attachments[@]} && return 0
781+
784782
if [[ "${i}" -gt 0 ]]; then
785783
echo "Error publishing the release, retrying in 15s..."
786784
sleep 15

vendor/modules.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ k8s.io/utils/pointer
989989
k8s.io/utils/ptr
990990
k8s.io/utils/strings/slices
991991
k8s.io/utils/trace
992-
# knative.dev/eventing v0.43.3
992+
# knative.dev/eventing v0.43.4
993993
## explicit; go 1.22.0
994994
knative.dev/eventing/pkg/adapter/v2
995995
knative.dev/eventing/pkg/adapter/v2/util/crstatusevent
@@ -1051,7 +1051,7 @@ knative.dev/eventing/pkg/observability
10511051
knative.dev/eventing/pkg/observability/client
10521052
knative.dev/eventing/pkg/reconciler/resources
10531053
knative.dev/eventing/pkg/reconciler/source
1054-
# knative.dev/hack v0.0.0-20250114120502-30344aeba756
1054+
# knative.dev/hack v0.0.0-20250220110655-b5e4ff820460
10551055
## explicit; go 1.21
10561056
knative.dev/hack
10571057
# knative.dev/networking v0.0.0-20241022012959-60e29ff520dc
@@ -1113,7 +1113,7 @@ knative.dev/pkg/tracker
11131113
knative.dev/pkg/version
11141114
knative.dev/pkg/webhook
11151115
knative.dev/pkg/webhook/certificates/resources
1116-
# knative.dev/serving v0.43.0
1116+
# knative.dev/serving v0.43.2
11171117
## explicit; go 1.22.0
11181118
knative.dev/serving/pkg/apis/autoscaling
11191119
knative.dev/serving/pkg/apis/autoscaling/v1alpha1

0 commit comments

Comments
 (0)