controllers

package
v0.0.0-...-9331f55 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2023 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Overview

Package controllers implements k8s controller functionality for antrea.

Index

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) Reconcile

func (r *AntreaConfigReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL