-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Manually bump to 1.36.0 #3060
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Pierangelo Di Pilato <[email protected]>
Skipping CI for Draft Pull Request. |
registry.ci.openshift.org/knative/release-1.35.0:serverless-bundle \ | ||
>> /configs/index.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mgencur this is the issue SERVERLESS_BUNDLE
in dockerfile.sh
is empty
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++++ skopeo inspect --no-tags=true docker://quay.io/redhat-user-workloads/ocp-serverless-tenant/serverless-operator-136/serverless-bundle:latest
++++ jq -r .Digest
FATA[0001] Error parsing image name "docker://quay.io/redhat-user-workloads/ocp-serverless-tenant/serverless-operator-136/serverless-bundle:latest": reading manifest latest in quay.io/redhat-user-workloads/ocp-serverless-tenant/serverless-operator-136/serverless-bundle: unauthorized: access to the requested resource is not authorized
++++ echo ''
+++ digest=
+++ '[' '' = '' ']'
+++ '[' false = true ']'
+++ echo ''
+++ return
++ image=
++ [[ '' == '' ]]
+++ image_with_sha registry.ci.openshift.org/knative/serverless-bundle:release-1.36.0
+++ image=registry.ci.openshift.org/knative/serverless-bundle:release-1.36.0
+++ return_input_on_empty=false
++++ skopeo inspect --no-tags=true docker://registry.ci.openshift.org/knative/serverless-bundle:release-1.36.0
++++ jq -r .Digest
FATA[0000] Error parsing image name "docker://registry.ci.openshift.org/knative/serverless-bundle:release-1.36.0": reading manifest release-1.36.0 in registry.ci.openshift.org/knative/serverless-bundle: manifest unknown
it can't find either
quay.io/redhat-user-workloads/ocp-serverless-tenant/serverless-operator-136/serverless-bundle
registry.ci.openshift.org/knative/serverless-bundle:release-1.36.0
(expected)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering if we need to also fallback to knative-main
in get_bundle_for_version
when not even CI registry.ci.openshift.org/knative/serverless-bundle:release-1.36.0
is available?
# As a backup, try also CI registry.
if [[ "${image}" == "" ]]; then
image=$(image_with_sha "registry.ci.openshift.org/knative/serverless-bundle:release-${version}")
fi
if [[ "${image}" == "" ]]; then
image=$(image_with_sha "registry.ci.openshift.org/knative/serverless-bundle:knative-main")
fi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will fix it for the Dockerfile: https://gist.github.com/mgencur/5316c4655abcb92e28a3455ee02a0b5f
But I'm still checking if the final catalog can be generated properly if the latest bundle doesn't exist yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My solution can't build the catalog properly because it requires the image to exist:
INFO 16:41:10.114 Generating catalog for OCP 4.14
INFO[0000] rendering index "registry.redhat.io/redhat/redhat-operator-index:v4.14" as file-based catalog
INFO[0404] wrote rendered file-based catalog to "/tmp/knative.JC1YvFt4/tmp.hVU6K2GqdC"
FATA[0002] Error parsing image name "docker://quay.io/redhat-user-workloads/ocp-serverless-tenant/serverless-operator-136/serverless-bundle:latest": reading manifest latest in quay.io/redhat-user-workloads/ocp-serverless-tenant/serverless-operator-136/serverless-bundle: unauthorized: access to the requested resource is not authorized
2024/11/27 16:49:45 render reference "quay.io/redhat-user-workloads/ocp-serverless-tenant/serverless-operator-136/serverless-bundle:latest": error resolving name for image ref quay.io/redhat-user-workloads/ocp-serverless-tenant/serverless-operator-136/serverless-bundle:latest: unexpected status from HEAD request to https://quay.io/v2/redhat-user-workloads/ocp-serverless-tenant/serverless-operator-136/serverless-bundle/manifests/latest: 401 UNAUTHORIZED
ERROR 16:49:45.652 🚨 Error (code: 1) occurred at ./hack/generate/catalog.sh:49, with command: opm alpha render-template basic --migrate-level="$level" "${catalog_template}" -oyaml > "${index_dir}/v${ocp_version}/catalog/serverless-operator/catalog.yaml"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe if it doesn't, we can keep it that way for a few days until the new bundle is in there, the new bundle will be available as soon as we merge PRs like this one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, yeah. We could fall back to registry.ci.openshift.org/knative/serverless-bundle:knative-main
Signed-off-by: Pierangelo Di Pilato <[email protected]>
Signed-off-by: Pierangelo Di Pilato <[email protected]>
# Also make sure to update values under `olm.previous` by copying from `olm.replaces` and `olm.skipRange`. | ||
version: 1.35.0 | ||
name: serverless-operator | ||
# When bumping the Operator to a new version (major and minor), make sure to also update |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit. Not sure the formatting change is intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the command go run ./hack/cmd/bumpso/bumpso.go --branch release-1.35
decided the format for some reason
/lgtm |
7 similar comments
This needs rebase now. |
/lgtm |
…ing updates Signed-off-by: Pierangelo Di Pilato <[email protected]>
Since the other bot PR conflicts, I'm adjusting the release merge order and removing conflicting commits from bots |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mgencur, pierDipi The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Signed-off-by: Pierangelo Di Pilato <[email protected]>
New changes are detected. LGTM label has been removed. |
…sting 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]>
Upgrade test failed to install the previous version:
|
|
ICSP seems to be OK: serverless-operator/olm-catalog/serverless-operator-index/image_content_source_policy.yaml Lines 155 to 156 in af4586a
But image is missing in quay:
|
The problem is: the previous version is using the official images and we don't apply the |
Not sure if I get the first part, but regarding "handling multiple versions for a source": |
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Signed-off-by: Pierangelo Di Pilato <[email protected]>
@pierDipi: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
When we bump the metadata for a major version, images are not yet available for SO components on
the Konflux registry, so we use the
:latest
tag temporarily by passing "true" as argument tovarious
latest_*
functions.Eventually, once images are available, SHAs will be replaced/used.
Part of #2989