-
Notifications
You must be signed in to change notification settings - Fork 100
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
Upgrade to 1.6.1 prevents applying of Serving and Eventing CRs using server-side apply #1184
Comments
https://github.com/tshak/knoperator-v1beta1-ssa-repro/pull/1 This is the change i requested: upgrade operator incrementally one minor version by one minor version Give more time like 30s between each installation and before applying the v1beta1 CR. I tested it with docker-desktop, and it worked. Regarding the |
I do not think that it's a timing issue as our automation in our live cluster retries applying the CR and was failing many hours after the Operator upgrade to |
Here is what we can possibly do with the migrateresource function in knative/pkg. Now we are doing
to migrate the existing CRs from old to new version.
to clear the |
This should solve the issue. I'm not sure if there are any unintended consequences of deleting all |
My guess is the This should migrate the CRD to a new storage version |
@dprotaso I actually moved the implementation into the operator controller itself in 1.5.3. |
It is correct that we did not run the |
This seems like a k8s bug - let me see if I can repro with a trivial example |
I agree that it's probably a k8s bug. If a |
@tshak Another way without touching knative/pkg could be only accessing serving and eventing CRs in knative operator and changing the |
Created the upstream issue based on this slack discussion |
This issue is stale because it has been open for 90 days with no |
This issue or pull request is stale because it has been open for 90 days with no activity. This bot triages issues and PRs according to the following rules:
You can:
/lifecycle stale |
This issue is stale because it has been open for 90 days with no |
/reopen The issue isn't resolved upstream |
@dprotaso: Reopened this issue. In response to this:
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/test-infra repository. |
After upgrading to Operator
1.6.1
, some Serving and Eventing CRs will no longer apply using server-side apply. This appears to happen on clusters that at one point had prev1beta1
CRs.Repro Steps
1.2.2
v1alpha1
using a server-side apply (e.g.kubectl apply --server-side=true
)1.5.3
(note that this repros upgrading with1.3.2
and1.4.1
as intermediate steps as well)v1beta1
using server-side apply1.6.1
Expected
Server-side apply succeeds.
Actual
Server-side apply fails with the following error:
Additional Information
This was reproduced on live clusters have have used the Operator since at least release
v1.0
. This appears to be due to a lingeringmetadata.managedFields
entry that referencesoperator.knative.dev/v1alpha1
. You can find a script that easily reproduces this issue in this repo.The text was updated successfully, but these errors were encountered: