Repository navigation
feat: conditionally watch node resources - #10135
Open
maxlengdell wants to merge 3 commits into
Open
maxlengdell wants to merge 3 commits into
maxlengdell wants to merge 3 commits into
Conversation
maxlengdell
requested review from
NiccoloFei,
jsilvela and
litaocdl
as code owners
March 4, 2026 16:35
Contributor
|
❗ By default, the pull request is configured to backport to all release branches.
|
maxlengdell
commented
Mar 5, 2026
sxd
reviewed
Mar 10, 2026
Contributor
Author
|
Thank you for the review @sxd , I added a commit with updates. I force pushed to resolve the DCO issue :) |
CNPG currently relies on access to cluster nodes. This PR introduces the possibility to opt out of this dependency by not watching for node events or invoking the k8 api to request node info. This PR also introduces a new utils package for configuring the RBAC for the operator at runtime. This is used to split the default cluster role policies into role and cluster role. This intends to mimic a deployment of the operator where the operator and operand are deployed in the same namespace. This package also has the possibility to remove some resources from the rbac policies, such as nodes Feature request: cloudnative-pg#9346 Signed-off-by: Max Lengdell <[email protected]>
Update documentation with more details on RBAC considerations for the operator Signed-off-by: Max Lengdell <[email protected]>
Fix minor details in the namespaced package. Signed-off-by: Max Lengdell <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CNPG currently relies on access to cluster nodes. This PR introduces the possibility to opt out of this dependency by not watching for node events or invoking the k8 api to request node info.
This PR also introduces a new utils package for configuring the RBAC for the operator at runtime. This is used to split the default cluster role policies into role and cluster role. This intends to mimic a deployment of the operator where the operator and operand are deployed in the same namespace. This package also has the possibility to remove some resources from the rbac policies, such as nodes
Note
This is a modification & split out of #9350
Fixes #9346
Signed-off-by: Max Lengdell [email protected]