Documentation ¶
Index ¶
- Constants
- Variables
- func CreateCSIDriver(ctx context.Context, identity string, dryRun bool) error
- func CreateControllerSecret(ctx context.Context, identity string, publicCertBytes, privateKeyBytes []byte, ...) error
- func CreateControllerService(ctx context.Context, generatedSelectorValue, identity string, dryRun bool) error
- func CreateConversionDeployment(ctx context.Context, identity string, directCSIContainerImage string, ...) error
- func CreateDaemonSet(ctx context.Context, identity string, directCSIContainerImage string, ...) error
- func CreateDeployment(ctx context.Context, identity string, directCSIContainerImage string, ...) error
- func CreateNamespace(ctx context.Context, identity string, dryRun bool) error
- func CreateOrUpdateConversionCASecret(ctx context.Context, identity string, caCertBytes []byte, dryRun bool) error
- func CreateOrUpdateConversionDeployment(ctx context.Context, identity string, directCSIContainerImage string, ...) error
- func CreateOrUpdateConversionSecret(ctx context.Context, identity string, publicCertBytes, privateKeyBytes []byte, ...) error
- func CreateOrUpdateConversionService(ctx context.Context, generatedSelectorValue, identity string, dryRun bool) error
- func CreatePodSecurityPolicy(ctx context.Context, identity string, dryRun bool) error
- func CreateRBACRoles(ctx context.Context, identity string, dryRun bool) error
- func CreateService(ctx context.Context, identity string, dryRun bool) error
- func CreateStorageClass(ctx context.Context, identity string, dryRun bool) error
- func DeleteCSIDriver(ctx context.Context, identity string) error
- func DeleteControllerDeployment(ctx context.Context, identity string) error
- func DeleteControllerSecret(ctx context.Context, identity string) error
- func DeleteConversionDeployment(ctx context.Context, identity string) error
- func DeleteConversionSecret(ctx context.Context, identity string) error
- func DeleteConversionWebhookCertsSecret(ctx context.Context, identity string) error
- func DeleteDaemonSet(ctx context.Context, identity string) error
- func DeleteDeployment(ctx context.Context, identity, name string) error
- func DeleteDriveValidationRules(ctx context.Context, identity string) error
- func DeleteNamespace(ctx context.Context, identity string) error
- func DeleteService(ctx context.Context, identity string) error
- func DeleteStorageClass(ctx context.Context, identity string) error
- func ErrInstallationFailed(reason string, installer string) error
- func GetConversionCABundle(ctx context.Context, identity string, dryRun bool) ([]byte, error)
- func GetConversionServiceName() string
- func NewRandomString(length int) string
- func RegisterDriveValidationRules(ctx context.Context, identity string, dryRun bool) error
- func RemoveRBACRoles(ctx context.Context, identity string) error
- func StringWithCharset(length int, charset string) string
- func WaitForConversionDeployment(ctx context.Context, identity string)
- type DryRunFormat
- type InstallConfig
- func (i *InstallConfig) GetCSIProvisionerImage() string
- func (i *InstallConfig) GetDirectCSIContainerImage() string
- func (i *InstallConfig) GetDirectCSIContainerOrg() string
- func (i *InstallConfig) GetDirectCSIContainerRegistry() string
- func (i *InstallConfig) GetDryRunFormat() DryRunFormat
- func (i *InstallConfig) GetIdentity() string
- func (i *InstallConfig) GetLivenessProbeImage() string
- func (i *InstallConfig) GetNodeDriverRegistrarImage() string
- func (i *InstallConfig) PostProc(obj interface{}) error
- func (i *InstallConfig) SetDirectCSIContainerImage(directCSIContainerImage string)
- func (i *InstallConfig) SetDirectCSIContainerOrg(directCSIContainerOrg string)
- func (i *InstallConfig) SetDirectCSIContainerRegistry(directCSIContainerRegistry string)
- func (i *InstallConfig) SetDryRun()
- func (i *InstallConfig) SetDryRunFormat(format DryRunFormat)
- func (i *InstallConfig) SetIdentity(identity string)
- func (i *InstallConfig) SetLivenessProbeImage(livenessProbeImage string)
- func (i *InstallConfig) SetNodeDriverRegistrarImage(nodeDriverRegistrarImage string)
- func (i *InstallConfig) UnsetDryRun()
- type Installer
- type NSInstaller
- type SCInstaller
Constants ¶
View Source
const ( // quay.io/minio/csi-provisioner:v2.1.0 CSIImageCSIProvisioner = "csi-provisioner@sha256:4ca2ce98430ca0b87d5bc1a6d116ecdf1619cfe6db693d8d5aa438f6821e0e80" // quay.io/minio/csi-node-driver-registrar:v2.1.0 CSIImageNodeDriverRegistrar = "csi-node-driver-registrar@sha256:9f9ce5c98e44d66b8ad34351616fdf78765b9f24c3c3b496cee784dadf63f528" // quay.io/minio/livenessprobe:v2.1.0 CSIImageLivenessProbe = "livenessprobe@sha256:6f056a175ff4ead772edc9bf99aef74c275a83c51868dd26090dcb623425a742" )
CSI provisioner images
View Source
const ( CreatedByLabel = "created-by" DirectCSIPluginName = "kubectl/direct-csi" AppNameLabel = "application-name" AppTypeLabel = "application-type" CSIDriver = "CSIDriver" DirectCSI = "direct.csi.min.io" )
Misc
View Source
const ( AdmissionWebhookSecretName = "validationwebhookcerts" ValidationWebhookConfigName = "drive.validation.controller" // Finalizers DirectCSIFinalizerDeleteProtection = "/delete-protection" ConversionWebhookSecretName = "conversionwebhookcerts" )
View Source
const ( DryRunFormatUnknown DryRunFormat = "" DryRunFormatYAML = "yaml" DryRunFormatJSON = "json" )
Variables ¶
Functions ¶
func CreateCSIDriver ¶
func CreateControllerSecret ¶
func CreateControllerService ¶
func CreateDaemonSet ¶
func CreateDeployment ¶
func CreateNamespace ¶
func CreatePodSecurityPolicy ¶
func CreateRBACRoles ¶
CreateRBACRoles creates SA, ClusterRole and CRBs
func CreateStorageClass ¶
func DeleteControllerSecret ¶
func DeleteConversionSecret ¶
func ErrInstallationFailed ¶
func GetConversionCABundle ¶
func GetConversionServiceName ¶
func GetConversionServiceName() string
func NewRandomString ¶
func RemoveRBACRoles ¶
RemoveRBACRoles deletes SA, ClusterRole and CRBs
func StringWithCharset ¶
Types ¶
type DryRunFormat ¶
type DryRunFormat string
type InstallConfig ¶
type InstallConfig struct { Identity string // DirectCSIContainerImage properties DirectCSIContainerImage string DirectCSIContainerOrg string DirectCSIContainerRegistry string // CSIImage properties CSIProvisionerImage string NodeDriverRegistrarImage string LivenessProbeImage string // Mode switches LoopBackMode bool // dry-run properties DryRun bool DryRunFormat DryRunFormat // contains filtered or unexported fields }
func NewInstallConfig ¶
func NewInstallConfig(identity string) *InstallConfig
func (*InstallConfig) GetCSIProvisionerImage ¶
func (i *InstallConfig) GetCSIProvisionerImage() string
func (*InstallConfig) GetDirectCSIContainerImage ¶
func (i *InstallConfig) GetDirectCSIContainerImage() string
func (*InstallConfig) GetDirectCSIContainerOrg ¶
func (i *InstallConfig) GetDirectCSIContainerOrg() string
func (*InstallConfig) GetDirectCSIContainerRegistry ¶
func (i *InstallConfig) GetDirectCSIContainerRegistry() string
func (*InstallConfig) GetDryRunFormat ¶
func (i *InstallConfig) GetDryRunFormat() DryRunFormat
func (*InstallConfig) GetIdentity ¶
func (i *InstallConfig) GetIdentity() string
func (*InstallConfig) GetLivenessProbeImage ¶
func (i *InstallConfig) GetLivenessProbeImage() string
func (*InstallConfig) GetNodeDriverRegistrarImage ¶
func (i *InstallConfig) GetNodeDriverRegistrarImage() string
func (*InstallConfig) PostProc ¶
func (i *InstallConfig) PostProc(obj interface{}) error
func (*InstallConfig) SetDirectCSIContainerImage ¶
func (i *InstallConfig) SetDirectCSIContainerImage(directCSIContainerImage string)
func (*InstallConfig) SetDirectCSIContainerOrg ¶
func (i *InstallConfig) SetDirectCSIContainerOrg(directCSIContainerOrg string)
func (*InstallConfig) SetDirectCSIContainerRegistry ¶
func (i *InstallConfig) SetDirectCSIContainerRegistry(directCSIContainerRegistry string)
func (*InstallConfig) SetDryRun ¶
func (i *InstallConfig) SetDryRun()
func (*InstallConfig) SetDryRunFormat ¶
func (i *InstallConfig) SetDryRunFormat(format DryRunFormat)
func (*InstallConfig) SetIdentity ¶
func (i *InstallConfig) SetIdentity(identity string)
func (*InstallConfig) SetLivenessProbeImage ¶
func (i *InstallConfig) SetLivenessProbeImage(livenessProbeImage string)
func (*InstallConfig) SetNodeDriverRegistrarImage ¶
func (i *InstallConfig) SetNodeDriverRegistrarImage(nodeDriverRegistrarImage string)
func (*InstallConfig) UnsetDryRun ¶
func (i *InstallConfig) UnsetDryRun()
type NSInstaller ¶
type NSInstaller struct { *InstallConfig // contains filtered or unexported fields }
func NewNSInstaller ¶
func NewNSInstaller(i *InstallConfig, name string) (*NSInstaller, error)
type SCInstaller ¶
type SCInstaller struct { *InstallConfig // contains filtered or unexported fields }
func NewSCInstaller ¶
func NewSCInstaller(name string) *SCInstaller
func (*SCInstaller) Init ¶
func (sc *SCInstaller) Init(i *InstallConfig) error
Click to show internal directories.
Click to hide internal directories.