Documentation
¶
Index ¶
- Constants
- Variables
- func CreateCSIDriver(ctx context.Context, identity string, dryRun bool, writer io.Writer) error
- func CreateControllerSecret(ctx context.Context, identity string, publicCertBytes, privateKeyBytes []byte, ...) error
- func CreateControllerService(ctx context.Context, generatedSelectorValue, identity string, dryRun bool) error
- func CreateConversionWebhookSecrets(ctx context.Context, identity string, dryRun bool, writer io.Writer) 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, writer io.Writer) error
- func CreateOrUpdateConversionCACertSecret(ctx context.Context, identity string, caCertBytes []byte, dryRun bool, ...) error
- func CreateOrUpdateConversionKeyPairSecret(ctx context.Context, identity string, publicCertBytes, privateKeyBytes []byte, ...) error
- func CreatePodSecurityPolicy(ctx context.Context, identity string, dryRun, enableDynamicDiscovery bool, ...) error
- func CreateRBACRoles(ctx context.Context, identity string, dryRun bool, writer io.Writer) error
- func CreateService(ctx context.Context, identity string, dryRun bool, writer io.Writer) error
- func CreateStorageClass(ctx context.Context, identity string, dryRun bool, writer io.Writer) 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 DeleteConversionSecrets(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 DeleteLegacyConversionDeployment(ctx context.Context, identity string) error
- func DeleteNamespace(ctx context.Context, identity string) error
- func DeletePodSecurityPolicy(ctx context.Context, identity string) error
- func DeleteService(ctx context.Context, identity string) error
- func DeleteStorageClass(ctx context.Context, identity string) error
- func GetConversionCABundle(ctx context.Context, identity string, dryRun bool) ([]byte, error)
- func RegisterDriveValidationRules(ctx context.Context, identity string, dryRun bool, writer io.Writer) error
- func RemoveRBACRoles(ctx context.Context, identity string) error
- type DryRunFormat
- type Installer
Constants ¶
const ( // quay.io/minio/csi-provisioner:v2.2.0-go1.17 CSIImageCSIProvisioner = "csi-provisioner@sha256:d4f94539565cf62aea57062b6a42c5156337003133fd3f51b93df9a789e69840" // quay.io/minio/csi-node-driver-registrar:v2.2.0-go1.17 CSIImageNodeDriverRegistrar = "csi-node-driver-registrar@sha256:843fb23b1a3fa1de986378b0b8c08c35f8e62499d386de8ec57801fd029afe6d" // quay.io/minio/livenessprobe:v2.2.0-go1.17 CSIImageLivenessProbe = "livenessprobe@sha256:928a80be4d363e0e438ff28dcdb00d8d674d3059c6149a8cda64ce6016a9a3f8" )
CSI provisioner images
const ( CreatedByLabel = "created-by" DirectCSIPluginName = "kubectl/direct-csi" AppNameLabel = "application-name" AppTypeLabel = "application-type" CSIDriver = "CSIDriver" DirectCSI = "direct.csi.min.io" )
Misc
const (
// ConversionWebhookPort denotes conversion webhook port.
ConversionWebhookPort = 30443
)
Variables ¶
var ( // ErrKubeVersionNotSupported denotes kubernetes version not supported error. ErrKubeVersionNotSupported = errors.New( utils.Red("Error") + "This version of kubernetes is not supported by direct-csi" + "Please upgrade your kubernetes installation and try again", ) )
Functions ¶
func CreateCSIDriver ¶
CreateCSIDriver creates CSI driver.
func CreateControllerSecret ¶
func CreateControllerSecret(ctx context.Context, identity string, publicCertBytes, privateKeyBytes []byte, dryRun bool) error
CreateControllerSecret creates controller secret.
func CreateControllerService ¶
func CreateControllerService(ctx context.Context, generatedSelectorValue, identity string, dryRun bool) error
CreateControllerService creates direct-csi controller service.
func CreateConversionWebhookSecrets ¶ added in v1.4.4
func CreateConversionWebhookSecrets(ctx context.Context, identity string, dryRun bool, writer io.Writer) error
CreateConversionWebhookSecrets creates conversion webhook secrets.
func CreateDaemonSet ¶
func CreateDaemonSet(ctx context.Context, identity string, directCSIContainerImage string, dryRun bool, registry, org string, loopBackOnly bool, nodeSelector map[string]string, tolerations []corev1.Toleration, seccompProfileName, apparmorProfileName string, enableDynamicDiscovery bool, writer io.Writer) error
CreateDaemonSet creates direct-csi daemonset.
func CreateDeployment ¶
func CreateDeployment(ctx context.Context, identity string, directCSIContainerImage string, dryRun bool, registry, org string, writer io.Writer) error
CreateDeployment creates direct-csi deployment.
func CreateNamespace ¶
CreateNamespace creates direct-csi namespace.
func CreateOrUpdateConversionCACertSecret ¶ added in v1.4.4
func CreateOrUpdateConversionCACertSecret(ctx context.Context, identity string, caCertBytes []byte, dryRun bool, writer io.Writer) error
CreateOrUpdateConversionCACertSecret creates/updates conversion CA certs secret.
func CreateOrUpdateConversionKeyPairSecret ¶ added in v1.4.4
func CreateOrUpdateConversionKeyPairSecret(ctx context.Context, identity string, publicCertBytes, privateKeyBytes []byte, dryRun bool, writer io.Writer) error
CreateOrUpdateConversionKeyPairSecret creates/updates conversion keypairs secret.
func CreatePodSecurityPolicy ¶
func CreatePodSecurityPolicy(ctx context.Context, identity string, dryRun, enableDynamicDiscovery bool, writer io.Writer) error
CreatePodSecurityPolicy creates pod security policy.
func CreateRBACRoles ¶
CreateRBACRoles creates SA, ClusterRole and CRBs
func CreateService ¶
CreateService creates direct-csi service.
func CreateStorageClass ¶
CreateStorageClass creates storage class.
func DeleteCSIDriver ¶
DeleteCSIDriver deletes direct-csi driver.
func DeleteControllerDeployment ¶
DeleteControllerDeployment deletes controller deployment.
func DeleteControllerSecret ¶
DeleteControllerSecret deletes controller secret.
func DeleteConversionSecrets ¶ added in v1.4.4
DeleteConversionSecrets deletes conversion secrets.
func DeleteDaemonSet ¶
DeleteDaemonSet deletes direct-csi daemonset.
func DeleteDeployment ¶
DeleteDeployment deletes deployment.
func DeleteDriveValidationRules ¶
DeleteDriveValidationRules deletes drive validation rules.
func DeleteLegacyConversionDeployment ¶ added in v1.4.4
DeleteLegacyConversionDeployment deletes legacy conversion deployment.
func DeleteNamespace ¶
DeleteNamespace deletes direct-csi namespace.
func DeletePodSecurityPolicy ¶ added in v1.4.4
DeletePodSecurityPolicy deletes pod security policy.
func DeleteService ¶
DeleteService deletes service.
func DeleteStorageClass ¶
DeleteStorageClass deletes storage class.
func GetConversionCABundle ¶
GetConversionCABundle gets conversion CA bundle.
Types ¶
type DryRunFormat ¶
type DryRunFormat string
DryRunFormat denotes dry run output format.
const ( DryRunFormatUnknown DryRunFormat = "" DryRunFormatYAML DryRunFormat = "yaml" DryRunFormatJSON DryRunFormat = "json" )
DryRun output formats.