Documentation ¶
Overview ¶
Package controllers implements k8s controller functionality for antrea.
Index ¶
- type AntreaConfigReconciler
- func (r *AntreaConfigReconciler) ClusterToAntreaConfig(o client.Object) []ctrl.Request
- func (r *AntreaConfigReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *AntreaConfigReconciler) ReconcileAntreaConfig(ctx context.Context, antreaConfig *cniv1alpha2.AntreaConfig, ...) (_ ctrl.Result, retErr error)
- func (r *AntreaConfigReconciler) ReconcileAntreaConfigDataValue(ctx context.Context, antreaConfig *cniv1alpha2.AntreaConfig, ...) (retErr error)
- func (r *AntreaConfigReconciler) ReconcileAntreaConfigNormal(ctx context.Context, antreaConfig *cniv1alpha2.AntreaConfig, ...) (retErr error)
- func (r *AntreaConfigReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
- type AntreaConfigSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AntreaConfigReconciler ¶
type AntreaConfigReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme Config addonconfig.AntreaConfigControllerConfig }
AntreaConfigReconciler reconciles a AntreaConfig object
func (*AntreaConfigReconciler) ClusterToAntreaConfig ¶
func (r *AntreaConfigReconciler) ClusterToAntreaConfig(o client.Object) []ctrl.Request
ClusterToAntreaConfig returns a list of Requests with AntreaConfig ObjectKey
func (*AntreaConfigReconciler) ReconcileAntreaConfig ¶
func (r *AntreaConfigReconciler) ReconcileAntreaConfig( ctx context.Context, antreaConfig *cniv1alpha2.AntreaConfig, cluster *clusterapiv1beta1.Cluster, log logr.Logger) (_ ctrl.Result, retErr error)
ReconcileAntreaConfig reconciles AntreaConfig CR
func (*AntreaConfigReconciler) ReconcileAntreaConfigDataValue ¶
func (r *AntreaConfigReconciler) ReconcileAntreaConfigDataValue( ctx context.Context, antreaConfig *cniv1alpha2.AntreaConfig, cluster *clusterapiv1beta1.Cluster, log logr.Logger) (retErr error)
ReconcileAntreaConfigDataValue reconciles AntreaConfig data values secret
func (*AntreaConfigReconciler) ReconcileAntreaConfigNormal ¶
func (r *AntreaConfigReconciler) ReconcileAntreaConfigNormal( ctx context.Context, antreaConfig *cniv1alpha2.AntreaConfig, cluster *clusterapiv1beta1.Cluster, log logr.Logger) (retErr error)
ReconcileAntreaConfigNormal reconciles AntreaConfig by creating/patching data values secret
func (*AntreaConfigReconciler) SetupWithManager ¶
func (r *AntreaConfigReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
SetupWithManager sets up the controller with the Manager.
type AntreaConfigSpec ¶
type AntreaConfigSpec struct { InfraProvider string `yaml:"infraProvider"` Antrea antrea `yaml:"antrea,omitempty"` AntreaNsx antreaNsx `yaml:"antreaNsx,omitempty"` }
AntreaConfigSpec defines the desired state of AntreaConfig
func MapAntreaConfigSpec ¶
func MapAntreaConfigSpec(cluster *clusterv1beta1.Cluster, config *cniv1alpha2.AntreaConfig) (*AntreaConfigSpec, error)
MapAntreaConfigSpec is a handy function to use outside the pkg.
Click to show internal directories.
Click to hide internal directories.