Documentation ¶
Index ¶
- Variables
- func GetOperatorVersionFromCSV(client *clients.Settings, operatorName, operatorNamespace string) (string, error)
- func GetZtpVersionFromArgocd(client *clients.Settings, name string, namespace string) (string, error)
- func InitializeClients() error
- func IsContainerExistInPod(pod *pod.Builder, containerName string) bool
- func IsPodHealthy(pod *pod.Builder) bool
- func IsVersionStringInRange(version, minimum, maximum string) bool
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetOperatorVersionFromCSV ¶
func GetOperatorVersionFromCSV(client *clients.Settings, operatorName, operatorNamespace string) (string, error)
GetOperatorVersionFromCSV returns operator version from csv.
func GetZtpVersionFromArgocd ¶
func GetZtpVersionFromArgocd(client *clients.Settings, name string, namespace string) (string, error)
GetZtpVersionFromArgocd is used to fetch the version of the ztp-site-generator init container.
func InitializeClients ¶
func InitializeClients() error
InitializeClients initializes hub & spoke clients.
func IsContainerExistInPod ¶
IsContainerExistInPod check if a given container exists in a given pod.
func IsPodHealthy ¶
IsPodHealthy returns true if a given pod is healthy, otherwise false.
func IsVersionStringInRange ¶
IsVersionStringInRange can be used to check if a version string is between a specified min and max value. All the string inputs to this function should be dot separated positive intergers, e.g. "1.0.0" or "4.10". Each string inputs must be at least two dot separarted integers but may also be 3 or more.
Types ¶
This section is empty.