constants

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: Apache-2.0 Imports: 2 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 GetDefaultAutotuneImage added in v0.0.4

func GetDefaultAutotuneImage() string

GetDefaultAutotuneImage returns the cached default Autotune image. The image is resolved once at package initialization from environment variables or defaults.

func GetDefaultUIImage added in v0.0.4

func GetDefaultUIImage() string

GetDefaultUIImage returns the cached default Autotune UI image. The image is resolved once at package initialization from environment variables or defaults.

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