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

Allow loadbalancer service external IP #275

Merged
merged 6 commits into from
Jan 8, 2024

Conversation

YonatanRubin
Copy link
Contributor

No description provided.

@mustafaStakater
Copy link
Contributor

mustafaStakater commented Sep 26, 2023

push a dummy commit so that latest pr pipeline is run using
git commit -m "chore: trigger pipeline" --allow-empty

@rasheedamir
Copy link
Member

@aslafy-z can you plz review it?

d3adb5
d3adb5 previously requested changes Sep 26, 2023
Copy link
Collaborator

@d3adb5 d3adb5 left a comment

Choose a reason for hiding this comment

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

I suggested a few minor changes, one of which looks like a necessary fix. Let me know if you need help implementing any of this, @YonatanRubin. Thank you for working on this!

application/templates/service.yaml Outdated Show resolved Hide resolved
{{- with .Values.service.clusterIP }}
{{- if (or (eq .Values.service.type "ClusterIP") (empty .Values.service.type)) }}
type: ClusterIP
{{- with .Values.service.clusterIP }}
Copy link
Collaborator

Choose a reason for hiding this comment

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

This setting is being ignored when declaring services of type NodePort or LoadBalancer. According to the spec, however, since a cluster IP is still allocated for those types of services (unless None is specified), it is still valid to try and choose the IP address manually.

This should be present regardless, as headless services need to specify this as None.

application/templates/service.yaml Show resolved Hide resolved
application/templates/service.yaml Outdated Show resolved Hide resolved
@rasheedamir
Copy link
Member

@YonatanRubin can you plz take care of the comments?

@YonatanRubin
Copy link
Contributor Author

Hi, sorry I will not be able to handle this in the next couple of weeks, I will work on this then. If you prefer you can close the PR and I will open a new one when I can.

@rasheedamir
Copy link
Member

@YonatanRubin you can fix when you have time no problem

@rasheedamir
Copy link
Member

@d3adb5 @aslafy-z can anyone of you please finalize this PR and get it merged?

YonatanRubin and others added 5 commits January 7, 2024 14:04
Define the type property of our Service spec outside the branches of
these conditional statements, as it should always honor the chart value.
Proxy the chart value for the Service's clusterIP field for all service
types.
Remove empty conditional branch from the Service template.
Warn the chart's user of the deprecation of the Service loadBalacerIP
field since Kubernetes v1.24.
Address whitespace concerns when rendering Service labels and
annotations.
Copy link

github-actions bot commented Jan 7, 2024

@d3adb5 validation successful`

@d3adb5 d3adb5 dismissed their stale review January 7, 2024 22:30

I have pushed commits to this pull request.

@d3adb5
Copy link
Collaborator

d3adb5 commented Jan 7, 2024

@rasheedamir @aslafy-z I pushed commits addressing the issues I raised in my last review. Since it would be presumptuous of me to give myself a green light, could either of you take a quick look and merge if possible?

Copy link
Collaborator

@aslafy-z aslafy-z 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 @d3adb5!

@aslafy-z aslafy-z merged commit 7e7b0a8 into stakater:master Jan 8, 2024
2 checks passed
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

5 participants