Documentation ¶
Index ¶
- Constants
- Variables
- func Add(mgr manager.Manager, status *statusmanager.StatusManager, c cnoclient.Client) error
- func AppliedConfiguration(applied *operv1.Network) (*uns.Unstructured, error)
- func GetAppliedConfiguration(ctx context.Context, client crclient.Client, name string) (*operv1.NetworkSpec, error)
- type NodeEgressIpConfig
- type OVNMigrationNodeAnnotation
- type ReconcileOperConfig
- func (r *ReconcileOperConfig) ClusterNetworkStatus(ctx context.Context, operConfig *operv1.Network, ...) (*uns.Unstructured, error)
- func (r *ReconcileOperConfig) MergeClusterConfig(ctx context.Context, operConfig *operv1.Network, ...) error
- func (r *ReconcileOperConfig) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
- func (r *ReconcileOperConfig) UpdateOperConfig(ctx context.Context, operConfig *operv1.Network) error
Constants ¶
const ControllerName = "operconfig"
Variables ¶
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
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 ¶
func Add(mgr manager.Manager, status *statusmanager.StatusManager, c cnoclient.Client) error
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 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)