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

[chart/webhook] fix Kubernetes version comparison #987

Merged
merged 1 commit into from
May 18, 2020

Conversation

martinezleoml
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
API breaks? no
Deprecations? no
Related tickets fixes #986
License Apache 2.0

What's in this PR?

This uses semverCompare helm template function instead of integer when comparing Kubernetes version.
It fixes #986.

Why?

Using .Capabilities.KubeVersion.Major and .Capabilities.KubeVersion.Minor is error prone as the value may not always be integer values (like it's the case of some managed Kubernetes offers as AWS EKS).

Additional context

Checklist

  • Error handling code meets the guideline
  • Logging code meets the guideline (TODO)
  • User guide and development docs updated (if needed)
  • Related Helm chart(s) updated (if needed)

To Do

@CLAassistant
Copy link

CLAassistant commented May 16, 2020

CLA assistant check
All committers have signed the CLA.

@pbalogh-sa
Copy link
Contributor

@martinezleoml Thanks for the contribution. Could you be so kind as to rebase to the master? Otherwise LGTM.

Signed-off-by: Léo Martinez <leo84.martinez@gmail.com>
@martinezleoml
Copy link
Contributor Author

@martinezleoml Thanks for the contribution. Could you be so kind as to rebase to the master? Otherwise LGTM.

Thanks for reviewing.
Rebase done ;)

Copy link
Member

@bonifaido bonifaido left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you @martinezleoml for the fix!

@bonifaido bonifaido merged commit 2628c73 into bank-vaults:master May 18, 2020
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.

[vault-secrets-webhook] Kubernetes version misinterpreted on Helm chart
4 participants