controllers

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnnotationBase          = "machine-node-linker.github.com"
	InternalIPAnnotation    = "internal-ip"
	InternalDNSAnnotation   = "internal-dns"
	HostnameAnnotation      = "hostname"
	ProviderStateAnnotation = "provider-state"
	PhaseAnnotation         = "manage-phase"
)

Variables

View Source
var (
	//Provides hostname match for migrations from machine-csr-noop operator
	//Matches hostnames in the format of AWS ip based hostname assignment
	// Ex. ip-192-168-1-150
	LegacyHostnameRegex = regexp.MustCompile("ip(-(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}")
)

Functions

This section is empty.

Types

type MachineReconciler

type MachineReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

MachineReconciler reconciles a Machine object

func (*MachineReconciler) AddStatusAddressesFromAnnotations added in v0.3.17

func (r *MachineReconciler) AddStatusAddressesFromAnnotations(annotations map[string]string) ([]corev1.NodeAddress, error)

Create a slice of NodeAddress objects based on annotations using machine-node-linker.github.com/ prefix

func (*MachineReconciler) AddStatusAddressesFromHostname added in v0.3.17

func (r *MachineReconciler) AddStatusAddressesFromHostname(machineName string) ([]corev1.NodeAddress, error)

Create a slice of NodeAddress objects based on a hostname matching ip-x-x-x-x

func (*MachineReconciler) Reconcile

func (r *MachineReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

+kubebuilder:rbac:groups=machine.openshift.io,resources=machines,verbs=get;list;watch;update;patch +kubebuilder:rbac:groups=machine.openshift.io,resources=machines/status,verbs=get;update;patch +kubebuilder:rbac:groups=machine.openshift.io,resources=machines/finalizers,verbs=update

func (*MachineReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type NodeReconciler

type NodeReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

NodeReconciler reconciles a Node object

func (*NodeReconciler) SetupWithManager

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

+kubebuilder:rbac:groups=,resources=nodes,verbs=get;list;watch;patch;update +kubebuilder:rbac:groups=,resources=nodes/status,verbs=get;update;patch +kubebuilder:rbac:groups=,resources=nodes/finalizers,verbs=update SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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