modules

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 24 Imported by: 1

Documentation

Index

Constants

View Source
const (

	// AppMobDeploymentManifest - filename of deployment manifest for app-mobility
	AppMobDeploymentManifest = "app-mobility-controller-manager.yaml"
	// AppMobMetricService - filename of MetricService manifest for app-mobility
	AppMobMetricService = "app-mobility-controller-manager-metrics-service.yaml"
	// AppMobWebhookService - filename of Webhook manifest for app-mobility
	AppMobWebhookService = "app-mobility-webhook-service.yaml"
	// AppMobCrds - name of app-mobility crd manifest yaml
	AppMobCrds = "app-mobility-crds.yaml"
	// VeleroManifest - filename of Velero manifest for app-mobility
	VeleroManifest = "velero-deployment.yaml"
	// AppMobCertManagerManifest - filename of Cert-manager manifest for app-mobility
	AppMobCertManagerManifest = "cert-manager.yaml"
	// UseVolSnapshotManifest - filename of use volume snapshot manifest for velero
	UseVolSnapshotManifest = "velero-volumesnapshotlocation.yaml"
	// BackupStorageLoc - filename of backupstoragelocation manifest for velero
	BackupStorageLoc = "velero-backupstoragelocation.yaml"
	// CleanupCrdManifest - filename of Cleanup Crds manifest for app-mobility
	CleanupCrdManifest = "cleanupcrds.yaml"
	// VeleroCrdManifest - filename of Velero crds manisfest for Velero feature
	VeleroCrdManifest = "velero-crds.yaml"
	// VeleroAccessManifest - filename where velero access with its contents
	VeleroAccessManifest = "velero-secret.yaml"
	// CertManagerIssuerCertManifest - filename of the issuer and cert for app-mobility
	CertManagerIssuerCertManifest = "certificate.yaml"
	// NodeAgentCrdManifest - filename of node-agent manifest for app-mobility
	NodeAgentCrdManifest = "node-agent.yaml"

	// ControllerImg - image for app-mobility-controller
	ControllerImg = "<CONTROLLER_IMAGE>"
	// ControllerImagePullPolicy - default image pull policy in yamls
	ControllerImagePullPolicy = "<CONTROLLER_IMAGE_PULLPOLICY>"
	// AppMobNamespace - namespace Application Mobility is installed in
	AppMobNamespace = "<NAMESPACE>"
	// AppMobReplicaCount - Number of replicas
	AppMobReplicaCount = "<APPLICATION_MOBILITY_REPLICA_COUNT>"
	// AppMobObjStoreSecretName - Secret name for object store
	AppMobObjStoreSecretName = "<APPLICATION_MOBILITY_OBJECT_STORE_SECRET_NAME>"
	// BackupStorageLocation - name for Backup Storage Location
	BackupStorageLocation = "<BACKUPSTORAGELOCATION_NAME>"
	// VeleroBucketName - name for the used velero bucket
	VeleroBucketName = "<BUCKET_NAME>"
	// VolSnapshotlocation - name for Volume Snapshot location
	VolSnapshotlocation = "<VOL_SNAPSHOT_LOCATION_NAME>"
	// BackupStorageURL - cloud url for backup storage location
	BackupStorageURL = "<BACKUP_STORAGE_URL>"
	// BackupStorageRegion - region for backup to take place in
	BackupStorageRegion = "<BACKUP_REGION_URL>"
	// BackupStorageRegionDefault - default value if BACKUP_REGION_URL is not specified
	BackupStorageRegionDefault = "region"
	// ConfigProvider - configurations provider
	ConfigProvider = "<CONFIGURATION_PROVIDER>"
	// VeleroImage - Image for velero
	VeleroImage = "<VELERO_IMAGE>"
	// VeleroImagePullPolicy - image pull policy for velero
	VeleroImagePullPolicy = "<VELERO_IMAGE_PULLPOLICY>"
	// VeleroAccess  -  Secret name for velero
	VeleroAccess = "<VELERO_ACCESS>"
	// AWSInitContainerName - Name of init container for velero - aws
	AWSInitContainerName = "<AWS_INIT_CONTAINER_NAME>"
	// AWSInitContainerImage - Image of init container for velero -aws
	AWSInitContainerImage = "<AWS_INIT_CONTAINER_IMAGE>"
	// DELLInitContainerName - Name of init container for velero - dell
	DELLInitContainerName = "<DELL_INIT_CONTAINER_NAME>"
	// DELLInitContainerImage - Image of init container for velero - dell
	DELLInitContainerImage = "<DELL_INIT_CONTAINER_IMAGE>"
	// AccessContents - contents of the object store secret
	AccessContents = "<CRED_CONTENTS>"
	// AKeyID - contains the aws access key id
	AKeyID = "<KEY_ID>"
	// AKey - contains the aws access key
	AKey = "<KEY>"

	// AppMobCtrlMgrComponent - component name in cr for app-mobility controller-manager
	AppMobCtrlMgrComponent = "application-mobility-controller-manager"
	// AppMobCertManagerComponent - cert-manager component
	AppMobCertManagerComponent = "cert-manager"
	// AppMobVeleroComponent - velero component
	AppMobVeleroComponent = "velero"
)
View Source
const (
	// AuthDeploymentManifest - deployment resources and ingress rules for authorization module
	AuthDeploymentManifest = "deployment.yaml"
	// AuthIngressManifest -
	AuthIngressManifest = "ingress.yaml"
	// AuthCertManagerManifest -
	AuthCertManagerManifest = "cert-manager.yaml"
	// AuthNginxIngressManifest -
	AuthNginxIngressManifest = "nginx-ingress-controller.yaml"
	// AuthPolicyManifest -
	AuthPolicyManifest = "policies.yaml"
	// AuthLocalProvisionerManifest -
	AuthLocalProvisionerManifest = "local-provisioner.yaml"

	// AuthNamespace -
	AuthNamespace = "<NAMESPACE>"
	// AuthLogLevel -
	AuthLogLevel = "<AUTHORIZATION_LOG_LEVEL>"
	// AuthConcurrentPowerFlexRequests -
	AuthConcurrentPowerFlexRequests = "<AUTHORIZATION_CONCURRENT_POWERFLEX_REQUESTS>"
	// AuthZipkinCollectorURI -
	AuthZipkinCollectorURI = "<AUTHORIZATION_ZIPKIN_COLLECTORURI>"
	// AuthZipkinProbability -
	AuthZipkinProbability = "<AUTHORIZATION_ZIPKIN_PROBABILITY>"
	// AuthServerImage -
	AuthServerImage = "<AUTHORIZATION_PROXY_SERVER_IMAGE>"
	// AuthOpaImage -
	AuthOpaImage = "<AUTHORIZATION_OPA_IMAGE>"
	// AuthOpaKubeMgmtImage -
	AuthOpaKubeMgmtImage = "<AUTHORIZATION_OPA_KUBEMGMT_IMAGE>"
	// AuthTenantServiceImage -
	AuthTenantServiceImage = "<AUTHORIZATION_TENANT_SERVICE_IMAGE>"
	// AuthRoleServiceImage -
	AuthRoleServiceImage = "<AUTHORIZATION_ROLE_SERVICE_IMAGE>"
	// AuthStorageServiceImage -
	AuthStorageServiceImage = "<AUTHORIZATION_STORAGE_SERVICE_IMAGE>"
	// AuthRedisImage -
	AuthRedisImage = "<AUTHORIZATION_REDIS_IMAGE>"
	// AuthRedisCommanderImage -
	AuthRedisCommanderImage = "<AUTHORIZATION_REDIS_COMMANDER_IMAGE>"
	// AuthRedisStorageClass -
	AuthRedisStorageClass = "<REDIS_STORAGE_CLASS>"

	// AuthProxyHost -
	AuthProxyHost = "<AUTHORIZATION_HOSTNAME>"
	// AuthProxyIngressHost -
	AuthProxyIngressHost = "<PROXY_INGRESS_HOST>"
	// AuthProxyIngressClassName -
	AuthProxyIngressClassName = "<PROXY_INGRESS_CLASSNAME>"
	// AuthTenantIngressClassName -
	AuthTenantIngressClassName = "<TENANT_INGRESS_CLASSNAME>"
	// AuthRoleIngressClassName -
	AuthRoleIngressClassName = "<ROLE_INGRESS_CLASSNAME>"
	// AuthStorageIngressClassName -
	AuthStorageIngressClassName = "<STORAGE_INGRESS_CLASSNAME>"

	// AuthProxyServerComponent - karavi-authorization-proxy-server component
	AuthProxyServerComponent = "karavi-authorization-proxy-server"
	// AuthSidecarComponent - karavi-authorization-proxy component
	AuthSidecarComponent = "karavi-authorization-proxy"
	// AuthNginxIngressComponent - ingress-nginx component
	AuthNginxIngressComponent = "ingress-nginx"
	// AuthCertManagerComponent - cert-manager component
	AuthCertManagerComponent = "cert-manager"

	// AuthLocalStorageClass -
	AuthLocalStorageClass = "csm-authorization-local-storage"
)
View Source
const (
	// DefaultPluginIdentifier - spring placeholder for driver plugin
	DefaultPluginIdentifier = "<DriverPluginIdentifier>"
	// DefaultDriverConfigParamsVolumeMount - string placeholder for Driver ConfigParamsVolumeMount
	DefaultDriverConfigParamsVolumeMount = "<DriverConfigParamsVolumeMount>"
	// CertManagerManifest -
	CertManagerManifest = "cert-manager.yaml"
	// CommonNamespace -
	CommonNamespace = "<NAMESPACE>"
	// CSMName - name
	CSMName = "<NAME>"
)
View Source
const (
	// ObservabilityOtelCollectorName - component otel-collector
	ObservabilityOtelCollectorName string = "otel-collector"

	// ObservabilityTopologyName - component topology
	ObservabilityTopologyName string = "topology"

	// ObservabilityCertManagerComponent cert-manager component name
	ObservabilityCertManagerComponent string = "cert-manager"

	// ObservabilityMetricsPowerScaleName - component metrics-powerscale
	ObservabilityMetricsPowerScaleName string = "metrics-powerscale"

	// ObservabilityMetricsPowerFlexName - component metrics-powerflex
	ObservabilityMetricsPowerFlexName string = "metrics-powerflex"

	// ObservabilityMetricsPowerMaxName - component metrics-powermax
	ObservabilityMetricsPowerMaxName string = "metrics-powermax"

	// TopologyLogLevel -
	TopologyLogLevel string = "<TOPOLOGY_LOG_LEVEL>"

	// TopologyImage -
	TopologyImage string = "<TOPOLOGY_IMAGE>"

	// TopologyYamlFile -
	TopologyYamlFile string = "karavi-topology.yaml"

	// OtelCollectorAddress - Otel collector address
	OtelCollectorAddress string = "<COLLECTOR_ADDRESS>"

	// PowerScaleMaxConcurrentQueries - max concurrent queries
	PowerScaleMaxConcurrentQueries string = "<POWERSCALE_MAX_CONCURRENT_QUERIES>"

	// PowerscaleCapacityMetricsEnabled - enable/disable collection of capacity metrics
	PowerscaleCapacityMetricsEnabled string = "<POWERSCALE_CAPACITY_METRICS_ENABLED>"

	// PowerscalePerformanceMetricsEnabled - enable/disable collection of performance metrics
	PowerscalePerformanceMetricsEnabled string = "<POWERSCALE_PERFORMANCE_METRICS_ENABLED>"

	// PowerscaleClusterCapacityPollFrequency - polling frequency to get cluster capacity data
	PowerscaleClusterCapacityPollFrequency string = "<POWERSCALE_CLUSTER_CAPACITY_POLL_FREQUENCY>"

	// PowerscaleClusterPerformancePollFrequency - polling frequency to get cluster performance data
	PowerscaleClusterPerformancePollFrequency string = "<POWERSCALE_CLUSTER_PERFORMANCE_POLL_FREQUENCY>"

	// PowerscaleQuotaCapacityPollFrequency - polling frequency to get Quota capacity data
	PowerscaleQuotaCapacityPollFrequency string = "<POWERSCALE_QUOTA_CAPACITY_POLL_FREQUENCY>"

	// IsiclientInsecure - skip certificate validation
	IsiclientInsecure string = "<ISICLIENT_INSECURE>"

	// IsiclientAuthType - enables session-based/basic authentication
	IsiclientAuthType string = "<ISICLIENT_AUTH_TYPE>"

	// IsiclientVerbose - content of the OneFS REST API message
	IsiclientVerbose string = "<ISICLIENT_VERBOSE>"

	// PowerscaleLogLevel - the level for the PowerScale metrics
	PowerscaleLogLevel string = "<POWERSCALE_LOG_LEVEL>"

	// PowerscaleLogFormat - log format
	PowerscaleLogFormat string = "<POWERSCALE_LOG_FORMAT>"

	// PowerScaleImage - PowerScale image name
	PowerScaleImage string = "<POWERSCALE_OBS_IMAGE>"

	// PowerflexImage - Powerflex image name
	PowerflexImage string = "<POWERFLEX_OBS_IMAGE>"

	// PowerflexSdcMetricsEnabled - enable/disable collection of sdc metrics
	PowerflexSdcMetricsEnabled string = "<POWERFLEX_SDC_METRICS_ENABLED>"

	// PowerflexVolumeMetricsEnabled - enable/disable collection of volume metrics
	PowerflexVolumeMetricsEnabled string = "<POWERFLEX_VOLUME_METRICS_ENABLED>"

	// PowerflexStoragePoolMetricsEnabled - enable/disable collection of storage pool metrics
	PowerflexStoragePoolMetricsEnabled string = "<POWERFLEX_STORAGE_POOL_METRICS_ENABLED>"

	// PowerflexSdcIoPollFrequency - polling frequency to get sdc data
	PowerflexSdcIoPollFrequency string = "<POWERFLEX_SDC_IO_POLL_FREQUENCY>"

	// PowerflexVolumeIoPollFrequency - polling frequency to get volume data
	PowerflexVolumeIoPollFrequency string = "<POWERFLEX_VOLUME_IO_POLL_FREQUENCY>"

	// PowerflexStoragePoolPollFrequency - polling frequency to get storage pool data
	PowerflexStoragePoolPollFrequency string = "<POWERFLEX_STORAGE_POOL_POLL_FREQUENCY>"

	// PowerflexMaxConcurrentQueries - max concurrent queries
	PowerflexMaxConcurrentQueries string = "<POWERFLEX_MAX_CONCURRENT_QUERIES>"

	// PowerflexLogLevel - the level for the PowerFlex metrics
	PowerflexLogLevel string = "<POWERFLEX_LOG_LEVEL>"

	// PowerflexLogFormat - log format
	PowerflexLogFormat string = "<POWERFLEX_LOG_FORMAT>"

	// NginxProxyImage - Nginx proxy image name
	NginxProxyImage string = "<NGINX_PROXY_IMAGE>"

	// OtelCollectorImage - Otel collector image name
	OtelCollectorImage string = "<OTEL_COLLECTOR_IMAGE>"

	// PscaleObsYamlFile - PowerScale Observability yaml file
	PscaleObsYamlFile string = "karavi-metrics-powerscale.yaml"

	// OtelCollectorYamlFile - Otel Collector yaml file
	OtelCollectorYamlFile string = "karavi-otel-collector.yaml"

	// DriverDefaultReleaseName constant
	DriverDefaultReleaseName string = "<DriverDefaultReleaseName>"

	// PflexObsYamlFile - powerflex metrics yaml file
	PflexObsYamlFile string = "karavi-metrics-powerflex.yaml"

	// PmaxCapacityMetricsEnabled - enable/disable capacity metrics
	PmaxCapacityMetricsEnabled string = "<POWERMAX_CAPACITY_METRICS_ENABLED>"

	// PmaxCapacityPollFreq - polling frequency to get capacity metrics
	PmaxCapacityPollFreq string = "<POWERMAX_CAPACITY_POLL_FREQUENCY>"

	// PmaxPerformanceMetricsEnabled - enable/disable performance metrics
	PmaxPerformanceMetricsEnabled string = "<POWERMAX_PERFORMANCE_METRICS_ENABLED>"

	// PmaxPerformancePollFreq - polling frequency to get capacity metrics
	PmaxPerformancePollFreq string = "<POWERMAX_PERFORMANCE_POLL_FREQUENCY>"

	// PmaxConcurrentQueries - number of concurrent queries
	PmaxConcurrentQueries string = "<POWERMAX_MAX_CONCURRENT_QUERIES>"

	// PmaxLogLevel - the level for the Powermax metrics
	PmaxLogLevel string = "<POWERMAX_LOG_LEVEL>"

	// PmaxLogFormat - log format for Powermax metrics
	PmaxLogFormat string = "<POWERMAX_LOG_FORMAT>"

	// PmaxObsImage - Observability image for Powermax
	PmaxObsImage string = "<POWERMAX_OBS_IMAGE>"

	// PMaxObsYamlFile - powermax metrics yaml file
	PMaxObsYamlFile string = "karavi-metrics-powermax.yaml"

	// SelfSignedCert - self-signed certificate file
	SelfSignedCert string = "selfsigned-cert.yaml"

	// CustomCert - custom certificate file
	CustomCert string = "custom-cert.yaml"

	// ObservabilityCertificate -- certificate for either topology or otel-collector in base64
	ObservabilityCertificate string = "<BASE64_CERTIFICATE>"

	// ObservabilityPrivateKey -- private key for either topology or otel-collector in base64
	ObservabilityPrivateKey string = "<BASE64_PRIVATE_KEY>"

	// ObservabilitySecretPrefix --  placeholder for either karavi-topology or otel-collector
	ObservabilitySecretPrefix string = "<OBSERVABILITY_SECRET_PREFIX>" // #nosec G101 -- false positive

	// CSMNameSpace - namespace CSM is found in. Needed for cases where pod namespace is not namespace of CSM
	CSMNameSpace string = "<CSM_NAMESPACE>"
)
View Source
const (
	// RepctlBinary - default binary name
	RepctlBinary = "repctl"
	// ReplicationPrefix -
	ReplicationPrefix = "replication.storage.dell.com"
	// DefaultReplicationContextPrefix -
	DefaultReplicationContextPrefix = "<ReplicationContextPrefix>"
	// DefaultReplicationPrefix -
	DefaultReplicationPrefix = "<ReplicationPrefix>"
	// DefaultLogLevel -
	DefaultLogLevel = "<REPLICATION_CTRL_LOG_LEVEL>"
	// DefautlReplicaCount -
	DefautlReplicaCount = "<REPLICATION_CTRL_REPLICAS>"
	// DefaultRetryMin -
	DefaultRetryMin = "<RETRY_INTERVAL_MIN>"
	// DefaultRetryMax -
	DefaultRetryMax = "<RETRY_INTERVAL_MAX>"
	// DefaultReplicaImage -
	DefaultReplicaImage = "<REPLICATION_CONTROLLER_IMAGE>"
	// DefaultReplicaInitImage -
	DefaultReplicaInitImage = "<REPLICATION_INIT_IMAGE>"
)
View Source
const (
	ReverseProxyServerComponent = "csipowermax-reverseproxy" // #nosec G101
	ReverseProxyDeployement     = "controller.yaml"
	ReverseProxyImage           = "<REVERSEPROXY_PROXY_SERVER_IMAGE>"
	ReverseProxyTLSSecret       = "<X_CSI_REVPROXY_TLS_SECRET>" // #nosec G101
	ReverseProxyConfigMap       = "<X_CSI_CONFIG_MAP_NAME>"
	ReverseProxyPort            = "<X_CSI_REVPROXY_PORT>"
)

