-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CNS-2801 - Minimize the operator's RBAC access (#163)
* Change namespace to be a value on the Controller and StateApplier instead of coming from agentSpec. Modify objects to take the value from their own fields. * Add env var to pass the operator's namespace into the code and use it for the agent * Add a description to the Namespace field to indicate it is deprecated and will not have any effect. * Reduce operator workload permissions to a role instead of ClusterRole * Move dataplane RBAC to a subfolder to separate operator vs dataplane * Commit generated file diff * Add dataplane files to the kustomization * Remove duplicated Dataplane items * Keep the old ClusterRoleBinding name to avoid duplicates if redeploying a newer operator. Rename the local RoleBinding instead to avoid conflicts. * Restrict PriorityClass RBAC * Restrict webhook RBAC by resource name when possible * Move dataplane RBAC objects to the operator chart - so the agent chart mimics deploying a CR with secret * Update Readmes to match the "same-namespace" enforcement. Remove references to repositories that we don't support. Added the missing labeling when pre-creating a namespace. * Sync operator.yaml in the chart with RBAC changes and some missing items from last releases * Bump charts version due to breaking changes. Bumped app version there as well to be latest so far. * Minor comment change * Added some explanation behind the RBAC setup and how to update it * Update deployment.yaml to also mount the namespace env var * Replace namespace var in dataplane_rbac.yaml * Added deprecation notice as godoc to CRD.Namespace * Add Namespace to each component's constructor. Don't set the namespace on the k8s object as it has no affect (NamespacedName is what sets the namespace). * Removed the public registry secret from all dataplane accounts since they shouldn't need it
- Loading branch information
1 parent
8d296ec
commit b83d0be
Showing
42 changed files
with
603 additions
and
439 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
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
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
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
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
Oops, something went wrong.