Skip to content

Charts: add the selectorlabels to the webhook service and give controller permission to watch communities - #1487

Merged
fedepaol merged 2 commits into
metallb:mainfrom
fedepaol:charts/webhookselector
Jul 7, 2022
Merged

fedepaol merged 2 commits into
metallb:mainfrom
fedepaol:charts/webhookselector

Conversation

@fedepaol

@fedepaol fedepaol commented Jul 7, 2022 •

Copy link
Copy Markdown
Member

The selector is only aiming at app.kubernetes.io/component, so if
there's another pod in the same namespace labeled controller, the
webhook service won't work (or it will work only if the service balances
the request to the real controller).

Also, give the controller the required permissions to watch communities.

@fedepaol

fedepaol commented Jul 7, 2022

Copy link
Copy Markdown
Member Author

Potentially, a fix for #1481 given what was discussed in #1481 (comment)

@fedepaol fedepaol mentioned this pull request Jul 7, 2022
fedepaol added 2 commits July 7, 2022 12:32
The selector is only aiming at app.kubernetes.io/component, so if
there's another pod in the same namespace labeled controller, the
webhook service won't work (or it will work only if the service balances
the request to the real controller).

Signed-off-by: Federico Paolinelli <fpaoline@redhat.com>
The controller must be able to watch the communities, adding permissions
to it.

Signed-off-by: Federico Paolinelli <fpaoline@redhat.com>
@fedepaol
fedepaol force-pushed the charts/webhookselector branch from cc9b643 to b7a1660 Compare July 7, 2022 10:33
@fedepaol fedepaol changed the title Charts: add the selectorlabels to the webhook service Charts: add the selectorlabels to the webhook service and give controller permission to watch communities Jul 7, 2022
@oribon

oribon commented Jul 7, 2022

Copy link
Copy Markdown
Member

lgtm

@fedepaol
fedepaol merged commit 526692d into metallb:main Jul 7, 2022
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.

2 participants