controllers

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: Apache-2.0, BSD-3-Clause, MIT Imports: 42 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReverseProxyName         = "powermax-reverseproxy"
	ConfigMapName            = "powermax-reverseproxy-config"
	DefaultMode              = "Linked"
	DefaultPort              = int32(2222)
	ConfigFileName           = "config.yaml"
	ConfigMapVolumeName      = "configmap-volume"
	ConfigMapVolumeMountPath = "/etc/config/configmap"
	TLSSecretVolumeName      = "tls-secret"
	TLSSecretMountPath       = "/app/tls"
	CertVolumeName           = "cert-dir"
	CertVolumeMountPath      = "/app/certs"
)

Constants for the reverseproxy

Variables

This section is empty.

Functions

func Getmdmipforsdc

func Getmdmipforsdc(sidenv []corev1.EnvVar, mdmFin string, reqLogger logr.Logger) (corev1.EnvVar, error)

Getmdmipforsdc - Appends MDM value to sdc-monitor Function to append MDM varibale to sdc-monitor environment varibale if not provided

func IsIpv4Regex

func IsIpv4Regex(ipAddress string) bool

IsIpv4Regex - Matches Ipaddress with regex returns error if the Ip Address doesn't match regex

func SyncProxy

func SyncProxy(cr *storagev1.CSIPowerMaxRevProxy, client client.Client, reqLogger logr.Logger) error

SyncProxy - syncs the proxy instance

func ValidateIPAddress

func ValidateIPAddress(ipAdd string) (string, bool)

ValidateIPAddress - Validates the Ip Address returns error if the Ip Address is not valid

func ValidateProxySpec

func ValidateProxySpec(ctx context.Context, client client.Client, instance *storagev1.CSIPowerMaxRevProxy) error

ValidateProxySpec - Validates the proxy specification

Types

type CSIIsilonReconciler

type CSIIsilonReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	Config operatorconfig.Config
	// contains filtered or unexported fields
}

CSIIsilonReconciler reconciles a CSIIsilon object

func (*CSIIsilonReconciler) GetClient

func (r *CSIIsilonReconciler) GetClient() client.Client

GetClient - returns the split client

func (*CSIIsilonReconciler) GetConfig

func (r *CSIIsilonReconciler) GetConfig() operatorconfig.Config

GetConfig - returns the config

func (*CSIIsilonReconciler) GetScheme

func (r *CSIIsilonReconciler) GetScheme() *runtime.Scheme

GetScheme - Returns k8s runtime scheme

func (*CSIIsilonReconciler) GetUpdateCount

func (r *CSIIsilonReconciler) GetUpdateCount() int32

GetUpdateCount - Returns the current update count

func (*CSIIsilonReconciler) IncrUpdateCount

func (r *CSIIsilonReconciler) IncrUpdateCount()

IncrUpdateCount - Increments the update count

func (*CSIIsilonReconciler) InitializeDriverSpec

func (r *CSIIsilonReconciler) InitializeDriverSpec(instance storagev1.CSIDriver, reqLogger logr.Logger) (bool, error)

InitializeDriverSpec - Initializes any uninitialized elements of the instance spec. Also initialize the defaults if user didn't set the values

func (*CSIIsilonReconciler) Reconcile

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

Reconcile function reconciles a CSIIsilon object

func (*CSIIsilonReconciler) SetClient

func (r *CSIIsilonReconciler) SetClient(c client.Client)

SetClient - Sets the split client (only for testing)

func (*CSIIsilonReconciler) SetConfig

func (r *CSIIsilonReconciler) SetConfig(c operatorconfig.Config)

SetConfig - returns the config (only for testing)

func (*CSIIsilonReconciler) SetScheme

func (r *CSIIsilonReconciler) SetScheme(s *runtime.Scheme)

SetScheme - Sets k8s runtime scheme (only for testing)

func (*CSIIsilonReconciler) SetupWithManager

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

SetupWithManager - sets up the controller

func (*CSIIsilonReconciler) ValidateDriverSpec

func (r *CSIIsilonReconciler) ValidateDriverSpec(ctx context.Context, instance storagev1.CSIDriver, reqLogger logr.Logger) error

ValidateDriverSpec - Validates the driver spec returns error if the spec is not valid

type CSIPowerMaxReconciler

type CSIPowerMaxReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	Config operatorconfig.Config
	// contains filtered or unexported fields
}

CSIPowerMaxReconciler reconciles a CSIPowerMax object

func (*CSIPowerMaxReconciler) GetClient

func (r *CSIPowerMaxReconciler) GetClient() client.Client

GetClient - returns the split client

func (*CSIPowerMaxReconciler) GetConfig

GetConfig - returns the config

func (*CSIPowerMaxReconciler) GetScheme

func (r *CSIPowerMaxReconciler) GetScheme() *runtime.Scheme

GetScheme - Returns k8s runtime scheme

func (*CSIPowerMaxReconciler) GetUpdateCount

