shared

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PFlexConfigVersion         string = "v2.13.0"
	DowngradeConfigVersion     string = "v2.12.0"
	ConfigVersion              string = "v2.11.0"
	UpgradeConfigVersion       string = "v2.11.0"
	JumpUpgradeConfigVersion   string = "v2.12.0"
	JumpDowngradeConfigVersion string = "v2.11.0"
	OldConfigVersion           string = "v2.2.0"
	BadConfigVersion           string = "v0"
	PStoreConfigVersion        string = "v2.12.0"
	UnityConfigVersion         string = "v2.12.0"
	PScaleConfigVersion        string = "v2.12.0"
	PmaxConfigVersion          string = "v2.12.0"
	AuthServerConfigVersion    string = "v1.12.0"
	AppMobConfigVersion        string = "v1.1.0"
)

ConfigVersions used for all unit tests

Variables

This section is empty.

Functions

func MakeCSM

func MakeCSM(name, ns, configVersion string) csmv1.ContainerStorageModule

MakeCSM returns a csm from given params

func MakeConfigMap added in v1.2.0

func MakeConfigMap(name, ns, _ string) *corev1.ConfigMap

MakeConfigMap returns a driver pre-req configmap array-config

func MakeDriver

func MakeDriver(configVersion, skipCertValid string) csmv1.Driver

MakeDriver returns a driver object from given params

func MakeModule added in v1.0.0

func MakeModule(configVersion string) csmv1.Module

MakeModule returns a module object from given params

func MakeModuleCSM added in v1.0.0

func MakeModuleCSM(name, ns, configVersion string) csmv1.ContainerStorageModule

MakeModuleCSM returns a csm from given params

func MakeNode added in v1.8.0

func MakeNode(name, ns string) corev1.Node

MakeNode returns a node object

func MakePod

func MakePod(name, ns string) corev1.Pod

MakePod returns a pod object

func MakeReverseProxyModule added in v1.2.0

func MakeReverseProxyModule(_ string) csmv1.Module

MakeReverseProxyModule returns a csireverseproxy object

func MakeSecret

func MakeSecret(name, ns, _ string) *corev1.Secret

MakeSecret returns a driver pre-req secret array-config

func MakeSecretPowerFlex added in v1.8.0

func MakeSecretPowerFlex(name, ns, _ string) *corev1.Secret

MakeSecretPowerFlex returns a pflex driver pre-req secret

func MakeSecretPowerFlexMultiZoneInvalid added in v1.8.0

func MakeSecretPowerFlexMultiZoneInvalid(name, ns, _ string) *corev1.Secret

MakeSecretPowerFlexMultiZoneInvalid returns a pflex driver pre-req secret with invalid zone config

func MakeSecretPowerFlexWithZone added in v1.8.0

func MakeSecretPowerFlexWithZone(name, ns, _ string) *corev1.Secret

MakeSecretPowerFlexWithZone returns a driver pre-req secret with zoning specified

func MakeSecretWithJSON added in v1.0.0

func MakeSecretWithJSON(name string, ns string, configFile string) *corev1.Secret

MakeSecretWithJSON returns a driver pre-req secret array-config

Types

type ErrorInjector

type ErrorInjector interface {
	ShouldFail(method string, obj runtime.Object) error
}

ErrorInjector is used for testing errors for the fake client

type StorageKey

type StorageKey struct {
	Namespace string
	Name      string
	Kind      string
}

StorageKey is used to store a runtime object. It's used for both clientgo client and controller runtime client

func GetKey

func GetKey(obj runtime.Object) (StorageKey, error)

GetKey returns the storageKey based on the given runtime object

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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