Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCSIStaticResourceController ¶
func NewCSIStaticResourceController( name string, operatorNamespace string, operatorClient operatorv1helpers.OperatorClientWithFinalizers, kubeClient kubernetes.Interface, informers operatorv1helpers.KubeInformersForNamespaces, recorder events.Recorder, objs SyncObjects, ) factory.Controller
Types ¶
type CSIStaticResourceController ¶
type CSIStaticResourceController struct {
// contains filtered or unexported fields
}
CSIStaticResourceController creates, manages and deletes static resources of a CSI driver, such as RBAC rules. It's more hardcoded variant of library-go's StaticResourceController, which does not implement removal of objects yet.
type SyncObjects ¶
type SyncObjects struct {
CSIDriver *storagev1.CSIDriver
PrivilegedRole *rbacv1.ClusterRole
CAConfigMap *corev1.ConfigMap
NodeServiceAccount *corev1.ServiceAccount
NodeRoleBinding *rbacv1.ClusterRoleBinding
ControllerServiceAccount *corev1.ServiceAccount
ControllerRoleBinding *rbacv1.ClusterRoleBinding
ProvisionerRoleBinding *rbacv1.ClusterRoleBinding
PrometheusRole *rbacv1.Role
PrometheusRoleBinding *rbacv1.RoleBinding
MetricsService *corev1.Service
RBACProxyRole *rbacv1.ClusterRole
RBACProxyRoleBinding *rbacv1.ClusterRoleBinding
LeaseLeaderElectionRole *rbacv1.Role
LeaseLeaderElectionRoleBinding *rbacv1.RoleBinding
}
Click to show internal directories.
Click to hide internal directories.