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 ¶
type OpenShift struct { Config *configClient.Clientset Operator operatorClient.OperatorV1Interface Machine mapiClient.MachineV1beta1Interface Monitoring monitoringClient.MonitoringV1Interface Route routeClient.RouteV1Interface K8s k8sclient.Interface Images imageClient.ImageV1Interface Olm versioned.Interface }
OpenShift contains clients for interacting with the OpenShift API
func GetOpenShift ¶
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 ¶
ProxyEnabled queries the Proxy resource to see if a cluster-wide proxy is enabled in this environment
Click to show internal directories.
Click to hide internal directories.