Documentation ¶
Index ¶
- Constants
- Variables
- type MachineReconciler
- func (r *MachineReconciler) AddStatusAddressesFromAnnotations(annotations map[string]string) ([]corev1.NodeAddress, error)
- func (r *MachineReconciler) AddStatusAddressesFromHostname(machineName string) ([]corev1.NodeAddress, error)
- func (r *MachineReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *MachineReconciler) SetupWithManager(mgr ctrl.Manager) error
- type NodeReconciler
Constants ¶
const ( AnnotationBase = "machine-node-linker.github.com" InternalIPAnnotation = "internal-ip" InternalDNSAnnotation = "internal-dns" HostnameAnnotation = "hostname" ProviderStateAnnotation = "provider-state" PhaseAnnotation = "manage-phase" )
Variables ¶
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 ¶
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 ¶
+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 ¶
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.