Constants to be used in reverse proxy config files

Variables

View Source
var (
	// XCSIReplicaCTXPrefix -
	XCSIReplicaCTXPrefix = "X_CSI_REPLICATION_CONTEXT_PREFIX"
	// XCSIReplicaPrefix -
	XCSIReplicaPrefix = "X_CSI_REPLICATION_PREFIX" // #nosec G101
)
View Source
var (
	// XCSIPodmonArrayConnectivityPollRate -
	XCSIPodmonArrayConnectivityPollRate = "X_CSI_PODMON_ARRAY_CONNECTIVITY_POLL_RATE"
	// XCSIPodmonAPIPort -
	XCSIPodmonAPIPort = "X_CSI_PODMON_API_PORT"
	// XCSIPodmonEnabled -
	XCSIPodmonEnabled = "X_CSI_PODMON_ENABLED"
)
View Source
var AuthorizationSupportedDrivers = map[string]SupportedDriverParam{
	"powerscale": {
		PluginIdentifier:              drivers.PowerScalePluginIdentifier,
		DriverConfigParamsVolumeMount: drivers.PowerScaleConfigParamsVolumeMount,
	},
	"isilon": {
		PluginIdentifier:              drivers.PowerScalePluginIdentifier,
		DriverConfigParamsVolumeMount: drivers.PowerScaleConfigParamsVolumeMount,
	},
	"powerflex": {
		PluginIdentifier:              drivers.PowerFlexPluginIdentifier,
		DriverConfigParamsVolumeMount: drivers.PowerFlexConfigParamsVolumeMount,
	},
	"vxflexos": {
		PluginIdentifier:              drivers.PowerFlexPluginIdentifier,
		DriverConfigParamsVolumeMount: drivers.PowerFlexConfigParamsVolumeMount,
	},
	"powermax": {
		PluginIdentifier:              drivers.PowerMaxPluginIdentifier,
		DriverConfigParamsVolumeMount: drivers.PowerMaxConfigParamsVolumeMount,
	},
}

AuthorizationSupportedDrivers is a map containing the CSI Drivers supported by CSM Authorization. The key is driver name and the value is the driver plugin identifier

View Source
var ComponentNameToSecretPrefix = map[string]string{ObservabilityOtelCollectorName: "otel-collector", ObservabilityTopologyName: "karavi-topology"}

ComponentNameToSecretPrefix - map from component name to secret prefix

View Source
var ObservabilitySupportedDrivers = map[string]SupportedDriverParam{
	"powerscale": {
		PluginIdentifier:              drivers.PowerScalePluginIdentifier,
		DriverConfigParamsVolumeMount: drivers.PowerScaleConfigParamsVolumeMount,
	},
	"isilon": {
		PluginIdentifier:              drivers.PowerScalePluginIdentifier,
		DriverConfigParamsVolumeMount: drivers.PowerScaleConfigParamsVolumeMount,
	},
	"powerflex": {
		PluginIdentifier:              drivers.PowerFlexPluginIdentifier,
		DriverConfigParamsVolumeMount: drivers.PowerFlexConfigParamsVolumeMount,
	},
	"vxflexos": {
		PluginIdentifier:              drivers.PowerFlexPluginIdentifier,
		DriverConfigParamsVolumeMount: drivers.PowerFlexConfigParamsVolumeMount,
	},
	string(csmv1.PowerMax): {
		PluginIdentifier:              drivers.PowerMaxPluginIdentifier,
		DriverConfigParamsVolumeMount: drivers.PowerMaxConfigParamsVolumeMount,
	},
}

