secret_csi_plugin

package
v0.0.0-...-c5d22f3 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CSI_SERVICEACCOUNT_NAME     = "secerts-csi-zncdata-labs"
	CSI_CLUSTERROLE_NAME        = "secrets-csi-zncdata-labs"
	CSI_CLUSTERROLEBINDING_NAME = "secrets-csi-zncdata-labs"
)
View Source
const (
	VOLUMES_MOUNTPOINT_DIR_NAME   = "mountpoint-dir"
	VOLUMES_PLUGIN_DIR_NAME       = "plugin-dir"
	VOLUMES_REGISTRATION_DIR_NAME = "registration-dir"
)

Variables

View Source
var (
	PROJECT_ROOT_DIR = filepath.Join(
		"..",
		"..",
		"..",
	)
	CRD_DIRECTORIES = filepath.Join(
		PROJECT_ROOT_DIR,
		"config",
		"crd",
		"bases",
	)
	LOCAL_BIN = filepath.Join(
		PROJECT_ROOT_DIR,
		"bin",
	)
)

Functions

func CreateOrUpdate

func CreateOrUpdate(ctx context.Context, c client.Client, obj client.Object) (bool, error)

Types

type CSIDriver

type CSIDriver struct {
	// contains filtered or unexported fields
}

func NewCSIDriver

func NewCSIDriver(client client.Client, cr *secretsv1alpha1.SecretCSI) *CSIDriver

func (*CSIDriver) Reconcile

func (r *CSIDriver) Reconcile(ctx context.Context) (ctrl.Result, error)

type DaemonSet

type DaemonSet struct {
	// contains filtered or unexported fields
}

func NewDaemonSet

func NewDaemonSet(client client.Client, cr *secretsv1alpha1.SecretCSI, secret *secretsv1alpha1.SecretCSISpec, serviceAccount string) *DaemonSet

func (*DaemonSet) Reconcile

func (r *DaemonSet) Reconcile(ctx context.Context) (ctrl.Result, error)

func (*DaemonSet) Satisfied

func (r *DaemonSet) Satisfied(ctx context.Context) (bool, error)

type RBAC

type RBAC struct {
	// contains filtered or unexported fields
}

func NewRBAC

func NewRBAC(client client.Client, cr *secretsv1alpha1.SecretCSI) *RBAC

func (*RBAC) Reconcile

func (r *RBAC) Reconcile(ctx context.Context) (ctrl.Result, error)

type SecretCSIReconciler

type SecretCSIReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

SecretCSIReconciler reconciles a SecretCSI object

func (*SecretCSIReconciler) Reconcile

func (r *SecretCSIReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the SecretCSI object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.15.0/pkg/reconcile

func (*SecretCSIReconciler) SetupWithManager

func (r *SecretCSIReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type StorageClass

type StorageClass struct {
	// contains filtered or unexported fields
}

func NewStorageClass

func NewStorageClass(client client.Client, cr *secretsv1alpha1.SecretCSI) *StorageClass

func (*StorageClass) Reconcile

func (r *StorageClass) Reconcile(ctx context.Context) (ctrl.Result, error)

Jump to

Keyboard shortcuts

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