operconfig

package
v0.0.0-...-1c682a6 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 49 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ControllerName = "operconfig"

Variables

View Source
var ManifestPath = "./bindata"

ManifestPath 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

ResyncPeriod is 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 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) (*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