ObservabilitySupportedDrivers is a map containing the CSI Drivers supported by CSM Replication. The key is driver name and the value is the driver plugin identifier

View Source
var ReplicationSupportedDrivers = map[string]SupportedDriverParam{
	string(csmv1.PowerScaleName): {
		PluginIdentifier:              drivers.PowerScalePluginIdentifier,
		DriverConfigParamsVolumeMount: drivers.PowerScaleConfigParamsVolumeMount,
	},
	string(csmv1.PowerScale): {
		PluginIdentifier:              drivers.PowerScalePluginIdentifier,
		DriverConfigParamsVolumeMount: drivers.PowerScaleConfigParamsVolumeMount,
	},
	string(csmv1.PowerFlex): {
		PluginIdentifier:              drivers.PowerFlexPluginIdentifier,
		DriverConfigParamsVolumeMount: drivers.PowerFlexConfigParamsVolumeMount,
	},
	string(csmv1.PowerFlexName): {
		PluginIdentifier:              drivers.PowerFlexPluginIdentifier,
		DriverConfigParamsVolumeMount: drivers.PowerFlexConfigParamsVolumeMount,
	},
	string(csmv1.PowerMax): {
		PluginIdentifier:              drivers.PowerMaxPluginIdentifier,
		DriverConfigParamsVolumeMount: drivers.PowerMaxConfigParamsVolumeMount,
	},
}

ReplicationSupportedDrivers is a map containing the CSI Drivers supported by CSM Replication. The key is driver name and the value is the driver plugin identifier

View Source
var ResiliencySupportedDrivers = map[string]SupportedDriverParam{
	string(csmv1.PowerStore): {
		PluginIdentifier:              drivers.PowerStorePluginIdentifier,
		DriverConfigParamsVolumeMount: drivers.PowerStoreConfigParamsVolumeMount,
	},
	string(csmv1.PowerScaleName): {
		PluginIdentifier:              drivers.PowerScalePluginIdentifier,
		DriverConfigParamsVolumeMount: drivers.PowerScaleConfigParamsVolumeMount,
	},
	string(csmv1.PowerScale): {
		PluginIdentifier:              drivers.PowerScalePluginIdentifier,
		DriverConfigParamsVolumeMount: drivers.PowerScaleConfigParamsVolumeMount,
	},
	string(csmv1.PowerFlex): {
		PluginIdentifier:              drivers.PowerFlexPluginIdentifier,
		DriverConfigParamsVolumeMount: drivers.PowerFlexConfigParamsVolumeMount,
	},
	string(csmv1.PowerFlexName): {
		PluginIdentifier:              drivers.PowerFlexPluginIdentifier,
		DriverConfigParamsVolumeMount: drivers.PowerFlexConfigParamsVolumeMount,
	},
}

