Documentation ¶
Index ¶
- Constants
- func BuildConfig(master, kubeConfig string, f client.Factory) (*rest.Config, error)
- func CheckError(err error)
- func CheckPluginImageRepo(kubeClient kubernetes.Interface, ns string, defaultImage string, ...) (string, error)
- func CheckVSphereCSIDriverVersion(kubeClient kubernetes.Interface, clusterFlavor constants.ClusterFlavor) error
- func CheckVeleroVersion(kubeClient kubernetes.Interface, ns string) error
- func CreateFeatureStateConfigMap(kubeClient kubernetes.Interface, features []string, veleroNs string) error
- func Exit(msg string, args ...interface{})
- func GetCompatibleRepoAndTagFromPluginImage(kubeClient kubernetes.Interface, namespace string, targetContainer string) (string, error)
- func GetFeatureFlagsFromImage(containers []v1.Container, containerName string) ([]string, error)
- func GetVeleroFeatureFlags(kubeClient kubernetes.Interface, ns string) ([]string, error)
- func GetVeleroVersion(kubeClient kubernetes.Interface, ns string) (string, error)
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 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 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 GetFeatureFlagsFromImage ¶ added in v1.1.0
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.
Click to show internal directories.
Click to hide internal directories.