staticresources

package
v0.0.0-...-82dec86 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 20 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,
	apiExtClient apiextclient.Interface,
	dynamicClient dynamic.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
	VolumeSnapshotClass *unstructured.Unstructured

	NodeServiceAccount *corev1.ServiceAccount
	NodeRoleBinding    *rbacv1.ClusterRoleBinding

	ControllerServiceAccount *corev1.ServiceAccount
	ControllerRoleBinding    *rbacv1.ClusterRoleBinding

	ProvisionerRoleBinding                     *rbacv1.ClusterRoleBinding
	VolumesnapshotReaderProvisionerRoleBinding *rbacv1.ClusterRoleBinding

	ResizerRoleBinding                   *rbacv1.ClusterRoleBinding
	StorageclassReaderResizerRoleBinding *rbacv1.ClusterRoleBinding

	SnapshotterRoleBinding *rbacv1.ClusterRoleBinding
	ControllerPDB          *policyv1.PodDisruptionBudget

	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