ResiliencySupportedDrivers is a map containing the CSI Drivers supported by CSM Resiliency. The key is driver name and the value is the driver plugin identifier

View Source
var ReverseproxySupportedDrivers = map[string]SupportedDriverParam{
	string(csmv1.PowerMax): {
		PluginIdentifier:              drivers.PowerMaxPluginIdentifier,
		DriverConfigParamsVolumeMount: drivers.PowerMaxConfigParamsVolumeMount,
	},
}

ReverseproxySupportedDrivers is a map containing the CSI Drivers supported by CSM Reverseproxy. The key is driver name and the value is the driver plugin identifier

Functions

func AppMobCrdDeploy added in v1.4.0

func AppMobCrdDeploy(ctx context.Context, op utils.OperatorConfig, cr csmv1.ContainerStorageModule, ctrlClient crclient.Client) error

AppMobCrdDeploy - apply and delete Velero crds deployment

func AppMobilityCertManager added in v1.4.0

func AppMobilityCertManager(ctx context.Context, isDeleting bool, op utils.OperatorConfig, cr csmv1.ContainerStorageModule, ctrlClient crclient.Client) error

AppMobilityCertManager - Install/Delete cert-manager

func AppMobilityDeployment added in v1.4.0

func AppMobilityDeployment(ctx context.Context, isDeleting bool, op utils.OperatorConfig, cr csmv1.ContainerStorageModule, ctrlClient crclient.Client) error

AppMobilityDeployment - apply and delete controller manager deployment

func AppMobilityVelero added in v1.4.0

func AppMobilityVelero(ctx context.Context, isDeleting bool, op utils.OperatorConfig, cr csmv1.ContainerStorageModule, ctrlClient crclient.Client) error

AppMobilityVelero - Install/Delete velero along with its features - use volume snapshot location and cleanup crds

func AppMobilityWebhookService added in v1.4.0

func AppMobilityWebhookService(ctx context.Context, isDeleting bool, op utils.OperatorConfig, cr csmv1.ContainerStorageModule, ctrlClient crclient.Client) error

AppMobilityWebhookService - apply/delete app mobility's webhook service

func ApplicationMobilityPrecheck added in v1.4.0

func ApplicationMobilityPrecheck(ctx context.Context, op utils.OperatorConfig, appMob csmv1.Module, _ csmv1.ContainerStorageModule, r utils.ReconcileCSM) error

ApplicationMobilityPrecheck - runs precheck for CSM Application Mobility

func AuthInjectDaemonset

AuthInjectDaemonset - inject authorization into daemonset

func AuthInjectDeployment

AuthInjectDeployment - inject authorization into deployment

func AuthorizationIngress added in v1.0.0

func AuthorizationIngress(ctx context.Context, isDeleting bool, op utils.OperatorConfig, cr csmv1.ContainerStorageModule, r utils.ReconcileCSM, ctrlClient crclient.Client) error

AuthorizationIngress - apply/delete ingress objects

func AuthorizationPrecheck

func AuthorizationPrecheck(ctx context.Context, op utils.OperatorConfig, auth csmv1.Module, cr csmv1.ContainerStorageModule, ctrlClient crclient.Client) error

AuthorizationPrecheck - runs precheck for CSM Authorization

func AuthorizationServerDeployment added in v1.2.0

func AuthorizationServerDeployment(ctx context.Context, isDeleting bool, op utils.OperatorConfig, cr csmv1.ContainerStorageModule, ctrlClient crclient.Client) error

AuthorizationServerDeployment - apply/delete deployment objects

func AuthorizationServerPrecheck added in v1.0.0

func AuthorizationServerPrecheck(ctx context.Context, op utils.OperatorConfig, auth csmv1.Module, cr csmv1.ContainerStorageModule, r utils.ReconcileCSM) error

AuthorizationServerPrecheck - runs precheck for CSM Authorization Proxy Server

func CheckAnnotationAuth added in v0.2.0

func CheckAnnotationAuth(annotation map[string]string) error

CheckAnnotationAuth --

func CheckApplyContainersAuth added in v0.2.0

func CheckApplyContainersAuth(containers []acorev1.ContainerApplyConfiguration, drivertype string, skipCertificateValidation bool) error

CheckApplyContainersAuth --

func CheckApplyContainersReplica added in v0.2.0

func CheckApplyContainersReplica(containers []acorev1.ContainerApplyConfiguration, cr csmv1.ContainerStorageModule) error

CheckApplyContainersReplica --

func CheckApplyContainersResiliency added in v1.2.0

func CheckApplyContainersResiliency(containers []acorev1.ContainerApplyConfiguration, cr csmv1.ContainerStorageModule) error

CheckApplyContainersResiliency - check container configuration for resiliency

func CheckApplyVolumesAuth added in v0.2.0

func CheckApplyVolumesAuth(volumes []acorev1.VolumeApplyConfiguration) error

CheckApplyVolumesAuth --

func CheckClusterRoleReplica added in v0.2.0

func CheckClusterRoleReplica(rules []rbacv1.PolicyRule) error

CheckClusterRoleReplica -

func CommonCertManager added in v1.2.0

func CommonCertManager(ctx context.Context, isDeleting bool, op utils.OperatorConfig, cr csmv1.ContainerStorageModule, ctrlClient crclient.Client) error

CommonCertManager - apply/delete cert-manager objects

func ControllerManagerMetricService added in v1.4.0

func ControllerManagerMetricService(ctx context.Context, isDeleting bool, op utils.OperatorConfig, cr csmv1.ContainerStorageModule, ctrlClient crclient.Client) error

ControllerManagerMetricService - apply and delete Controller manager metric service deployment

func CreateVeleroAccess added in v1.4.0

func CreateVeleroAccess(ctx context.Context, isDeleting bool, op utils.OperatorConfig, cr csmv1.ContainerStorageModule, ctrlClient crclient.Client) error

CreateVeleroAccess - Install/Delete velero-secret yaml from operator config

func InstallPolicies added in v1.0.0

func InstallPolicies(ctx context.Context, isDeleting bool, op utils.OperatorConfig, cr csmv1.ContainerStorageModule, ctrlClient crclient.Client) error

InstallPolicies - apply/delete authorization opa policy objects

func IssuerCertService added in v1.4.0

func IssuerCertService(ctx context.Context, isDeleting bool, op utils.OperatorConfig, cr csmv1.ContainerStorageModule, ctrlClient crclient.Client) error

IssuerCertService - apply and delete the app mobility issuer and certificate service

func IssuerCertServiceObs added in v1.4.3

func IssuerCertServiceObs(ctx context.Context, isDeleting bool, op utils.OperatorConfig, cr csmv1.ContainerStorageModule, ctrlClient crclient.Client) error

IssuerCertServiceObs - apply and delete the observability issuer and certificate service

func NginxIngressController added in v1.0.0

func NginxIngressController(ctx context.Context, isDeleting bool, op utils.OperatorConfig, cr csmv1.ContainerStorageModule, ctrlClient crclient.Client) error

NginxIngressController - apply/delete nginx ingress controller objects

func ObservabilityPrecheck added in v1.0.0

ObservabilityPrecheck - runs precheck for CSM Observability

func ObservabilityTopology added in v1.0.0

func ObservabilityTopology(ctx context.Context, isDeleting bool, op utils.OperatorConfig, cr csmv1.ContainerStorageModule, ctrlClient client.Client) error

ObservabilityTopology - delete or update topology objects

func OtelCollector added in v1.0.0

func OtelCollector(ctx context.Context, isDeleting bool, op utils.OperatorConfig, cr csmv1.ContainerStorageModule, ctrlClient client.Client) error

OtelCollector - delete or update otel collector objects

func PowerFlexMetrics added in v1.0.0

func PowerFlexMetrics(ctx context.Context, isDeleting bool, op utils.OperatorConfig, cr csmv1.ContainerStorageModule, ctrlClient client.Client, k8sClient kubernetes.Interface) error

PowerFlexMetrics - delete or update powerflex metrics objects

func PowerMaxMetrics added in v1.3.0

func PowerMaxMetrics(ctx context.Context, isDeleting bool, op utils.OperatorConfig, cr csmv1.ContainerStorageModule, ctrlClient client.Client, k8sClient kubernetes.Interface) error

PowerMaxMetrics - delete or update powermax metrics objects

func PowerScaleMetrics added in v1.0.0

func PowerScaleMetrics(ctx context.Context, isDeleting bool, op utils.OperatorConfig, cr csmv1.ContainerStorageModule, ctrlClient client.Client, k8sClient kubernetes.Interface) error

PowerScaleMetrics - delete or update powerscale metrics objects

func ReplicationInjectClusterRole added in v0.2.0

func ReplicationInjectClusterRole(clusterRole rbacv1.ClusterRole, cr csmv1.ContainerStorageModule, op utils.OperatorConfig) (*rbacv1.ClusterRole, error)

ReplicationInjectClusterRole - inject replication into clusterrole

func ReplicationInjectDeployment added in v0.2.0

ReplicationInjectDeployment - inject replication into deployment

func ReplicationManagerController added in v0.2.0

func ReplicationManagerController(ctx context.Context, isDeleting bool, op utils.OperatorConfig, cr csmv1.ContainerStorageModule, ctrlClient client.Client) error

ReplicationManagerController -

func ReplicationPrecheck added in v0.2.0

func ReplicationPrecheck(ctx context.Context, op utils.OperatorConfig, replica csmv1.Module, cr csmv1.ContainerStorageModule, r utils.ReconcileCSM) error

ReplicationPrecheck - runs precheck for CSM ReplicationPrecheck

func ResiliencyInjectClusterRole added in v1.2.0

func ResiliencyInjectClusterRole(clusterRole rbacv1.ClusterRole, cr csmv1.ContainerStorageModule, op utils.OperatorConfig, mode string) (*rbacv1.ClusterRole, error)

ResiliencyInjectClusterRole - inject resiliency into clusterrole

func ResiliencyInjectDaemonset added in v1.2.0

ResiliencyInjectDaemonset - inject resiliency into daemonset

func ResiliencyInjectDeployment added in v1.2.0

ResiliencyInjectDeployment - inject resiliency into deployment

func ResiliencyPrecheck added in v1.2.0

func ResiliencyPrecheck(ctx context.Context, op utils.OperatorConfig, resiliency csmv1.Module, cr csmv1.ContainerStorageModule, _ utils.ReconcileCSM) error

ResiliencyPrecheck - Resiliency module precheck for supported versions

func ReverseProxyPrecheck added in v1.2.0

func ReverseProxyPrecheck(ctx context.Context, op utils.OperatorConfig, revproxy csmv1.Module, cr csmv1.ContainerStorageModule, r utils.ReconcileCSM) error

ReverseProxyPrecheck - runs precheck for CSM ReverseProxy

func ReverseProxyServer added in v1.2.0

func ReverseProxyServer(ctx context.Context, isDeleting bool, op utils.OperatorConfig, cr csmv1.ContainerStorageModule, ctrlClient crclient.Client) error

ReverseProxyServer - apply/delete deployment objects

func UseBackupStorageLoc added in v1.4.0

func UseBackupStorageLoc(ctx context.Context, isDeleting bool, op utils.OperatorConfig, cr csmv1.ContainerStorageModule, ctrlClient crclient.Client) error

UseBackupStorageLoc - Apply/Delete velero-backupstoragelocation yaml from operator config

func VeleroCrdDeploy added in v1.4.0

func VeleroCrdDeploy(ctx context.Context, op utils.OperatorConfig, cr csmv1.ContainerStorageModule, ctrlClient crclient.Client) error

VeleroCrdDeploy - apply and delete Velero crds deployment

Types

type SupportedDriverParam

type SupportedDriverParam struct {
	PluginIdentifier              string
	DriverConfigParamsVolumeMount string
}

SupportedDriverParam -

Jump to

Keyboard shortcuts

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