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 359287e...4965c77:
  > 4965c77 upgrade to latest dependencies (# 780)
  > ea681a5 upgrade to latest dependencies (# 778)
bumping knative.dev/eventing-redis a658d0b...ffd7947:
  > ffd7947 upgrade to latest dependencies (# 640)
bumping knative.dev/pkg 0c2a238...c43477f:
  > c43477f upgrade to latest dependencies (# 3137)
bumping knative.dev/hack f8be0cc...c142b48:
  > c142b48 Refactor release script to gh CLI (# 408)
bumping knative.dev/eventing 90edfe6...a40a0a7:
  > a40a0a7 [main] Upgrade to latest dependencies (# 8413)
bumping knative.dev/eventing-kafka-broker e1e20b7...eea9a6a:
  > eea9a6a Use rhel/ubi9-openjdk base image for data plane, as defined in root pom (# 4217)

Signed-off-by: Knative Automation <[email protected]>
  • Loading branch information
knative-automation committed Jan 20, 2025
1 parent f59ffe1 commit a3b22fd
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 48 deletions.
12 changes: 6 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ require (
k8s.io/apimachinery v0.31.4
k8s.io/client-go v0.31.4
k8s.io/code-generator v0.31.4
knative.dev/eventing v0.43.1-0.20250116124311-90edfe680e40
knative.dev/eventing-kafka-broker v0.43.1-0.20250116124003-e1e20b7a9f88
knative.dev/eventing-redis v0.43.1-0.20250109132849-a658d0b7addf
knative.dev/hack v0.0.0-20250109131303-f8be0ccdff36
knative.dev/pkg v0.0.0-20250113161000-0c2a238a16ed
knative.dev/reconciler-test v0.0.0-20250109131538-359287e93238
knative.dev/eventing v0.43.1-0.20250117061904-a40a0a75a8ef
knative.dev/eventing-kafka-broker v0.43.1-0.20250117084905-eea9a6a67723
knative.dev/eventing-redis v0.43.1-0.20250116150905-ffd7947f493a
knative.dev/hack v0.0.0-20250116150306-c142b4835bc5
knative.dev/pkg v0.0.0-20250117084104-c43477f0052b
knative.dev/reconciler-test v0.0.0-20250117161605-4965c77b4dfa
sigs.k8s.io/controller-runtime v0.13.1
)

Expand Down
24 changes: 12 additions & 12 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -793,18 +793,18 @@ k8s.io/kube-openapi v0.0.0-20240808142205-8e686545bdb8 h1:1Wof1cGQgA5pqgo8MxKPtf
k8s.io/kube-openapi v0.0.0-20240808142205-8e686545bdb8/go.mod h1:Os6V6dZwLNii3vxFpxcNaTmH8LJJBkOTg1N0tOA0fvA=
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 h1:pUdcCO1Lk/tbT5ztQWOBi5HBgbBP1J8+AsQnQCKsi8A=
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
knative.dev/eventing v0.43.1-0.20250116124311-90edfe680e40 h1:SDo2bOFJmLPt3na7NqxCiCzSAYt3TbWUHjbhZVllIYA=
knative.dev/eventing v0.43.1-0.20250116124311-90edfe680e40/go.mod h1:wDEJ+SmGdO/cIIuEJH1LdDTrPnzBOSDistZiJpenFhY=
knative.dev/eventing-kafka-broker v0.43.1-0.20250116124003-e1e20b7a9f88 h1:UERns/TrrJTX64eoUxwmZFqex/MbaUyPD6nH3g5tyZs=
knative.dev/eventing-kafka-broker v0.43.1-0.20250116124003-e1e20b7a9f88/go.mod h1:GeGLeWk3N1+1Ih1rD3wzFHWlESkhcjKMZvWSDZevM8g=
knative.dev/eventing-redis v0.43.1-0.20250109132849-a658d0b7addf h1:x8uuRL+xzIYiba3peP9hMWvqQ40F7U6N9r+wBsUhKoE=
knative.dev/eventing-redis v0.43.1-0.20250109132849-a658d0b7addf/go.mod h1:/fNOnGBlbWlx2j4xXp6GrnmJHl4G9Z5xW7uPN8rX9XY=
knative.dev/hack v0.0.0-20250109131303-f8be0ccdff36 h1:iZ6CwYLo+y82MXlK7PoG/cnFEB0tRdw8elBXj6c6ezE=
knative.dev/hack v0.0.0-20250109131303-f8be0ccdff36/go.mod h1:R0ritgYtjLDO9527h5vb5X6gfvt5LCrJ55BNbVDsWiY=
knative.dev/pkg v0.0.0-20250113161000-0c2a238a16ed h1:PUMNZc1CBUg5G4JYio3wjpCJuCJG2ZeCuLvlBTpDiZI=
knative.dev/pkg v0.0.0-20250113161000-0c2a238a16ed/go.mod h1:p7c7yCCf1YVX04FQ8YDyJaHciknu726qVWOXRX5tIBM=
knative.dev/reconciler-test v0.0.0-20250109131538-359287e93238 h1:qGRLFIcJ9quJb9MglIyMk3SUMCey7esVl2idt1G7cNk=
knative.dev/reconciler-test v0.0.0-20250109131538-359287e93238/go.mod h1:QqV6rbJjHwh28XJXlG5l2pFU5qCQzBMngw6sKAlDoMA=
knative.dev/eventing v0.43.1-0.20250117061904-a40a0a75a8ef h1:u90+XnHx4saVKV4ByqPB+6wPuw6xP3xRW/cjUMZdSw8=
knative.dev/eventing v0.43.1-0.20250117061904-a40a0a75a8ef/go.mod h1:05p0sqU0mv2HBKDVH8iVtcewUfYu3HEk2N6vbEkdfrg=
knative.dev/eventing-kafka-broker v0.43.1-0.20250117084905-eea9a6a67723 h1:xpQu7UC8pt1S5DtBaZRCT9STwKj/PyExQ5UNSGCVpMM=
knative.dev/eventing-kafka-broker v0.43.1-0.20250117084905-eea9a6a67723/go.mod h1:GeGLeWk3N1+1Ih1rD3wzFHWlESkhcjKMZvWSDZevM8g=
knative.dev/eventing-redis v0.43.1-0.20250116150905-ffd7947f493a h1:/hi+0/AZ9o9tEAKz9vcQK957pltBvOdpP6HzPTFwHMA=
knative.dev/eventing-redis v0.43.1-0.20250116150905-ffd7947f493a/go.mod h1:x4/NGkddunBS+Gys8xMs/6iKYFBs9Ypt5p4O6t0zb44=
knative.dev/hack v0.0.0-20250116150306-c142b4835bc5 h1:CwLVoSblWmfaIkgRFX2LcEA0uYZo+nOhdPatsz+QL9w=
knative.dev/hack v0.0.0-20250116150306-c142b4835bc5/go.mod h1:R0ritgYtjLDO9527h5vb5X6gfvt5LCrJ55BNbVDsWiY=
knative.dev/pkg v0.0.0-20250117084104-c43477f0052b h1:a+gP7Yzu5NmoX2w1p8nfTgmSKF+aHLKGzqYT82ijJTw=
knative.dev/pkg v0.0.0-20250117084104-c43477f0052b/go.mod h1:bedSpkdLybR6JhL1J7XDLpd+JMKM/x8M5Apr80i5TeE=
knative.dev/reconciler-test v0.0.0-20250117161605-4965c77b4dfa h1:fSSS05Rggq+XdsTIRb4goERGVuvKoC5OzOGkw6EXwz0=
knative.dev/reconciler-test v0.0.0-20250117161605-4965c77b4dfa/go.mod h1:rpvG6AmoYIJCBs4BJ79KhFaa69pMQVbmncTTmATXyTY=
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
Expand Down
46 changes: 22 additions & 24 deletions vendor/knative.dev/hack/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,10 @@ export GOFLAGS="-ldflags=-s -ldflags=-w"
export GITHUB_TOKEN=""
readonly IMAGES_REFS_FILE="${IMAGES_REFS_FILE:-$(mktemp -d)/images_refs.txt}"

# Convenience function to run the hub tool.
# Parameters: $1..$n - arguments to hub.
function hub_tool() {
# Pinned to SHA because of https://github.com/github/hub/issues/2517
go_run github.com/github/hub/v2@363513a "$@"
# Convenience function to run the GitHub CLI tool `gh`.
# Parameters: $1..$n - arguments to gh.
function gh_tool() {
go_run github.com/cli/cli/v2/cmd/[email protected] "$@"
}

# Shortcut to "git push" that handles authentication.
Expand Down Expand Up @@ -193,7 +192,7 @@ function prepare_dot_release() {
# Support tags in two formats
# - knative-v1.0.0
# - v1.0.0
releases="$(hub_tool release | cut -d '-' -f2)"
releases="$(gh_tool release list --json tagName --jq '.[].tagName' | cut -d '-' -f2)"
echo "Current releases are: ${releases}"
[[ $? -eq 0 ]] || abort "cannot list releases"
# If --release-branch passed, restrict to that release
Expand All @@ -218,7 +217,7 @@ function prepare_dot_release() {
# Ensure there are new commits in the branch, otherwise we don't create a new release
setup_branch
# Use the original tag (ie. potentially with a knative- prefix) when determining the last version commit sha
local github_tag="$(hub_tool release | grep "${last_version}")"
local github_tag="$(gh_tool release list --json tagName --jq '.[].tagName' | grep "${last_version}")"
local last_release_commit="$(git rev-list -n 1 "${github_tag}")"
local last_release_commit_filtered="$(git rev-list --invert-grep --grep "\[skip-dot-release\]" -n 1 "${github_tag}")"
local release_branch_commit="$(git rev-list -n 1 upstream/"${RELEASE_BRANCH}")"
Expand All @@ -239,7 +238,7 @@ function prepare_dot_release() {
# If --release-notes not used, copy from the latest release
if [[ -z "${RELEASE_NOTES}" ]]; then
RELEASE_NOTES="$(mktemp)"
hub_tool release show -f "%b" "${github_tag}" > "${RELEASE_NOTES}"
gh_tool release view "${github_tag}" --json "body" --jq '.body' > "${RELEASE_NOTES}"
echo "Release notes from ${last_version} copied to ${RELEASE_NOTES}"
fi
}
Expand Down Expand Up @@ -640,18 +639,12 @@ function set_latest_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)"
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)"
if ! [[ $? -eq 0 ]]; then
abort "cannot list releases"
fi

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/${ORG_NAME}/${REPO_NAME}/releases/$release_id" \
-F make_latest=true > /dev/null || abort "error setting $last_version to 'latest'"

gh_tool release edit "knative-${last_version}" --latest > /dev/null || abort "error setting $last_version to 'latest'"
echo "Github release ${last_version} set as 'latest'"
}

Expand Down Expand Up @@ -742,12 +735,14 @@ function publish_to_github() {
local description="$(mktemp)"
local attachments_dir="$(mktemp -d)"
local commitish=""
local target_branch=""
local github_tag="knative-${TAG}"

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

[[ -n "${RELEASE_BRANCH}" ]] && commitish="--commitish=${RELEASE_BRANCH}"
[[ -n "${RELEASE_BRANCH}" ]] && target_branch="--target=${RELEASE_BRANCH}"
for i in {2..0}; do
hub_tool release create \
${attachments[@]} \
--file="${description}" \
"${commitish}" \
"${github_tag}" && return 0
# shellcheck disable=SC2068
gh_tool release create \
"${github_tag}" \
--title "${title}" \
--notes-file "${description}" \
"${target_branch}" \
${attachments[@]} && return 0

if [[ "${i}" -gt 0 ]]; then
echo "Error publishing the release, retrying in 15s..."
sleep 15
Expand Down
12 changes: 6 additions & 6 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ k8s.io/utils/pointer
k8s.io/utils/ptr
k8s.io/utils/strings/slices
k8s.io/utils/trace
# knative.dev/eventing v0.43.1-0.20250116124311-90edfe680e40
# knative.dev/eventing v0.43.1-0.20250117061904-a40a0a75a8ef
## explicit; go 1.22.7
knative.dev/eventing/pkg/apis/common/integration/v1alpha1
knative.dev/eventing/pkg/apis/config
Expand Down Expand Up @@ -1031,7 +1031,7 @@ knative.dev/eventing/pkg/client/listers/sources/v1alpha1
knative.dev/eventing/pkg/client/listers/sources/v1beta2
knative.dev/eventing/pkg/crossnamespace
knative.dev/eventing/pkg/eventingtls
# knative.dev/eventing-kafka-broker v0.43.1-0.20250116124003-e1e20b7a9f88
# knative.dev/eventing-kafka-broker v0.43.1-0.20250117084905-eea9a6a67723
## explicit; go 1.22.7
knative.dev/eventing-kafka-broker/control-plane/pkg/apis/bindings
knative.dev/eventing-kafka-broker/control-plane/pkg/apis/bindings/v1
Expand All @@ -1056,14 +1056,14 @@ knative.dev/eventing-kafka-broker/control-plane/pkg/client/clientset/versioned/t
knative.dev/eventing-kafka-broker/control-plane/pkg/client/clientset/versioned/typed/sources/v1beta1
knative.dev/eventing-kafka-broker/control-plane/pkg/client/injection/client
knative.dev/eventing-kafka-broker/test/rekt/resources/kafkasource
# knative.dev/eventing-redis v0.43.1-0.20250109132849-a658d0b7addf
# knative.dev/eventing-redis v0.43.1-0.20250116150905-ffd7947f493a
## explicit; go 1.22.7
knative.dev/eventing-redis/pkg/source/apis/sources
knative.dev/eventing-redis/pkg/source/apis/sources/v1alpha1
# knative.dev/hack v0.0.0-20250109131303-f8be0ccdff36
# knative.dev/hack v0.0.0-20250116150306-c142b4835bc5
## explicit; go 1.21
knative.dev/hack
# knative.dev/pkg v0.0.0-20250113161000-0c2a238a16ed
# knative.dev/pkg v0.0.0-20250117084104-c43477f0052b
## explicit; go 1.22.7
knative.dev/pkg/apis
knative.dev/pkg/apis/duck
Expand Down Expand Up @@ -1134,7 +1134,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-20250109131538-359287e93238
# knative.dev/reconciler-test v0.0.0-20250117161605-4965c77b4dfa
## explicit; go 1.22.7
knative.dev/reconciler-test/cmd/eventshub
knative.dev/reconciler-test/pkg/environment
Expand Down

0 comments on commit a3b22fd

Please sign in to comment.