machineops

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OperationConditionCompleted = "Completed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterInfo

type ClusterInfo struct {
	APIServer      string
	CACertBase64   string
	ClusterDNS     string
	KubeVersion    string
	ProviderLabels map[string]string
}

ClusterInfo holds the cluster-level data needed to build host replacement cloud-init.

func ResolveClusterInfo

func ResolveClusterInfo(ctx context.Context, apiServerEndpoint string, k kubernetes.Interface) (*ClusterInfo, error)

ResolveClusterInfo resolves cluster bootstrap details for HostReplace.

type MachineOperationReconciler

type MachineOperationReconciler struct {
	client.Client
	Providers                 []Provider
	SiteName                  string
	ProviderName              string
	MaxConcurrentReconciles   int
	Now                       func() metav1.Time
	ClusterInfo               *ClusterInfo
	KubeClient                kubernetes.Interface
	APIServerEndpoint         string
	CredentialSecretNamespace string
}

MachineOperationReconciler reconciles MachineOperation objects that target externally controlled machines.

func (*MachineOperationReconciler) Reconcile

func (*MachineOperationReconciler) SetupWithManager

func (r *MachineOperationReconciler) SetupWithManager(mgr ctrl.Manager) error

type OperationAuth added in v0.1.8

type OperationAuth = publicmachineops.OperationAuth

OperationAuth is the provider-facing credential material resolved for an operation.

type OperationRequest

type OperationRequest = publicmachineops.OperationRequest

OperationRequest is the generic provider-facing view of a MachineOperation.

type OperationResult added in v0.1.6

type OperationResult = publicmachineops.OperationResult

OperationResult describes provider-side changes that must be reflected after execution.

type Provider

type Provider = publicmachineops.Provider

Provider executes MachineOperation requests for a specific external provider.

Directories

Path Synopsis
providers

Jump to

Keyboard shortcuts

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