egressipam

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

View Source
const NamespaceAnnotation = "egressip-ipam-operator.redhat-cop.io/egressipam"
View Source
const NamespaceAssociationAnnotation = "egressip-ipam-operator.redhat-cop.io/egressips"

this is a comma-separated list of assigned ip address. There should be an IP from each of the CIDRs in the egressipam

Variables

This section is empty.

Functions

func GetHostHostSubnetEgressIPs

func GetHostHostSubnetEgressIPs(IPs []string) []ocpnetv1.HostSubnetEgressIP

func GetHostHostSubnetEgressIPsAsStrings

func GetHostHostSubnetEgressIPsAsStrings(IPs []ocpnetv1.HostSubnetEgressIP) []string

func GetHostSubnetCIDRs

func GetHostSubnetCIDRs(CIDRs []string) []ocpnetv1.HostSubnetEgressCIDR

func GetHostSubnetCIDRsAsStrings

func GetHostSubnetCIDRsAsStrings(CIDRs []ocpnetv1.HostSubnetEgressCIDR) []string

func GetNetNamespaceEgressIPs

func GetNetNamespaceEgressIPs(IPs []string) []ocpnetv1.NetNamespaceEgressIP

func GetNetNamespaceEgressIPsAsStrings

func GetNetNamespaceEgressIPsAsStrings(IPs []ocpnetv1.NetNamespaceEgressIP) []string

Types

type EgressIPAMReconciler

type EgressIPAMReconciler struct {
	util.ReconcilerBase
	Log logr.Logger
	// contains filtered or unexported fields
}

EgressIPAMReconciler reconciles a EgressIPAM object

func (*EgressIPAMReconciler) GetCredentialSecret

func (r *EgressIPAMReconciler) GetCredentialSecret(context context.Context) (*corev1.Secret, error)

GetCredentialSecret returs the credentials secret to be used to instantiate cloud providers

func (*EgressIPAMReconciler) GetInfrastructure

func (r *EgressIPAMReconciler) GetInfrastructure() *ocpconfigv1.Infrastructure

GetInfrastructure return the openshift infrastructure object, notice that this is looked up only once in the duration of the operatgro lifecyle and the it's cached.

func (*EgressIPAMReconciler) IsInitialized

func (r *EgressIPAMReconciler) IsInitialized(obj client.Object) bool

IsInitialized initislizes the instance, currently is simply adds a finalizer.

func (*EgressIPAMReconciler) IsValid

func (r *EgressIPAMReconciler) IsValid(obj client.Object) (bool, error)

IsValid check if the instance is valid. In particular it checks that the CIDRs and the reservedIPs can be parsed correctly

func (*EgressIPAMReconciler) Reconcile

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

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the EgressIPAM object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.0/pkg/reconcile

func (*EgressIPAMReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Directories

Path Synopsis
+kubebuilder:skip
+kubebuilder:skip

Jump to

Keyboard shortcuts

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