Documentation ¶
Overview ¶
rbaccleaner exists to clean up ClusterRoleBindings and ClusterRoles deployed by legacy app-operators to cluster namespaces. Those RBAC resources gave excessive permissions to app-operator ServiceAccount in cluster namespace. rbaccleaner can be removed once all active releases use app-operator versions >5.9.0.
Index ¶
Constants ¶
View Source
const (
Name = "rbaccleaner"
)
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
Types ¶
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
func (*Resource) EnsureCreated ¶
EnsureCreated Ensures that ClusterRoleBinding and ClusterRole deployed by legacy app-operators to Cluster namespaces are *deleted* when a cluster namespace is created. We will be using other roles and cluster roles created by another resource.
func (*Resource) EnsureDeleted ¶
func (Resource) K8sClient ¶
func (r Resource) K8sClient() kubernetes.Interface
func (Resource) Logger ¶
func (r Resource) Logger() micrologger.Logger
Click to show internal directories.
Click to hide internal directories.