types

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResourceProfiles

func ResourceProfiles() []string

func ResourceProfilesJoined

func ResourceProfilesJoined() string

Types

type ClusterType

type ClusterType int

ClusterType represents different types of Kubernetes clusters

const (
	// ClusterTypeUnknown represents an unidentified cluster type
	ClusterTypeUnknown ClusterType = iota
	// ClusterTypeInfraGKE represents a GKE cluster created via Infra.
	ClusterTypeInfraGKE
	// ClusterTypeInfraOpenShift4 represents an OpenShift 4 cluster
	ClusterTypeInfraOpenShift4
	// Generic OpenShift4 cluster (e.g. for prow CI)
	ClusterTypeOpenShift4
	// ClusterTypeKind represents a Kind (Kubernetes in Docker) cluster
	ClusterTypeKind
	// ClusterTypeMinikube represents a Minikube cluster
	ClusterTypeMinikube
	// ClusterTypeK3s represents a K3s cluster
	ClusterTypeK3s
	// ClusterTypeCRC represents a CRC (CodeReady Containers) cluster
	ClusterTypeCRC
)

func AllClusterTypes

func AllClusterTypes() []ClusterType

func (ClusterType) IsOpenShift

func (ct ClusterType) IsOpenShift() bool

func (ClusterType) String

func (ct ClusterType) String() string

String returns the string representation of a ClusterType

type Exposure

type Exposure int
const (
	ExposureNone Exposure = iota
	ExposureLoadBalancer
)

func (Exposure) MarshalYAML

func (e Exposure) MarshalYAML() (interface{}, error)

func (Exposure) String

func (e Exposure) String() string

func (*Exposure) ToUnstructuredConfig

func (e *Exposure) ToUnstructuredConfig() map[string]interface{}

ToUnstructuredConfig returns the exposure configuration.

func (*Exposure) UnmarshalYAML

func (e *Exposure) UnmarshalYAML(unmarshal func(interface{}) error) error

type ResourceProfile

type ResourceProfile int
const (
	ResourceProfileAcsDefaults ResourceProfile = iota
	ResourceProfileAuto
	ResourceProfileSmall
	ResourceProfileMedium
	ResourceProfileCI
)

func (ResourceProfile) MarshalYAML

func (r ResourceProfile) MarshalYAML() (interface{}, error)

func (ResourceProfile) String

func (r ResourceProfile) String() string

func (*ResourceProfile) UnmarshalYAML

func (r *ResourceProfile) UnmarshalYAML(unmarshal func(interface{}) error) error

Jump to

Keyboard shortcuts

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