installer

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CreatedByLabel      = "created-by"
	DirectCSIPluginName = "kubectl-direct_csi"

	CSIDriver = "CSIDriver"
	DirectCSI = "direct.csi.min.io"

	AdmissionWebhookSecretName = "validationwebhookcerts"

	ValidationWebhookConfigName = "drive.validation.controller"

	// Finalizers
	DirectCSIFinalizerDeleteProtection = "/delete-protection"
)

Variables

View Source
var (
	ErrKubeVersionNotSupported = errors.New(
		fmt.Sprintf("%s: This version of kubernetes is not supported by direct-csi. Please upgrade your kubernetes installation and try again", utils.Red("ERR")))
)

Functions

func CreateCSIDriver

func CreateCSIDriver(ctx context.Context, identity string) error

func CreateControllerSecret added in v1.1.0

func CreateControllerSecret(ctx context.Context, identity string, publicCertBytes, privateKeyBytes []byte) error

func CreateControllerService added in v1.1.0

func CreateControllerService(ctx context.Context, generatedSelectorValue, identity string) error

func CreateDaemonSet

func CreateDaemonSet(ctx context.Context, identity string, directCSIContainerImage string) error

func CreateDeployment

func CreateDeployment(ctx context.Context, identity string, directCSIContainerImage string) error

func CreateNamespace

func CreateNamespace(ctx context.Context, identity string) error

func CreateRBACRoles

func CreateRBACRoles(ctx context.Context, identity string) error

CreateRBACRoles creates SA, ClusterRole and CRBs

func CreateService

func CreateService(ctx context.Context, identity string) error

func CreateStorageClass

func CreateStorageClass(ctx context.Context, identity string) error

func DeleteCSIDriver

func DeleteCSIDriver(ctx context.Context, identity string) error

func DeleteDaemonSet

func DeleteDaemonSet(ctx context.Context, identity string) error

func DeleteDeployment

func DeleteDeployment(ctx context.Context, identity string) error

func DeleteDriveValidationRules added in v1.1.0

func DeleteDriveValidationRules(ctx context.Context, identity string) error

func DeleteNamespace

func DeleteNamespace(ctx context.Context, identity string) error

func DeleteSecrets added in v1.1.0

func DeleteSecrets(ctx context.Context, identity string) error

func DeleteService

func DeleteService(ctx context.Context, identity string) error

func DeleteStorageClass

func DeleteStorageClass(ctx context.Context, identity string) error

func NewRandomString

func NewRandomString(length int) string

func RegisterDriveValidationRules added in v1.1.0

func RegisterDriveValidationRules(ctx context.Context, identity string) error

func RemoveRBACRoles

func RemoveRBACRoles(ctx context.Context, identity string) error

RemoveRBACRoles deletes SA, ClusterRole and CRBs

func StringWithCharset

func StringWithCharset(length int, charset string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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