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

[release/v2.2.x] Properly detect unsupported API errors #4477

Merged
merged 1 commit into from
Dec 13, 2023

Conversation

fluxcdbot
Copy link
Member

Automated backport to release/v2.2.x, triggered by a label in #4476.

This can happen when Custom Resource Definitions do not exist on the
cluster. For example, because only a subset of the Flux controllers are
installed on the cluster.

Previously, the detection was based on a combination of error type and
string matching. However, a more reliable (and maintained)
`apimeta.IsNoMatchError` checker is available upstream. Making it less
likely this suddenly stops to matching properly when Kubernetes changes
things.

Signed-off-by: Hidde Beydals <[email protected]>
(cherry picked from commit bf6754e)
@hiddeco hiddeco merged commit 459f6f2 into release/v2.2.x Dec 13, 2023
8 checks passed
@hiddeco hiddeco deleted the backport-4476-to-release/v2.2.x branch December 13, 2023 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants