Skip to content

Commit 56665c6

Browse files
authored
Manually bump to 1.36.0 (#3060)
* Manually bump to 1.36.0 Signed-off-by: Pierangelo Di Pilato <[email protected]> * Use bundle:latest image for index Dockerfile Signed-off-by: Pierangelo Di Pilato <[email protected]> * Add get_bundle_for_version to catalog.sh Signed-off-by: Pierangelo Di Pilato <[email protected]> * Recreate index Dockerfile instead of search and replace via dynamic env var Signed-off-by: Pierangelo Di Pilato <[email protected]> * Update release process to follow a specific order and remove conflicting updates Signed-off-by: Pierangelo Di Pilato <[email protected]> * Remove rootdir from variable Signed-off-by: Pierangelo Di Pilato <[email protected]> * Instead of replacing image references, force use quay registry for testing Replacing as done before doesn't respect per-component versioning and we don't want to add the pre-requisite that every component is ready to bump operator metadata. Signed-off-by: Pierangelo Di Pilato <[email protected]> * Try multiple mirrors Signed-off-by: Pierangelo Di Pilato <[email protected]> * Ensure ImageContentSourcePolicy Signed-off-by: Pierangelo Di Pilato <[email protected]> * Fix prefix check Signed-off-by: Pierangelo Di Pilato <[email protected]> * skopeo retry-times Signed-off-by: Pierangelo Di Pilato <[email protected]> * Run make generated-files Signed-off-by: Pierangelo Di Pilato <[email protected]> * Remove channelv2 downgrade migration as it's only for 1.35 Signed-off-by: Pierangelo Di Pilato <[email protected]> --------- Signed-off-by: Pierangelo Di Pilato <[email protected]>
1 parent d2d2f88 commit 56665c6

File tree

37 files changed

+1123
-521
lines changed

37 files changed

+1123
-521
lines changed

.github/ISSUE_TEMPLATE/release.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ assignees: ''
2323
## Cutting the new release branch
2424
- [ ] Create a new branch from `main` with the pattern `release-x.xx`
2525
- [ ] [Approve CI setup for `release-1.X` branch in `openshift/release`](https://github.com/openshift/release/pulls/serverless-qe) and wait for the PR to be merged.
26-
- [ ] [Approve PRs created by GitHub actions bot in `serverless-operator`](https://github.com/openshift-knative/serverless-operator/pulls/app%2Fgithub-actions)
2726
- [ ] [Only for release-1.35+] [Revoke and recreate the token for the Konflux auto apply workflow](https://github.com/openshift-knative/hack/tree/main/cmd/konflux-apply#revoke-and-recreate-token)
2827
- [ ] [Only for release-1.35+] [Approve PRs created by `serverless-qe` bot in `hack`](https://github.com/openshift-knative/hack/pulls/serverless-qe)
2928
- [ ] wait for the PR to be merged
3029
- [ ] wait for the [Generate CI config workflow to succeed](https://github.com/openshift-knative/hack/actions/workflows/release-generate-ci.yaml?query=event%3Apush++)
3130
- [ ] [Approve Konflux-related PRs created by `serverless-qe`](https://github.com/pulls?q=is%3Aopen+is%3Apr+author%3Aserverless-qe+archived%3Afalse+%22Konflux%22) and wait for the PR to be merged.
31+
- [ ] Wait for the PRs to be merged
32+
- [ ] [Approve PRs created by GitHub actions bot in `serverless-operator`](https://github.com/openshift-knative/serverless-operator/pulls/app%2Fgithub-actions)
3233
- [ ] Verify that [`knative-istio-authz-chart`](https://github.com/openshift-knative/knative-istio-authz-chart/branches) has a branch with the same name as the `release-1.X` branch created previously in serverless-operator
3334
- [ ] Verify that [`knative-istio-authz-chart`'s `Chart.yaml`](https://github.com/openshift-knative/knative-istio-authz-chart/blob/main/Chart.yaml) has `version` and `appVersion` set to the next version.
3435

.github/workflows/validate.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ jobs:
8282
run: make generate-catalog
8383

8484
- name: Regenerate override-snapshot
85+
if: github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || ( github.event_name == 'push' && !contains(github.ref_name, 'dependabot/') )
8586
working-directory: ./src/github.com/${{ github.repository }}
8687
run: make generate-override-snapshot
8788

Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -360,17 +360,14 @@ generate-dockerfiles: install-tool-generate
360360
# Generates all files that can be generated, includes release files, code generation
361361
# and updates vendoring.
362362
# Use CURRENT_VERSION_IMAGES="<branch>" if you need to override the defaulting to main
363-
generated-files: update-tekton-pipelines install-tools generate-dockerfiles release-files
363+
generated-files: install-tools generate-dockerfiles release-files
364364
./hack/update-deps.sh
365365
./hack/update-codegen.sh
366366
(cd knative-operator && ./hack/update-manifests.sh)
367367
(cd openshift-knative-operator && ./hack/update-manifests.sh)
368368
(cd olm-catalog/serverless-operator && ./hack/update-manifests.sh)
369369
./hack/update-deps.sh
370370

371-
update-tekton-pipelines:
372-
./hack/generate/update-pipelines.sh
373-
374371
generated-files-release-next: release-files
375372
# Re-generate CSV with release-next images
376373
USE_RELEASE_NEXT=true ./hack/generate/csv.sh \

hack/generate/catalog.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ EOF
151151

152152
function upgrade_service_mesh_proxy_image() {
153153
sm_proxy_image=$(yq r olm-catalog/serverless-operator/project.yaml 'dependencies.service_mesh_proxy')
154-
sm_proxy_image_stream=$(skopeo inspect --no-tags=true "docker://${sm_proxy_image}" | jq -r '.Labels.version')
154+
sm_proxy_image_stream=$(skopeo inspect --retry-times=10 --no-tags=true "docker://${sm_proxy_image}" | jq -r '.Labels.version')
155155
sm_proxy_image_stream=${sm_proxy_image_stream%.*}
156156
sm_proxy_image=$(latest_konflux_image_sha "${sm_proxy_image}" "${sm_proxy_image_stream}")
157157
yq w --inplace olm-catalog/serverless-operator/project.yaml 'dependencies.service_mesh_proxy' "${sm_proxy_image}"
@@ -182,4 +182,7 @@ logger.info "Generating catalog"
182182
generate_catalog
183183

184184
logger.info "Generating ImageContextSourcePolicy"
185-
create_image_content_source_policy "${INDEX_IMAGE}" "$registry_redhat_io" "$registry_quay" "olm-catalog/serverless-operator-index/image_content_source_policy.yaml"
185+
186+
default_serverless_operator_images
187+
# shellcheck disable=SC2154
188+
create_image_content_source_policy "${INDEX_IMAGE}" "$registry_redhat_io" "$registry_quay" "$registry_quay_previous" "olm-catalog/serverless-operator-index/image_content_source_policy.yaml"

hack/generate/csv.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ set -Eeuo pipefail
44

55
template="${1:?Provide template file as arg[1]}"
66
target="${2:?Provide a target CSV file as arg[2]}"
7+
force_use_quay_images=${3:-"false"}
8+
9+
export FORCE_USE_QUAY_IMAGES="${force_use_quay_images}"
710

811
# shellcheck disable=SC1091,SC1090
912
source "$(dirname "${BASH_SOURCE[0]}")/../lib/common.bash"

hack/generate/dockerfile.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,6 @@ if [[ "$template" =~ index.Dockerfile ]]; then
5656
sed --in-place "/opm render/a registry.ci.openshift.org/knative/release-${current_version}:serverless-bundle \\\\" "$target"
5757
done
5858

59-
# Hacks. Should gradually go away with next versions.
60-
# Workaround for https://issues.redhat.com/browse/SRVCOM-3207
61-
# Use a manually built image for 1.32.0.
62-
# TODO: Remove this when 1.32.0 is not included in index. This is a problem only for 1.32.0.
63-
sed --in-place "s|registry.ci.openshift.org/knative/release-1.32.0:serverless-bundle|quay.io/openshift-knative/serverless-bundle:release-1.32.0|" "$target"
64-
# Replace the old format for 1.31.0 and older.
65-
sed --in-place "s|registry.ci.openshift.org/knative/release-1.31.0:serverless-bundle|registry.ci.openshift.org/knative/openshift-serverless-v1.31.0:serverless-bundle|" "$target"
6659
elif [[ "$template" =~ catalog.Dockerfile ]]; then
6760
while IFS=$'\n' read -r ocp_version; do
6861
values[OCP_VERSION]="${ocp_version}"

hack/generate/images-rekt.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,5 @@ target="${2:?Provide a target file as arg[2]}"
99
source "$(dirname "${BASH_SOURCE[0]}")/../lib/images.bash"
1010

1111
default_knative_eventing_images
12-
default_knative_eventing_istio_images
13-
default_knative_eventing_kafka_broker_images
14-
default_knative_backstage_plugins_images
15-
default_knative_serving_images
16-
default_knative_ingress_images
17-
default_knative_kn_plugin_func_images
18-
default_knative_client_images
1912

2013
envsubst < "$template" > "$target"

hack/generate/override-snapshot.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ spec:
116116
EOF
117117

118118
index_image="${registry_quay}-fbc-${ocp_version}/serverless-index-${so_version}-fbc-${ocp_version}"
119-
index_image_digest="$(skopeo inspect --no-tags docker://"${index_image}:latest" | jq -r .Digest)"
119+
index_image_digest="$(skopeo inspect --retry-times=10 --no-tags docker://"${index_image}:latest" | jq -r .Digest)"
120120
add_component "${snapshot_file}" "serverless-index-${so_version}-fbc-${ocp_version}" "${index_image}@${index_image_digest}"
121121

122122
append_hash_to_snapshot_name "${snapshot_file}"

hack/generate/update-pipelines.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

hack/install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@ create_namespaces "${SYSTEM_NAMESPACES[@]}"
2323
if [[ $INSTALL_CERTMANAGER == "true" ]]; then
2424
install_certmanager
2525
fi
26+
ensure_content_source_policy
2627
ensure_catalogsource_installed
2728
ensure_serverless_installed

0 commit comments

Comments
 (0)