operator

package
v0.2.1-0...-d19bdda Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: Apache-2.0 Imports: 52 Imported by: 10

Documentation

Index

Constants

View Source
const (
	MachineWebhookPort    = 8440
	MachineSetWebhookPort = 8443
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controllers added in v0.2.0

type Controllers struct {
	Provider           string
	MachineSet         string
	NodeLink           string
	MachineHealthCheck string
	KubeRBACProxy      string
	TerminationHandler string
}

type Images added in v0.2.0

type Images struct {
	MachineAPIOperator            string `json:"machineAPIOperator"`
	ClusterAPIControllerAWS       string `json:"clusterAPIControllerAWS"`
	ClusterAPIControllerOpenStack string `json:"clusterAPIControllerOpenStack"`
	ClusterAPIControllerLibvirt   string `json:"clusterAPIControllerLibvirt"`
	ClusterAPIControllerBareMetal string `json:"clusterAPIControllerBareMetal"`
	ClusterAPIControllerAzure     string `json:"clusterAPIControllerAzure"`
	ClusterAPIControllerGCP       string `json:"clusterAPIControllerGCP"`
	ClusterAPIControllerVSphere   string `json:"clusterAPIControllerVSphere"`
	ClusterAPIControllerIBMCloud  string `json:"clusterAPIControllerIBMCloud"`
	ClusterAPIControllerPowerVS   string `json:"clusterAPIControllerPowerVS"`
	ClusterAPIControllerNutanix   string `json:"clusterAPIControllerNutanix"`
	KubeRBACProxy                 string `json:"kubeRBACProxy"`
}

Images allows build systems to inject images for MAO components

type Operator

type Operator struct {
	// contains filtered or unexported fields
}

Operator defines machine api operator.

func New

func New(
	namespace, name string,
	imagesFile string,

	config string,

	deployInformer appsinformersv1.DeploymentInformer,
	daemonsetInformer appsinformersv1.DaemonSetInformer,
	clusterOperatorInformer configinformersv1.ClusterOperatorInformer,
	featureGateInformer configinformersv1.FeatureGateInformer,
	clusterVersionInformer configinformersv1.ClusterVersionInformer,
	validatingWebhookInformer admissioninformersv1.ValidatingWebhookConfigurationInformer,
	mutatingWebhookInformer admissioninformersv1.MutatingWebhookConfigurationInformer,
	proxyInformer configinformersv1.ProxyInformer,
	kubeClient kubernetes.Interface,
	osClient osclientset.Interface,
	machineClient machineclientset.Interface,
	dynamicClient dynamic.Interface,

	eventRecorder record.EventRecorder,
	recorder events.Recorder,
) (*Operator, error)

New returns a new machine config operator.

func (*Operator) Run

func (optr *Operator) Run(workers int, stopCh <-chan struct{})

Run runs the machine config operator.

type OperatorConfig added in v0.2.0

type OperatorConfig struct {
	TargetNamespace string `json:"targetNamespace"`
	Controllers     Controllers
	Proxy           *configv1.Proxy
	PlatformType    configv1.PlatformType
	Features        map[string]bool
}

OperatorConfig contains configuration for MAO

type Provider added in v0.2.0

type Provider string

type StatusReason added in v0.2.0

type StatusReason string

StatusReason is a MixedCaps string representing the reason for a status condition change.

const (
	ReasonAsExpected   StatusReason = "AsExpected"
	ReasonInitializing StatusReason = "Initializing"
	ReasonSyncing      StatusReason = "SyncingResources"
	ReasonSyncFailed   StatusReason = "SyncingFailed"
)

The default set of status change reasons.

Jump to

Keyboard shortcuts

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