8000 fix(kubernetes): support public labels by acouvreur · Pull Request #452 · sablierapp/sablier · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@acouvreur
Copy link
Member

closes #449

@acouvreur acouvreur linked an issue Nov 17, 2024 that may be closed by this pull request
@github-actions github-actions bot added documentation Improvements or additions to documentation provider Issue related to a provider reverse-proxy Reverse proxy integration related issue labels Nov 17, 2024
Copy link
@sftim sftim left a comment

Choose a reason for hiding this comment

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

LGTM

@acouvreur
Copy link
Member Author

LGTM

There's an issue with a nil pointer, I have to fix that

return nil, err
}
selector := labels.NewSelector()
selector = selector.Add(*requirement, *requirementDeprecated)
Copy link
Contributor

Choose a reason for hiding this comment

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

If you merge the 2 selector type here, the deployments will need to have both legacy and new labels because the selector would result in sablier.enable=true,sablierapp.dev/enable=true.

I don't know how to handle this, either deprecate old selectors or add a flag to toggle legacy/new (or make it customizable?)

Copy link
Contributor

Choose a reason for hiding this comment

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

After a bit more tweaking I got it to work, I added a bunch of Trace logging to help me find the root cause and it was mainly due to old discovery.LabelGroup usage.

I rebased main onto my branch (449-xxx) so I cannot open a PR on yours but you can see my diff here: main...BapRx:sablier:449-kubernetes-labels-not-public

Copy link
Member Author

Choose a reason for hiding this comment

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

Awesome, I will check it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation provider Issue related to a provider reverse-proxy Reverse proxy integration related issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(Kubernetes) labels not public

4 participants

0