Version: v0.0.0-...-1432459 Latest Latest

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

Go to latest
Published: Sep 24, 2021 License: Apache-2.0 Imports: 29 Imported by: 0




This section is empty.


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.


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 k8sclient.Client, name string) (*operv1.NetworkSpec, error)

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


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) 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(operConfig *operv1.Network) error

type ReconcilePods

type ReconcilePods struct {
	// contains filtered or unexported fields

ReconcilePods watches for updates to specified resources and then updates its StatusManager

func (*ReconcilePods) Reconcile

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

Reconcile updates the ClusterOperator.Status to match the current state of the watched Deployments/DaemonSets

func (*ReconcilePods) SetResources

func (r *ReconcilePods) SetResources(resources []types.NamespacedName)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL