operconfig

package
v0.0.0-...-e750244 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 58 Imported by: 0

Documentation

Index

Constants

View Source
const ControllerName = "operconfig"

Variables

View Source
var ManifestPath = "./bindata"

ManifestPaths is the path to the manifest templates bad, but there's no way to pass configuration to the reconciler right now

View Source
var ResyncPeriod = 3 * time.Minute

The periodic resync interval. We will re-run the reconciliation logic, even if the network configuration hasn't changed.

Functions

func Add

Add creates a new OperConfig Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

func AppliedConfiguration

func AppliedConfiguration(applied *operv1.Network) (*uns.Unstructured, error)

AppliedConfiguration renders the ConfigMap in which we store the configuration we've applied.

func GetAppliedConfiguration

func GetAppliedConfiguration(ctx context.Context, client crclient.Client, name string) (*operv1.NetworkSpec, error)

GetAppliedConfiguration retrieves the configuration we applied. Returns nil with no error if no previous configuration was observed.

Types

type NodeEgressIpConfig

type NodeEgressIpConfig struct {
	Interface string
	IfAddr    map[string]string
	Capacity  map[string]int
}

type OVNMigrationNodeAnnotation

type OVNMigrationNodeAnnotation struct {
	EgressCIDRs []string
}

type ReconcileOperConfig

type ReconcileOperConfig struct {
	// contains filtered or unexported fields
}

ReconcileOperConfig reconciles a Network.operator.openshift.io object

func (*ReconcileOperConfig) ClusterNetworkStatus

func (r *ReconcileOperConfig) ClusterNetworkStatus(ctx context.Context, operConfig *operv1.Network, bootstrapResult *bootstrap.BootstrapResult) (*uns.Unstructured, error)

ClusterNetworkStatus generates the cluster config Status based on the operator config.

func (*ReconcileOperConfig) MergeClusterConfig

func (r *ReconcileOperConfig) MergeClusterConfig(ctx context.Context, operConfig *operv1.Network, clusterConfig *configv1.Network) error

MergeClusterConfig merges in the existing cluster config in to the operator config, overwriting any changes to the managed fields.

func (*ReconcileOperConfig) Reconcile

func (r *ReconcileOperConfig) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

Reconcile updates the state of the cluster to match that which is desired in the operator configuration (Network.operator.openshift.io)

func (*ReconcileOperConfig) UpdateOperConfig

func (r *ReconcileOperConfig) UpdateOperConfig(ctx context.Context, operConfig *operv1.Network) error

Jump to

Keyboard shortcuts

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