Skip to content
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

Fix bootstrap: Reset schema cache after applying CRDs #2418

Merged
merged 1 commit into from
Feb 10, 2022

Conversation

stefanprodan
Copy link
Member

In flux2 0.26 we've updated the kstatus library from sigs.k8s.io/cli-utils v0.26.0 to sigs.k8s.io/cli-utils v0.27.0. After the update, it seems that the schema cache is no longer refreshed resulting in errors such as no matches for kind "Kustomization" in version "kustomize.toolkit.fluxcd.io/v1beta2". As a workaround, we are now reseting the client cache before calling kstatus wait for CRDs.

Fix: #2351

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
@stefanprodan stefanprodan merged commit de5f000 into main Feb 10, 2022
@stefanprodan stefanprodan deleted the fix-bootstrap branch February 10, 2022 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/bootstrap Bootstrap related issues and pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bootstrap fails the first time
2 participants