constants

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterTypeOpenShift = "openshift"
	ClusterTypeMinikube  = "minikube"
	ClusterTypeKind      = "kind"
)

Cluster type constants

Variables

SupportedClusterTypes defines all cluster types supported by Kruize

Functions

func GetKubePrometheusVersion

func GetKubePrometheusVersion(clusterType string) string

GetKubePrometheusVersion returns the appropriate kube-prometheus version based on cluster type

func IsValidClusterType

func IsValidClusterType(clusterType string) bool

IsValidClusterType checks if the given cluster type is supported (case-insensitive)

func NormalizeClusterType

func NormalizeClusterType(clusterType string) string

NormalizeClusterType converts user input to lowercase for internal use This allows case-insensitive cluster type matching (e.g., "OpenShift", "OPENSHIFT", "openshift" all work)

Types

This section is empty.

Jump to

Keyboard shortcuts

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