installer

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: AGPL-3.0 Imports: 25 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"

	ConversionWebhookSecretName = "conversionwebhookcerts"
)

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")))
	ErrEmptyCABundle = errors.New("CA bundle is empty")
)

Functions

func CreateCSIDriver

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

func CreateControllerSecret added in v1.1.0

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

func CreateControllerService added in v1.1.0

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

func CreateConversionCASecret added in v1.3.0

func CreateConversionCASecret(ctx context.Context, identity string, caCertBytes []byte, dryRun bool) error

func CreateConversionDeployment added in v1.3.0

func CreateConversionDeployment(ctx context.Context, identity string, directCSIContainerImage string, dryRun bool, registry, org string) error

func CreateConversionSecret added in v1.3.0

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

func CreateConversionService added in v1.3.0

func CreateConversionService(ctx context.Context, generatedSelectorValue, identity string, dryRun bool) error

func CreateDaemonSet

func CreateDaemonSet(ctx context.Context, identity string, directCSIContainerImage string, dryRun bool, registry, org string, loopBackOnly bool) error

func CreateDeployment

func CreateDeployment(ctx context.Context, identity string, directCSIContainerImage string, dryRun bool, registry, org string) error

func CreateNamespace

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

func CreateRBACRoles

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

CreateRBACRoles creates SA, ClusterRole and CRBs

func CreateService

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

func CreateStorageClass

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

func DeleteCSIDriver

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

func DeleteControllerDeployment added in v1.3.0

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

func DeleteControllerSecret added in v1.3.0

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

func DeleteConversionDeployment added in v1.3.0

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

func DeleteConversionSecret added in v1.3.0

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

func DeleteDaemonSet

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

func DeleteDeployment

func DeleteDeployment(ctx context.Context, identity, name 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 DeleteService

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

func DeleteStorageClass

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

func GetConversionCABundle added in v1.3.0

func GetConversionCABundle() ([]byte, error)

func GetConversionServiceName added in v1.3.0

func GetConversionServiceName() string

func NewRandomString

func NewRandomString(length int) string

func RegisterDriveValidationRules added in v1.1.0

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

func RemoveRBACRoles

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

RemoveRBACRoles deletes SA, ClusterRole and CRBs

func SanitizeName added in v1.3.0

func SanitizeName(s string) string

Exported

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