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: publishNotReadyAddresses K8s version check #242

Merged
merged 4 commits into from
Mar 2, 2023

Conversation

trombini77
Copy link
Contributor

What this PR does / why we need it:

The annotation service.alpha.kubernetes.io/tolerate-unready-endpoints: "true" is deprecated since Kubernetes 1.11, following kubernetes/kubernetes#63742 The template input both fields, the annotation and the substituted field .spec.publishNotReadyAddresses=True but it becomes incompatible with Kubernetes <=1.10 so a check Kubernetes version resolve it put the right fields based on Kubernetes version.

Which issue this PR fixes

(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

  • fixes #

Special notes for your reviewer:

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

  • DCO signed
  • Chart Version bumped
  • Variables are documented in the README.md
  • Title of the PR starts with chart name (e.g. [stable/mychartname])

The annotation `service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"` is deprecated since Kubernetes 1.11, following kubernetes/kubernetes#63742
The template input both fields, the annotation and the substituted field `.spec.publishNotReadyAddresses=True` but it becomes incompatible with Kubernetes <=1.10 so a check Kubernetes version resolve it put the right fields based on Kubernetes version.
DandyDeveloper
DandyDeveloper previously approved these changes Mar 2, 2023
@DandyDeveloper
Copy link
Owner

Good catch, merging although we'll need a chart bump. I'll try and do this from your branch.

DandyDeveloper
DandyDeveloper previously approved these changes Mar 2, 2023
@DandyDeveloper DandyDeveloper merged commit f2f71d5 into DandyDeveloper:master Mar 2, 2023
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

2 participants