Documentation ¶
Index ¶
Constants ¶
View Source
const ( // OpenshiftMachineAPINamespaceName is the name of the OpenShift // Machine API namespace. OpenshiftMachineAPINamespaceName = "openshift-machine-api" // TestClusterIDValue is the clusterID in the test environment. TestClusterIDValue = "cluster-test-id" // MachineRoleLabelName is the name for the machine role label. MachineRoleLabelName = "machine.openshift.io/cluster-api-machine-role" // MachineTypeLabelName is the name for the machine type label. MachineTypeLabelName = "machine.openshift.io/cluster-api-machine-type" )
Variables ¶
This section is empty.
Functions ¶
func Coalesce ¶
func Coalesce[T comparable](value *T, defaultValue T) T
Coalesce returns the first value (value) provided it is a non-zero value for the type, otherwise it returns a the second value (defaultValue).
func NewMachineRoleLabels ¶
NewMachineRoleLabels creates a new map of standard Machine labels for the given role.
Types ¶
type ControlPlaneMachineSetTemplateBuilder ¶
type ControlPlaneMachineSetTemplateBuilder interface {
BuildTemplate() machinev1.ControlPlaneMachineSetTemplate
}
ControlPlaneMachineSetTemplateBuilder builds a ControlPlaneMachineSetTemplate. This is used to create templates for embedding within a ControlPlaneMachineSet.
type OpenShiftMachineV1Beta1FailureDomainsBuilder ¶
type OpenShiftMachineV1Beta1FailureDomainsBuilder interface {
BuildFailureDomains() machinev1.FailureDomains
}
OpenShiftMachineV1Beta1FailureDomainsBuilder builds a FailureDomains. This is used for setting the failure domains in the OpenShift machine template.
type RawExtensionBuilder ¶
type RawExtensionBuilder interface {
BuildRawExtension() *runtime.RawExtension
}
RawExtensionBuilder builds a raw extension. This is used to create generic provider specs for embedding within Machines.
Click to show internal directories.
Click to hide internal directories.