cmd

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// the port where prometheus metrics are exposed
	DefaultMetricsAddress = ":8085"

	// server's client default qps and burst
	DefaultClientQPS   float32 = 100.0
	DefaultClientBurst int     = 100

	DefaultProfilerAddress         = "localhost:6060"
	DefaultInsecureFlag       bool = true
	DefaultVCConfigFromSecret bool = true

	DefaultBackupWorkers = 1
)

Variables

This section is empty.

Functions

func BuildConfig added in v1.1.0

func BuildConfig(master, kubeConfig string, f client.Factory) (*rest.Config, error)

func CheckError

func CheckError(err error)

CheckError prints err to stderr and exits with code 1 if err is not nil. Otherwise, it is a no-op.

func CheckPluginImageRepo added in v1.1.0

func CheckPluginImageRepo(kubeClient kubernetes.Interface, ns string, defaultImage string, serverType string) (string, error)

func CheckVSphereCSIDriverVersion added in v1.1.0

func CheckVSphereCSIDriverVersion(kubeClient kubernetes.Interface, clusterFlavor constants.ClusterFlavor) error

func CheckVeleroVersion added in v1.1.0

func CheckVeleroVersion(kubeClient kubernetes.Interface, ns string) error

func CreateFeatureStateConfigMap added in v1.1.0

func CreateFeatureStateConfigMap(kubeClient kubernetes.Interface, features []string, veleroNs string) error

func Exit

func Exit(msg string, args ...interface{})

Exit prints msg (with optional args), plus a newline, to stderr and exits with code 1.

func GetCompatibleRepoAndTagFromPluginImage added in v1.1.0

func GetCompatibleRepoAndTagFromPluginImage(kubeClient kubernetes.Interface, namespace string, targetContainer string) (string, error)

func GetFeatureFlagsFromImage added in v1.1.0

func GetFeatureFlagsFromImage(containers []v1.Container, containerName string) ([]string, error)

func GetVeleroFeatureFlags added in v1.1.0

func GetVeleroFeatureFlags(kubeClient kubernetes.Interface, ns string) ([]string, error)

func GetVeleroVersion added in v1.1.0

func GetVeleroVersion(kubeClient kubernetes.Interface, ns string) (string, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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