resourcebuilder

package
v0.0.0-...-af0b63d Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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

func NewMachineRoleLabels(role string) map[string]string

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.

Directories

Path Synopsis
apps
v1
cluster-api
config
v1
core
v1
machine
v1
Linter warns about duplicated code with OpenStack, GCP, and Azure FailureDomains builders.
Linter warns about duplicated code with OpenStack, GCP, and Azure FailureDomains builders.
meta
v1

Jump to

Keyboard shortcuts

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