clusterinfo

package
v0.0.0-...-00d472e Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MachineOSIDLabel = "machine.openshift.io/os-id"
	MachineSetLabel  = "machine.openshift.io/cluster-api-machineset"
	MachineRoleLabel = "machine.openshift.io/cluster-api-machine-role"
	MachineTypeLabel = "machine.openshift.io/cluster-api-machine-type"
	// MachineE2ELabel signifies that the Machine was created as part of the WMCO e2e tests
	MachineE2ELabel     = "e2e-wmco"
	MachineAPINamespace = "openshift-machine-api"
	UserDataSecretName  = "windows-user-data"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenShift

OpenShift contains clients for interacting with the OpenShift API

func GetOpenShift

func GetOpenShift() (*OpenShift, error)

GetOpenShift creates client for the current OpenShift cluster. If KUBECONFIG env var is set, it is used to create client, otherwise it uses in-cluster config.

func (*OpenShift) GetInfrastructure

func (o *OpenShift) GetInfrastructure() (*config.Infrastructure, error)

GetInfrastructure returns the information of current Infrastructure referred by the OpenShift client or an error.

func (*OpenShift) ProxyEnabled

func (o *OpenShift) ProxyEnabled() (bool, error)

ProxyEnabled queries the Proxy resource to see if a cluster-wide proxy is enabled in this environment

Jump to

Keyboard shortcuts

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