staticresource

package
v0.0.0-...-380deac Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL