Documentation ¶
Index ¶
- Constants
- func GetCSIDriver(ctx context.Context, cr csmv1.ContainerStorageModule, ...) (*storagev1.CSIDriver, error)
- func GetConfigMap(ctx context.Context, cr csmv1.ContainerStorageModule, ...) (*corev1.ConfigMap, error)
- func GetController(ctx context.Context, cr csmv1.ContainerStorageModule, ...) (*utils.ControllerYAML, error)
- func GetMDMFromSecret(ctx context.Context, cr *csmv1.ContainerStorageModule, ct client.Client) (string, error)
- func GetNode(ctx context.Context, cr csmv1.ContainerStorageModule, ...) (*utils.NodeYAML, error)
- func GetUpgradeInfo(ctx context.Context, operatorConfig utils.OperatorConfig, ...) (string, error)
- func IsIpv4Regex(ipAddress string) bool
- func ModifyPowerScaleCR(yamlString string, cr csmv1.ContainerStorageModule, fileType string) string
- func ModifyPowerflexCR(yamlString string, cr csmv1.ContainerStorageModule, fileType string) string
- func ModifyPowermaxCR(yamlString string, cr csmv1.ContainerStorageModule, fileType string) string
- func ModifyPowerstoreCR(yamlString string, cr csmv1.ContainerStorageModule, fileType string) string
- func ModifyUnityCR(yamlString string, cr csmv1.ContainerStorageModule, fileType string) string
- func ModifyUnityConfigMap(_ context.Context, cr csmv1.ContainerStorageModule) map[string]string
- func PrecheckPowerFlex(ctx context.Context, cr *csmv1.ContainerStorageModule, ...) error
- func PrecheckPowerMax(ctx context.Context, cr *csmv1.ContainerStorageModule, ...) error
- func PrecheckPowerScale(ctx context.Context, cr *csmv1.ContainerStorageModule, ...) error
- func PrecheckPowerStore(ctx context.Context, cr *csmv1.ContainerStorageModule, ...) error
- func PrecheckUnity(ctx context.Context, cr *csmv1.ContainerStorageModule, ...) error
- func ValidateIPAddress(ipAdd string) (string, bool)
Constants ¶
const ( // PowerFlexPluginIdentifier - PowerFlexPluginIdentifier = "powerflex" // PowerFlexConfigParamsVolumeMount - PowerFlexConfigParamsVolumeMount = "vxflexos-config-params" // CsiSdcEnabled - Flag to enable/disable SDC CsiSdcEnabled = "<X_CSI_SDC_ENABLED>" // CsiApproveSdcEnabled - Flag to enable/disable SDC approval CsiApproveSdcEnabled = "<X_CSI_APPROVE_SDC_ENABLED>" // CsiRenameSdcEnabled - Flag to enable/disable rename of SDC CsiRenameSdcEnabled = "<X_CSI_RENAME_SDC_ENABLED>" // CsiPrefixRenameSdc - String to rename SDC CsiPrefixRenameSdc = "<X_CSI_RENAME_SDC_PREFIX>" // CsiVxflexosMaxVolumesPerNode - Max volumes that the controller could schedule on a node CsiVxflexosMaxVolumesPerNode = "<X_CSI_MAX_VOLUMES_PER_NODE>" // CsiVxflexosQuotaEnabled - Flag to enable/disable setting of quota for NFS volumes CsiVxflexosQuotaEnabled = "<X_CSI_QUOTA_ENABLED>" // CsiPowerflexExternalAccess - External Access flag CsiPowerflexExternalAccess = "<X_CSI_POWERFLEX_EXTERNAL_ACCESS>" // CsiDebug - Debug flag CsiDebug = "<X_CSI_DEBUG>" )
const ( // PowerMaxPluginIdentifier used to identify powermax plugin PowerMaxPluginIdentifier = "powermax" // PowerMaxConfigParamsVolumeMount used to identify config param volume mount PowerMaxConfigParamsVolumeMount = "powermax-config-params" // CSIPmaxManagedArray and following used for replacing user values in config files CSIPmaxManagedArray = "<X_CSI_MANAGED_ARRAY>" CSIPmaxEndpoint = "<X_CSI_POWERMAX_ENDPOINT>" CSIPmaxClusterPrefix = "<X_CSI_K8S_CLUSTER_PREFIX>" CSIPmaxDebug = "<X_CSI_POWERMAX_DEBUG>" CSIPmaxPortGroup = "<X_CSI_POWERMAX_PORTGROUPS>" CSIPmaxProtocol = "<X_CSI_TRANSPORT_PROTOCOL>" CSIPmaxNodeTemplate = "<X_CSI_IG_NODENAME_TEMPLATE>" CSIPmaxModifyHostname = "<X_CSI_IG_MODIFY_HOSTNAME>" CSIPmaxHealthMonitor = "<X_CSI_HEALTH_MONITOR_ENABLED>" CSIPmaxTopology = "<X_CSI_TOPOLOGY_CONTROL_ENABLED>" CSIPmaxVsphere = "<X_CSI_VSPHERE_ENABLED>" CSIPmaxVspherePG = "<X_CSI_VSPHERE_PORTGROUP>" CSIPmaxVsphereHostname = "<X_CSI_VSPHERE_HOSTNAME>" CSIPmaxVsphereHost = "<X_CSI_VCENTER_HOST>" CSIPmaxChap = "<X_CSI_POWERMAX_ISCSI_ENABLE_CHAP>" // CsiPmaxMaxVolumesPerNode - Maximum volumes that the controller can schedule on the node CsiPmaxMaxVolumesPerNode = "<X_CSI_MAX_VOLUMES_PER_NODE>" )
Constant to be used for powermax deployment
const ( // PowerScalePluginIdentifier - PowerScalePluginIdentifier = "powerscale" // PowerScaleConfigParamsVolumeMount - PowerScaleConfigParamsVolumeMount = "csi-isilon-config-params" // #nosec G101 )
const ( // PowerStorePluginIdentifier - PowerStorePluginIdentifier = "powerstore" // PowerStoreConfigParamsVolumeMount - PowerStoreConfigParamsVolumeMount = "csi-powerstore-config-params" // CsiPowerstoreNodeNamePrefix - Node Name Prefix CsiPowerstoreNodeNamePrefix = "<X_CSI_POWERSTORE_NODE_NAME_PREFIX>" // CsiPowerstoreMaxVolumesPerNode - Maximum Volumes Per Node CsiPowerstoreMaxVolumesPerNode = "<X_CSI_POWERSTORE_MAX_VOLUMES_PER_NODE>" // CsiFcPortFilterFilePath - Fc Port Filter File Path CsiFcPortFilterFilePath = "<X_CSI_FC_PORTS_FILTER_FILE_PATH>" // CsiNfsAcls - variable setting the permissions on NFS mount directory CsiNfsAcls = "<X_CSI_NFS_ACLS>" // CsiHealthMonitorEnabled - health monitor flag CsiHealthMonitorEnabled = "<X_CSI_HEALTH_MONITOR_ENABLED>" // CsiPowerstoreEnableChap - CHAP flag CsiPowerstoreEnableChap = "<X_CSI_POWERSTORE_ENABLE_CHAP>" // CsiPowerstoreExternalAccess - External Access flag CsiPowerstoreExternalAccess = "<X_CSI_POWERSTORE_EXTERNAL_ACCESS>" // CsiStorageCapacityEnabled - Storage capacity flag CsiStorageCapacityEnabled = "false" )
const ( // UnityPluginIdentifier - Unity Plugin Identifier UnityPluginIdentifier = "unity" // UnityConfigParamsVolumeMount - Volume mount UnityConfigParamsVolumeMount = "csi-unity-config-params" // CsiLogLevel - Defines the log level CsiLogLevel = "<CSI_LOG_LEVEL>" // AllowRWOMultipodAccess - Defines if multiple pod should have access to a volume AllowRWOMultipodAccess = "<X_CSI_UNITY_ALLOW_MULTI_POD_ACCESS>" // MaxUnityVolumesPerNode - Max volumes per node MaxUnityVolumesPerNode = "<MAX_UNITY_VOLUMES_PER_NODE>" // SyncNodeInfoTimeInterval - Interval to sync node info SyncNodeInfoTimeInterval = "<X_CSI_UNITY_SYNC_NODEINFO_INTERVAL>" // TenantName - Name of the tenant TenantName = "<TENANT_NAME>" // AllowedNetworks - list of networks that can be used for NFS traffic AllowedNetworks = "<X_CSI_ALLOWED_NETWORKS>" )
Variables ¶
This section is empty.
Functions ¶
func GetCSIDriver ¶
func GetCSIDriver(ctx context.Context, cr csmv1.ContainerStorageModule, operatorConfig utils.OperatorConfig, driverName csmv1.DriverType) (*storagev1.CSIDriver, error)
GetCSIDriver get driver
func GetConfigMap ¶
func GetConfigMap(ctx context.Context, cr csmv1.ContainerStorageModule, operatorConfig utils.OperatorConfig, driverName csmv1.DriverType) (*corev1.ConfigMap, error)
GetConfigMap get configmap
func GetController ¶
func GetController(ctx context.Context, cr csmv1.ContainerStorageModule, operatorConfig utils.OperatorConfig, driverName csmv1.DriverType) (*utils.ControllerYAML, error)
GetController get controller yaml
func GetMDMFromSecret ¶ added in v1.0.0
func GetMDMFromSecret(ctx context.Context, cr *csmv1.ContainerStorageModule, ct client.Client) (string, error)
GetMDMFromSecret - Get MDM value from secret
func GetNode ¶
func GetNode(ctx context.Context, cr csmv1.ContainerStorageModule, operatorConfig utils.OperatorConfig, driverType csmv1.DriverType, filename string) (*utils.NodeYAML, error)
GetNode get node yaml
func GetUpgradeInfo ¶ added in v0.2.0
func GetUpgradeInfo(ctx context.Context, operatorConfig utils.OperatorConfig, driverType csmv1.DriverType, oldVersion string) (string, error)
GetUpgradeInfo -
func IsIpv4Regex ¶ added in v1.0.0
IsIpv4Regex - Matches Ipaddress with regex and returns error if the Ip Address doesn't match regex
func ModifyPowerScaleCR ¶ added in v1.2.0
func ModifyPowerScaleCR(yamlString string, cr csmv1.ContainerStorageModule, fileType string) string
ModifyPowerScaleCR - It modifies the CR of powerscale/isilon (currently for Storage Capacity Tracking
func ModifyPowerflexCR ¶ added in v1.1.0
func ModifyPowerflexCR(yamlString string, cr csmv1.ContainerStorageModule, fileType string) string
ModifyPowerflexCR - Set environment variables provided in CR
func ModifyPowermaxCR ¶ added in v1.2.0
func ModifyPowermaxCR(yamlString string, cr csmv1.ContainerStorageModule, fileType string) string
ModifyPowermaxCR -
func ModifyPowerstoreCR ¶ added in v1.1.0
func ModifyPowerstoreCR(yamlString string, cr csmv1.ContainerStorageModule, fileType string) string
ModifyPowerstoreCR -
func ModifyUnityCR ¶ added in v1.2.0
func ModifyUnityCR(yamlString string, cr csmv1.ContainerStorageModule, fileType string) string
ModifyUnityCR - Configuring CR parameters
func ModifyUnityConfigMap ¶ added in v1.2.0
ModifyUnityConfigMap - Modify the Configmap parameters
func PrecheckPowerFlex ¶ added in v1.0.0
func PrecheckPowerFlex(ctx context.Context, cr *csmv1.ContainerStorageModule, operatorConfig utils.OperatorConfig, ct client.Client) error
PrecheckPowerFlex do input validation
func PrecheckPowerMax ¶ added in v1.2.0
func PrecheckPowerMax(ctx context.Context, cr *csmv1.ContainerStorageModule, operatorConfig utils.OperatorConfig, ct client.Client) error
PrecheckPowerMax do input validation
func PrecheckPowerScale ¶
func PrecheckPowerScale(ctx context.Context, cr *csmv1.ContainerStorageModule, operatorConfig utils.OperatorConfig, ct client.Client) error
PrecheckPowerScale do input validation
func PrecheckPowerStore ¶ added in v1.1.0
func PrecheckPowerStore(ctx context.Context, cr *csmv1.ContainerStorageModule, operatorConfig utils.OperatorConfig, ct client.Client) error
PrecheckPowerStore do input validation
func PrecheckUnity ¶ added in v1.2.0
func PrecheckUnity(ctx context.Context, cr *csmv1.ContainerStorageModule, operatorConfig utils.OperatorConfig, ct client.Client) error
PrecheckUnity do input validation
func ValidateIPAddress ¶ added in v1.0.0
ValidateIPAddress validates that a proper set of IPs has been provided
Types ¶
This section is empty.