-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
controller/vmagent: properly assign OwnerReference to Role and RB
Previously, operator assigned VMAgent as Owner for Role and Rolebindg at VMAgent. But the problem is, that at single-namespace mode operator cannot access CRD and assing proper Owner. It led to empty OwnerRefence and created role/rolebinding could be deleted by ARGOCD with enabled pruning. This commit properly assign OwnerReference to VMAgent CR object not cluster CRD. Signed-off-by: f41gh7 <[email protected]>
- Loading branch information
Showing
3 changed files
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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