Documentation
¶
Index ¶
- type Extension
- func (e *Extension) ExtendInputs(ctx context.Context, ci controller.Inputs) (controller.Inputs, []certificatemanagement.KeyPairInterface, error)
- func (e *Extension) Modify(c render.Component, ri render.Inputs) render.Component
- func (e *Extension) ValidateAndDefault(cr *operatorv1.ManagementClusterConnection) error
- func (e *Extension) Watches(c ctrlruntime.Controller, cs kubernetes.Interface) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Extension ¶
type Extension struct {
// contains filtered or unexported fields
}
Extension is the Calico Enterprise behavior for the clusterconnection controller and the guardian components it renders.
func New ¶
func New(variant operatorv1.ProductVariant) *Extension
New returns the clusterconnection extension for the variant the operator resolved.
func (*Extension) ExtendInputs ¶
func (e *Extension) ExtendInputs(ctx context.Context, ci controller.Inputs) (controller.Inputs, []certificatemanagement.KeyPairInterface, error)
ExtendInputs computes the Enterprise-specific Guardian inputs the controller reads back: the managed cluster version (CNXVersion) and whether the license permits the domain-based egress network policy. It creates no certificates, so it returns no managed keypairs. The OSS controller path supplies its own defaults when this hook is absent.
func (*Extension) Modify ¶
Modify dispatches over the components the clusterconnection controller renders.
func (*Extension) ValidateAndDefault ¶
func (e *Extension) ValidateAndDefault(cr *operatorv1.ManagementClusterConnection) error
ValidateAndDefault accepts the Enterprise-only fields and defaults impersonation to empty lists so Guardian renders a stable config.
func (*Extension) Watches ¶
func (e *Extension) Watches(c ctrlruntime.Controller, cs kubernetes.Interface) error
Watches registers the resources only Enterprise guardian renders from.