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

Support ipFamilyPolicy on services #375

Merged
merged 2 commits into from
Mar 29, 2023

Conversation

UXabre
Copy link
Contributor

@UXabre UXabre commented Jan 24, 2023

Signed-off-by: Arend Lapere [email protected]

Description

Add the ability to set a service as being a dual stack service for both dashboard as cluster.

Issues Resolved

Check List

  • Commits are signed per the DCO using --signoff

For any changes to files within Helm chart directories:

  • Helm chart version bumped
  • Helm chart CHANGELOG.md updated to reflect change

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@UXabre UXabre requested review from a team, TheAlgo and DandyDeveloper as code owners January 24, 2023 13:35
@UXabre UXabre force-pushed the feature/374 branch 5 times, most recently from 9510cd3 to 6233bd6 Compare January 25, 2023 15:30
@jordarlu
Copy link

Thanks for the PR, we will review it and get back to you. Thanks!!

@@ -13,6 +13,9 @@ metadata:
{{- end }}
spec:
type: {{ .Values.service.type }}
{{- if (semverCompare ">= 1.23-0" .Capabilities.KubeVersion.Version) }}
ipFamilyPolicy: {{ .Values.service.ipFamilyPolicy }}
Copy link
Member

Choose a reason for hiding this comment

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

Hey @UXabre thanks for PR, this is good change to have, can you please let us know what would be the default value, is this a breaking change if a chart is updated with helm upgrade ?
Thank you

Copy link
Contributor Author

@UXabre UXabre Mar 2, 2023

Choose a reason for hiding this comment

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

Hi, I actually set the default value to SingleStack to be more compatible (as many people don't use dual stack yet). However, now I'm thinking about it, I think it's safer to just check if the variable is set and thus fallback to the default that the CNI provides (at least, to my understanding the CNI would define the implicit default).
Because if the singlestack default and the assumption not many people are running dual stack clusters, I don't expect it to be a breaking change but it would be safer to not alter it if not set explicitely

Also, another change, to be more versatile would be to also provide a config for the IPFamilies as well, this way, one could set it to singlestack and ipv6 (if they are brave :p).

Curious to hear what you think of this proposal.

Copy link
Member

@TheAlgo TheAlgo left a comment

Choose a reason for hiding this comment

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

Agree with @prudhvigodithi, lets check on backward compatibility

@UXabre
Copy link
Contributor Author

UXabre commented Mar 5, 2023

Hi, I've added a check to see if ipFamilyPolicy is set, not setting it reverts to following the CNI defaults instead (so is the most compatible way imaginable). I've also included a commit with the ipFamilies field, this gives the most versatility to this PR. If you want, I can squash this into one commit to not pollute the git log.

Copy link
Member

@TheAlgo TheAlgo left a comment

Choose a reason for hiding this comment

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

Could you please add some documentation for this newly added ipFamilyPolicy

@UXabre
Copy link
Contributor Author

UXabre commented Mar 22, 2023

Hi @TheAlgo , there is (some) documentation in the values file, do you want me to further elaborate in the values files or where would you like some more documentation? :-)

@prudhvigodithi
Copy link
Member

Hey @UXabre thanks for the contribution, documentation is the readme file, can you please update this.
Thank you

@peterzhuamazon
Copy link
Member

Hi @prudhvigodithi seems like @UXabre has updated the PR.
Let us review this again now?

Thanks.

@UXabre
Copy link
Contributor Author

UXabre commented Mar 23, 2023

Hi, I've added the options to the readme as well as a link to the official k8s documentation regarding this.
Also had to resolve some merge conflicts :-)

Copy link
Member

@TheAlgo TheAlgo left a comment

Choose a reason for hiding this comment

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

Thanks a lot @UXabre

@TheAlgo
Copy link
Member

TheAlgo commented Mar 28, 2023

@prudhvigodithi Lets get this to closure whenever you are free. Thanks

@prudhvigodithi prudhvigodithi merged commit 974a1d5 into opensearch-project:main Mar 29, 2023
@prudhvigodithi
Copy link
Member

Thanks @UXabre merged this PR, can you please backport this change to 1.x branch?
Thank you

@prudhvigodithi prudhvigodithi added the backport 1.x Backport to 1.x branch after merging to main label Mar 29, 2023
@UXabre
Copy link
Contributor Author

UXabre commented Mar 29, 2023

OK, will make a PR soon for the backport

@peterzhuamazon
Copy link
Member

OK, will make a PR soon for the backport

Hi @UXabre any progress on the backport?
Thanks.

peterzhuamazon pushed a commit to peterzhuamazon/helm-charts that referenced this pull request Apr 5, 2023
* Support ipFamilyPolicy on services

Signed-off-by: Arend Lapere <[email protected]>

* Support ipFamilies on services

Signed-off-by: Arend Lapere <[email protected]>

---------

Signed-off-by: Arend Lapere <[email protected]>
Signed-off-by: Peter Zhu <[email protected]>
@peterzhuamazon
Copy link
Member

peterzhuamazon added a commit that referenced this pull request Apr 5, 2023
* Support ipFamilyPolicy on services



* Support ipFamilies on services



---------

Signed-off-by: Arend Lapere <[email protected]>
Signed-off-by: Peter Zhu <[email protected]>
Co-authored-by: Arend Lapere <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 1.x Backport to 1.x branch after merging to main
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants