Documentation
¶
Index ¶
- func Add(mgr manager.Manager, opts options.ControllerOptions) error
- func CRDPoolsToOperator(crds []v3.IPPool) []operatorv1.IPPool
- func FromProjectCalico(p *operatorv1.IPPool, crd v3.IPPool)
- func ToProjectCalico(p operatorv1.IPPool) (*v3.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 []v3.IPPool) []operatorv1.IPPool
func FromProjectCalico ¶
func FromProjectCalico(p *operatorv1.IPPool, crd v3.IPPool)
FromProjectCalico populates the IP pool with the data from the given projectcalico.org/v3 IP pool. It is the direct inverse of ToProjectCalicoV1, and should be updated with every new field added to the IP pool structure.
func ToProjectCalico ¶
func ToProjectCalico(p operatorv1.IPPool) (*v3.IPPool, error)
ToProjectCalico converts an operator IPPool to a projectcalico.org/v3 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.