datanetwork

package
v2.0.8+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

View Source
const ControllerName = "datanetwork-controller"
View Source
const FinalizerName = "datanetwork.finalizers.windriver.com"

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

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

Types

type ReconcileDataNetwork

type ReconcileDataNetwork struct {
	client.Client

	cloudManager.CloudManager
	common.ReconcilerErrorHandler
	common.ReconcilerEventLogger
	// contains filtered or unexported fields
}

ReconcileResource reconciles a DataNetwork object

func (*ReconcileDataNetwork) FindExistingResource

func (r *ReconcileDataNetwork) FindExistingResource(client *gophercloud.ServiceClient, instance *starlingxv1.DataNetwork) (network *datanetworks.DataNetwork, err error)

FindExistingResource attempts to re-use the existing resource referenced by the ID value stored in the status or to find another resource with a matching name.

func (*ReconcileDataNetwork) Reconcile

func (r *ReconcileDataNetwork) Reconcile(request reconcile.Request) (reconcile.Result, error)

Reconcile reads that state of the cluster for a DataNetwork object and makes changes based on the state read and what is in the DataNetwork.Spec +kubebuilder:rbac:groups="",resources=events,verbs=create;patch +kubebuilder:rbac:groups=starlingx.windriver.com,resources=datanetworks,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=starlingx.windriver.com,resources=datanetworks/status,verbs=get;update;patch

func (*ReconcileDataNetwork) ReconcileNew

ReconcileNew is a method which handles reconciling a new data resource and creates the corresponding system resource thru the system API.

func (*ReconcileDataNetwork) ReconcileResource

func (r *ReconcileDataNetwork) ReconcileResource(client *gophercloud.ServiceClient, instance *starlingxv1.DataNetwork) error

ReconcileResource interacts with the system API in order to reconcile the state of a data network with the state stored in the k8s database.

func (*ReconcileDataNetwork) ReconcileUpdated

func (r *ReconcileDataNetwork) ReconcileUpdated(client *gophercloud.ServiceClient, instance *starlingxv1.DataNetwork, network *datanetworks.DataNetwork) error

ReconcileUpdated is a method which handles reconciling an existing data resource and updates the corresponding system resource thru the system API to match the desired state of the resource.

func (*ReconcileDataNetwork) ReconciledDeleted

func (r *ReconcileDataNetwork) ReconciledDeleted(client *gophercloud.ServiceClient, instance *starlingxv1.DataNetwork, network *datanetworks.DataNetwork) error

ReconcileNew is a method which handles reconciling a new data resource and creates the corresponding system resource thru the system API.

func (*ReconcileDataNetwork) StopAfterInSync added in v1.0.0

func (r *ReconcileDataNetwork) StopAfterInSync() bool

StopAfterInSync determines whether the reconciler should continue processing change requests after the configuration has been reconciled a first time.

Jump to

Keyboard shortcuts

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