Documentation
¶
Index ¶
- func Add(mgr manager.Manager, opts options.AddOptions) error
- func CRDPoolsToOperator(crds []crdv1.IPPool) []operatorv1.IPPool
- func FromProjectCalicoV1(p *operatorv1.IPPool, crd crdv1.IPPool)
- func ToProjectCalicoV1(p operatorv1.IPPool) (*crdv1.IPPool, error)
- func ValidatePools(instance *operator.Installation) error
- type Reconciler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CRDPoolsToOperator ¶
func CRDPoolsToOperator(crds []crdv1.IPPool) []operatorv1.IPPool
func FromProjectCalicoV1 ¶ added in v1.39.0
func FromProjectCalicoV1(p *operatorv1.IPPool, crd crdv1.IPPool)
FromProjectCalicoV1 populates the IP pool with the data from the given crd.projectcalico.org/v1 IP pool. It is the direct inverse of ToProjectCalicoV1, and should be updated with every new field added to the IP pool structure.
func ToProjectCalicoV1 ¶ added in v1.39.0
func ToProjectCalicoV1(p operatorv1.IPPool) (*crdv1.IPPool, error)
ToProjectCalicoV1 converts an IPPool to a crd.projectcalico.org/v1 IPPool resource.
func ValidatePools ¶
func ValidatePools(instance *operator.Installation) error
ValidatePools validates the IP pools specified in the Installation object.
Types ¶
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
func (*Reconciler) Reconcile ¶
func (r *Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
Reconcile reconciles IP pools in the cluster.
- Query desired IP pools (from Installation) - Query existing IP pools owned by this controller - Reconcile the differences
Click to show internal directories.
Click to hide internal directories.