gitopsztphelper

package
v0.0.0-...-1f0e0a3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// HubName hub cluster name.
	HubName string
	// SpokeName spoke cluster name.
	SpokeName string
	// ZtpVersion ztp version.
	ZtpVersion string
	// AcmVersion Advanced cluster management version.
	AcmVersion string
	// TalmVersion talm version.
	TalmVersion string
)

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

func IsContainerExistInPod(pod *pod.Builder, containerName string) bool

IsContainerExistInPod check if a given container exists in a given pod.

func IsPodHealthy

func IsPodHealthy(pod *pod.Builder) bool

IsPodHealthy returns true if a given pod is healthy, otherwise false.

func IsVersionStringInRange

func IsVersionStringInRange(version, minimum, maximum string) bool

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.

Jump to

Keyboard shortcuts

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