func (r *CSIPowerMaxReconciler) GetUpdateCount() int32

GetUpdateCount - Returns the current update count

func (*CSIPowerMaxReconciler) IncrUpdateCount

func (r *CSIPowerMaxReconciler) IncrUpdateCount()

IncrUpdateCount - Increments the update count

func (*CSIPowerMaxReconciler) InitializeDriverSpec

func (r *CSIPowerMaxReconciler) InitializeDriverSpec(instance storagev1.CSIDriver, reqLogger logr.Logger) (bool, error)

InitializeDriverSpec - Initializes any uninitialized elements of the instance spec. Also initialize the defaults if user didn't set the values

func (*CSIPowerMaxReconciler) Reconcile

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

Reconcile function reconciles a CSIPowermax object

func (*CSIPowerMaxReconciler) SetClient

func (r *CSIPowerMaxReconciler) SetClient(c client.Client)

SetClient - Sets the split client (only for testing)

func (*CSIPowerMaxReconciler) SetConfig

SetConfig - Sets the config (only for testing)

func (*CSIPowerMaxReconciler) SetScheme

func (r *CSIPowerMaxReconciler) SetScheme(s *runtime.Scheme)

SetScheme - Sets k8s runtime scheme (only for testing)

func (*CSIPowerMaxReconciler) SetupWithManager

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

SetupWithManager - sets up controller

func (*CSIPowerMaxReconciler) ValidateDriverSpec

func (r *CSIPowerMaxReconciler) ValidateDriverSpec(ctx context.Context, instance storagev1.CSIDriver, reqLogger logr.Logger) error

ValidateDriverSpec - Validates the driver spec returns error if the spec is not valid

type CSIPowerMaxRevProxyReconciler

type CSIPowerMaxRevProxyReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

CSIPowerMaxRevProxyReconciler reconciles a CSIPowerMaxRevProxy object

func (*CSIPowerMaxRevProxyReconciler) Reconcile

func (r *CSIPowerMaxRevProxyReconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)

Reconcile function reconciles a CSIPowerMax object

func (*CSIPowerMaxRevProxyReconciler) SetClient

SetClient sets the client for CSIPowerMaxRevProxyReconciler

func (*CSIPowerMaxRevProxyReconciler) SetScheme

SetScheme sets the scheme for ReconcileCSIPowerMaxRevProxy

func (*CSIPowerMaxRevProxyReconciler) SetupWithManager

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

SetupWithManager - sets up controller

type CSIPowerStoreReconciler

type CSIPowerStoreReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	Config operatorconfig.Config
	// contains filtered or unexported fields
}

CSIPowerStoreReconciler reconciles a CSIPowerStore object

func (*CSIPowerStoreReconciler) GetClient

func (r *CSIPowerStoreReconciler) GetClient() client.Client

GetClient - returns the split client

func (*CSIPowerStoreReconciler) GetConfig

GetConfig - returns the config

func (*CSIPowerStoreReconciler) GetScheme

func (r *CSIPowerStoreReconciler) GetScheme() *runtime.Scheme

GetScheme - Returns k8s runtime scheme

func (*CSIPowerStoreReconciler) GetUpdateCount

func (r *CSIPowerStoreReconciler) GetUpdateCount() int32

GetUpdateCount - Returns the current update count

func (*CSIPowerStoreReconciler) IncrUpdateCount

func (r *CSIPowerStoreReconciler) IncrUpdateCount()

IncrUpdateCount - Increments the update count

func (*CSIPowerStoreReconciler) InitializeDriverSpec

func (r *CSIPowerStoreReconciler) InitializeDriverSpec(instance storagev1.CSIDriver, reqLogger logr.Logger) (bool, error)

InitializeDriverSpec - Initialize any driver specific change

func (*CSIPowerStoreReconciler) Reconcile

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

Reconcile function reconciles a CSIPowerStore Object

func (*CSIPowerStoreReconciler) SetClient

func (r *CSIPowerStoreReconciler) SetClient(c client.Client)

SetClient - Sets the split client (only for testing)

func (*CSIPowerStoreReconciler) SetConfig

SetConfig - Sets the config (only for testing)

func (*CSIPowerStoreReconciler) SetScheme

func (r *CSIPowerStoreReconciler) SetScheme(s *runtime.Scheme)

SetScheme - Sets k8s runtime scheme (only for testing)

func (*CSIPowerStoreReconciler) SetupWithManager

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

SetupWithManager - sets up the controller

func (*CSIPowerStoreReconciler) ValidateDriverSpec

func (r *CSIPowerStoreReconciler) ValidateDriverSpec(ctx context.Context, instance storagev1.CSIDriver, reqLogger logr.Logger) error

ValidateDriverSpec - Make any driver specific validation

type CSIUnityReconciler

type CSIUnityReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	Config operatorconfig.Config
	// contains filtered or unexported fields
}

CSIUnityReconciler reconciles a CSIUnity object

