operator

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

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 49 Imported by: 12 modules, 10 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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"`
	ClusterAPIControllerAlibaba   string `json:"clusterAPIControllerAlibaba"`
	ClusterAPIControllerAWS       string `json:"clusterAPIControllerAWS"`
	ClusterAPIControllerOpenStack string `json:"clusterAPIControllerOpenStack"`
	ClusterAPIControllerLibvirt   string `json:"clusterAPIControllerLibvirt"`
	ClusterAPIControllerBareMetal string `json:"clusterAPIControllerBareMetal"`
	ClusterAPIControllerAzure     string `json:"clusterAPIControllerAzure"`
	ClusterAPIControllerGCP       string `json:"clusterAPIControllerGCP"`
	ClusterAPIControllerOvirt     string `json:"clusterAPIControllerOvirt"`
	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
}

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