Documentation ¶
Index ¶
- Constants
- func GetHostHostSubnetEgressIPs(IPs []string) []ocpnetv1.HostSubnetEgressIP
- func GetHostHostSubnetEgressIPsAsStrings(IPs []ocpnetv1.HostSubnetEgressIP) []string
- func GetHostSubnetCIDRs(CIDRs []string) []ocpnetv1.HostSubnetEgressCIDR
- func GetHostSubnetCIDRsAsStrings(CIDRs []ocpnetv1.HostSubnetEgressCIDR) []string
- func GetNetNamespaceEgressIPs(IPs []string) []ocpnetv1.NetNamespaceEgressIP
- func GetNetNamespaceEgressIPsAsStrings(IPs []ocpnetv1.NetNamespaceEgressIP) []string
- type EgressIPAMReconciler
- func (r *EgressIPAMReconciler) GetCredentialSecret(context context.Context) (*corev1.Secret, error)
- func (r *EgressIPAMReconciler) GetInfrastructure() *ocpconfigv1.Infrastructure
- func (r *EgressIPAMReconciler) IsInitialized(obj client.Object) bool
- func (r *EgressIPAMReconciler) IsValid(obj client.Object) (bool, error)
- func (r *EgressIPAMReconciler) Reconcile(context context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *EgressIPAMReconciler) SetupWithManager(mgr ctrl.Manager) error
Constants ¶
const NamespaceAnnotation = "egressip-ipam-operator.redhat-cop.io/egressipam"
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 ¶
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.