Documentation ¶
Index ¶
- Constants
- func BuildConfig(master, kubeConfig string, f client.Factory) (*rest.Config, error)
- func CheckCSIInstalled(kubeClient kubernetes.Interface) (bool, bool, error)
- func CheckCSIVersion(containers []v1.Container) (bool, bool, error)
- func CheckError(err error)
- func CheckPluginImageRepo(kubeClient kubernetes.Interface, ns string, defaultImage string, ...) (string, error)
- func CheckVSphereCSIDriverVersion(kubeClient kubernetes.Interface) error
- func CheckVeleroVersion(kubeClient kubernetes.Interface, ns string) error
- func CompareVersion(currentVersion string, minVersion string) int
- 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)
- func GetVersionFromImage(containers []v1.Container, imageName string) string
- func GetVersionFromImageByContainerName(containers []v1.Container, containerName string) string
Constants ¶
View Source
const ( // the port where prometheus metrics are exposed DefaultMetricsAddress = ":8085" // server's client default qps and burst DefaultClientQPS float32 = 20.0 DefaultClientBurst int = 30 DefaultProfilerAddress = "localhost:6060" DefaultInsecureFlag bool = true DefaultVCConfigFromSecret bool = true DefaultBackupWorkers = 1 DefaultRetryIntervalStart = time.Second DefaultRetryIntervalMax = 5 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
func BuildConfig ¶ added in v1.1.0
func CheckCSIInstalled ¶ added in v1.1.0
func CheckCSIInstalled(kubeClient kubernetes.Interface) (bool, bool, error)
func CheckCSIVersion ¶ 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) error
func CheckVeleroVersion ¶ added in v1.1.0
func CheckVeleroVersion(kubeClient kubernetes.Interface, ns string) error
func CompareVersion ¶ added in v1.1.0
If currentVersion < minVersion, return -1 If currentVersion == minVersion, return 0 If currentVersion > minVersion, return 1 Assume input versions are both valid
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)
func GetVersionFromImage ¶ added in v1.1.0
Return version in the format: vX.Y.Z
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.