Documentation ¶
Index ¶
- Constants
- func Add(mgr manager.Manager) error
- type ReconcileDataNetwork
- func (r *ReconcileDataNetwork) FindExistingResource(client *gophercloud.ServiceClient, instance *starlingxv1.DataNetwork) (network *datanetworks.DataNetwork, err error)
- func (r *ReconcileDataNetwork) Reconcile(request reconcile.Request) (reconcile.Result, error)
- func (r *ReconcileDataNetwork) ReconcileNew(client *gophercloud.ServiceClient, instance *starlingxv1.DataNetwork) (*datanetworks.DataNetwork, error)
- func (r *ReconcileDataNetwork) ReconcileResource(client *gophercloud.ServiceClient, instance *starlingxv1.DataNetwork) error
- func (r *ReconcileDataNetwork) ReconcileUpdated(client *gophercloud.ServiceClient, instance *starlingxv1.DataNetwork, ...) error
- func (r *ReconcileDataNetwork) ReconciledDeleted(client *gophercloud.ServiceClient, instance *starlingxv1.DataNetwork, ...) error
- func (r *ReconcileDataNetwork) StopAfterInSync() bool
Constants ¶
const ControllerName = "datanetwork-controller"
const FinalizerName = "datanetwork.finalizers.windriver.com"
Variables ¶
This section is empty.
Functions ¶
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 ¶
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 ¶
func (r *ReconcileDataNetwork) ReconcileNew(client *gophercloud.ServiceClient, instance *starlingxv1.DataNetwork) (*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) 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.