-
Notifications
You must be signed in to change notification settings - Fork 772
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
Feat support external traffic policy #1544
Feat support external traffic policy #1544
Conversation
Hi @AhmedGrati,
externalTrafficPolicy can be used along with a service of type NodePort.
|
Thank you for raising it, much appreciated. I will update it. |
This will need a huge rebase, sorry for the work @AhmedGrati ! |
54098f1
to
d7aadea
Compare
15fadbf
to
3229891
Compare
@cdrage It's ready to be reviewed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code LGTM but can you add some documentation as well for the user guide / under labels as this is a new label?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just sayin', these tests are GREAT and thank you so much for always covering it all 💯 💯 💯
3229891
to
a10beaf
Compare
Yes makes sense 👌. Done! |
Thank you! Can you show all the options? I think it's cluster, local and blank right? |
a10beaf
to
6366876
Compare
@cdrage Good point. Done 👍. Please lmk if there are other things that need to be changed. |
docs/user-guide.md
Outdated
@@ -200,6 +200,7 @@ The currently supported options are: | |||
| kompose.service.healthcheck.liveness.http_get_path | kubernetes liveness httpGet path | | |||
| kompose.service.healthcheck.liveness.http_get_port | kubernetes liveness httpGet port | | |||
| kompose.service.healthcheck.liveness.tcp_port | kubernetes liveness tcpSocket port | | |||
| kompose.service.external-traffic-policy: local | kubernetes service external traffic policy | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| kompose.service.external-traffic-policy: local | kubernetes service external traffic policy | | |
| kompose.service.external-traffic-policy | 'cluster', 'local', '' | |
Let's just do this for now until we update the documentation on user guide. It's a bit of a mess right now to understand / comprehend and I plan to work on this, this month.
Signed-off-by: AhmedGrati <[email protected]>
6366876
to
6be6fdd
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: AhmedGrati, cdrage The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
Description
This pull request solves #1543.
Since the
externalTrafficPolicy
is only specified when we have aService
of typeLoadBalancer
orNodePort
, we will output a warning message when the user specifies another type ofService
.This feature is implemented for both: Kubernetes and Openshift.