-
Notifications
You must be signed in to change notification settings - Fork 560
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 setting different annotations for headless service in the distributor #10485
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: AvivGuiser <[email protected]>
Signed-off-by: AvivGuiser <[email protected]>
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.
Appreciate the PR. As I mentioned in the comment below, the current changes seem to break the backwards compatibility.
It's clear what the changes here are doing, but I don't understand the problem that is being solved. That is, what is the use-cases where one needs a special set of annotations only in one distributor's service?
@@ -10,7 +10,7 @@ metadata: | |||
{{- toYaml . | nindent 4 }} | |||
{{- end }} | |||
annotations: | |||
{{- toYaml .Values.distributor.service.annotations | nindent 4 }} | |||
{{- toYaml .Values.distributor.service.headlessAnnotations | nindent 4 }} |
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.
This is a breaking change. The setups that are currently in production, will stop working after they update to this one.
@narqo for example we want to set the distributor service as load balancer with external-dns annotations, because both the headless service loads the same annotations (i.e. i understand this a breaking change, is there a special procedure i need to follow in order to properly announce it (assuming it is ok with the maintainers) |
So the issue is that you need to segregate the annotations of the clusterIP and the headless services, to be able to expose the former to an external LB? The In future major version of the chart we should revisit the layout of the components and their values. For now, though, we're restricting ourselves to avoid any breaking changes. If you can think of a way to solve what you were trying to archive w/o breaking the existing code, we can iterate on that. |
@narqo i can wrap it with another boolean value to opt in to this behavior, is that acceptable ? if not i'll open an issue and will wait until the next major version |
Co-authored-by: Taylor C <[email protected]>
I'd opt for doing it in a non-breaking manner because the next major release is still not planned. Can we for example make the |
@dimitarvdimitrov this doesn't solve the use case that i have (and we don't want to use nginx, we want to use the native services and ingress) |
I'm thinking of users who are already setting |
@dimitarvdimitrov from what i understand it might be problemtic to users who relay on the both the headless service and clusterIP service having the same annotations, even with the my current changes they can achive this behavior, they can just use the same annotations in headlessAnnotations hoping im making sense 🙏 |
What this PR does
this PR allows users to specify annotation to the distributor headless service alone (meaning without also setting them on the actual clusterIP service)
Which issue(s) this PR fixes or relates to
Fixes #
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]
.about-versioning.md
updated with experimental features.