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 versioning of ingress resources #12

Merged
merged 1 commit into from
Jul 20, 2021
Merged

Fix versioning of ingress resources #12

merged 1 commit into from
Jul 20, 2021

Conversation

nepalez
Copy link
Collaborator

@nepalez nepalez commented Jun 22, 2021

The reason for this PR is that checking of the .Capabilities.APIVersions is not enough to define the proper ingress version.

From the one hand, .Capabilities.APIVersions.Has "extensions/v1" can return false positives for k8s versions below 1.19.
The popular shortcut by adding a resource name to the formula like .Capabilities.APIVersions.Has "extensions/v1/Ingress" is not a panacea because it can return false negatives for k8s versions 1.19+.

That's why I checked k8s versions explicitly for every api version.


In the release I also added a couple of checks for parts of ingress and acme ingress resource definitions.

@nepalez
Copy link
Collaborator Author

nepalez commented Jun 22, 2021

/cc @dragonsmith @Envek (cannot add you to reviewers in this repository, but do a review please)

@Envek
Copy link
Member

Envek commented Jun 22, 2021

Please be careful with semver checking of K8s version: it has some glitches with custom kubernetes builds' version strings (like GKE or microk8s).

See AdWerx/charts#13 for an example.

@nepalez
Copy link
Collaborator Author

nepalez commented Jun 22, 2021

Please be careful with semver checking of K8s version: it has some glitches with custom kubernetes builds' version strings (like GKE or microk8s).

Thank you! Versioning in k8s looks like a total disaster
fixed

@Envek Envek requested a review from dragonsmith June 25, 2021 08:30
@palkan palkan merged commit aaf3b64 into anycable:master Jul 20, 2021
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.

None yet

4 participants