func (*CSIUnityReconciler) GetClient

func (r *CSIUnityReconciler) GetClient() client.Client

GetClient - returns the split client

func (*CSIUnityReconciler) GetConfig

func (r *CSIUnityReconciler) GetConfig() operatorconfig.Config

GetConfig - returns the config

func (*CSIUnityReconciler) GetScheme

func (r *CSIUnityReconciler) GetScheme() *runtime.Scheme

GetScheme - Returns k8s runtime scheme

func (*CSIUnityReconciler) GetUpdateCount

func (r *CSIUnityReconciler) GetUpdateCount() int32

GetUpdateCount - Returns the current update count

func (*CSIUnityReconciler) IncrUpdateCount

func (r *CSIUnityReconciler) IncrUpdateCount()

IncrUpdateCount - Increments the update count

func (*CSIUnityReconciler) InitializeDriverSpec

func (r *CSIUnityReconciler) InitializeDriverSpec(instance storagev1.CSIDriver, reqLogger logr.Logger) (bool, error)

InitializeDriverSpec - Initializes any uninitialized elements of the instance spec. Also initialize the defaults if user didn't set the values

func (*CSIUnityReconciler) Reconcile

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

Reconcile function reconciles a CSIUnity Object

func (*CSIUnityReconciler) SetClient

func (r *CSIUnityReconciler) SetClient(c client.Client)

SetClient - Sets the split client (only for testing)

func (*CSIUnityReconciler) SetConfig

func (r *CSIUnityReconciler) SetConfig(c operatorconfig.Config)

SetConfig - Sets the config

func (*CSIUnityReconciler) SetScheme

func (r *CSIUnityReconciler) SetScheme(s *runtime.Scheme)

SetScheme - Sets k8s runtime scheme (only for testing)

func (*CSIUnityReconciler) SetupWithManager

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

SetupWithManager - sets up controller

func (*CSIUnityReconciler) ValidateDriverSpec

func (r *CSIUnityReconciler) ValidateDriverSpec(ctx context.Context, instance storagev1.CSIDriver, reqLogger logr.Logger) error

ValidateDriverSpec does driver specific validation of the spec

type CSIVXFlexOSReconciler

type CSIVXFlexOSReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	Config operatorconfig.Config
	// contains filtered or unexported fields
}

CSIVXFlexOSReconciler reconciles a CSIVXFlexOS object

func (*CSIVXFlexOSReconciler) GetClient

func (r *CSIVXFlexOSReconciler) GetClient() client.Client

GetClient - returns the split client

func (*CSIVXFlexOSReconciler) GetConfig

GetConfig - returns the config

func (*CSIVXFlexOSReconciler) GetMDMFromSecret

func (r *CSIVXFlexOSReconciler) GetMDMFromSecret(ctx context.Context, instance storagev1.CSIDriver, log logr.Logger) (string, error)

GetMDMFromSecret - Returns MDM value

func (*CSIVXFlexOSReconciler) GetScheme

func (r *CSIVXFlexOSReconciler) GetScheme() *runtime.Scheme

GetScheme - Returns k8s runtime scheme

func (*CSIVXFlexOSReconciler) GetUpdateCount

func (r *CSIVXFlexOSReconciler) GetUpdateCount() int32

GetUpdateCount - Returns the current update count

func (*CSIVXFlexOSReconciler) IncrUpdateCount

func (r *CSIVXFlexOSReconciler) IncrUpdateCount()

IncrUpdateCount - Increments the update count

func (*CSIVXFlexOSReconciler) InitializeDriverSpec

func (r *CSIVXFlexOSReconciler) InitializeDriverSpec(instance storagev1.CSIDriver, reqLogger logr.Logger) (bool, error)

InitializeDriverSpec - Initializes any uninitialized elements of the instance spec. Also initialize the defaults if user didn't set the values

func (*CSIVXFlexOSReconciler) Reconcile

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

Reconcile function reconciles a CSIVFlex Object

func (*CSIVXFlexOSReconciler) SetClient

func (r *CSIVXFlexOSReconciler) SetClient(c client.Client)

SetClient - Sets the split client (only for testing)

func (*CSIVXFlexOSReconciler) SetConfig

SetConfig - Sets the config (only for testing)

func (*CSIVXFlexOSReconciler) SetScheme

func (r *CSIVXFlexOSReconciler) SetScheme(s *runtime.Scheme)

SetScheme - Sets k8s runtime scheme (only for testing)

func (*CSIVXFlexOSReconciler) SetupWithManager

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

SetupWithManager - sets up the controller

func (*CSIVXFlexOSReconciler) ValidateDriverSpec

func (r *CSIVXFlexOSReconciler) ValidateDriverSpec(ctx context.Context, instance storagev1.CSIDriver, reqLogger logr.Logger) error

ValidateDriverSpec - Validates the driver spec returns error if the spec is not valid

Jump to

Keyboard shortcuts

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