Documentation
¶
Index ¶
- Constants
- func Add(mgr manager.Manager) error
- type ReconcilePtpInstance
- func (r *ReconcilePtpInstance) FindExistingPTPInstance(client *gophercloud.ServiceClient, instance *starlingxv1.PtpInstance) (found *ptpinstances.PTPInstance, err error)
- func (r *ReconcilePtpInstance) Reconcile(request reconcile.Request) (reconcile.Result, error)
- func (r *ReconcilePtpInstance) ReconcileNew(client *gophercloud.ServiceClient, instance *starlingxv1.PtpInstance) (*ptpinstances.PTPInstance, error)
- func (r *ReconcilePtpInstance) ReconcileParamAdded(client *gophercloud.ServiceClient, params []string, ...) (*ptpinstances.PTPInstance, error)
- func (r *ReconcilePtpInstance) ReconcileParamRemoved(client *gophercloud.ServiceClient, params []string, ...) (*ptpinstances.PTPInstance, error)
- func (r *ReconcilePtpInstance) ReconcileResource(client *gophercloud.ServiceClient, instance *starlingxv1.PtpInstance) error
- func (r *ReconcilePtpInstance) ReconcileUpdated(client *gophercloud.ServiceClient, instance *starlingxv1.PtpInstance, ...) error
- func (r *ReconcilePtpInstance) ReconciledDeleted(client *gophercloud.ServiceClient, instance *starlingxv1.PtpInstance, ...) error
- func (r *ReconcilePtpInstance) StopAfterInSync() bool
Constants ¶
const ControllerName = "ptpinstance-controller"
const FinalizerName = "ptpinstance.finalizers.windriver.com"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ReconcilePtpInstance ¶
type ReconcilePtpInstance struct { client.Client cloudManager.CloudManager common.ReconcilerErrorHandler common.ReconcilerEventLogger // contains filtered or unexported fields }
ReconcilePtpInstance reconciles a PtpInstance object
func (*ReconcilePtpInstance) FindExistingPTPInstance ¶
func (r *ReconcilePtpInstance) FindExistingPTPInstance(client *gophercloud.ServiceClient, instance *starlingxv1.PtpInstance) (found *ptpinstances.PTPInstance, err error)
FindExistingPTPInstance attempts to find the existing PTP instance referenced by the ID value stored in the status or to find another resource with a matching name.
func (*ReconcilePtpInstance) Reconcile ¶
Reconcile reads that state of the cluster for a PTPInstance object and makes changes based on the state read and what is in the PtpInstance.Spec +kubebuilder:rbac:groups="",resources=events,verbs=create;patch +kubebuilder:rbac:groups=starlingx.windriver.com,resources=ptpinstances,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=starlingx.windriver.com,resources=ptpinstances/status,verbs=get;update;patch
func (*ReconcilePtpInstance) ReconcileNew ¶
func (r *ReconcilePtpInstance) ReconcileNew(client *gophercloud.ServiceClient, instance *starlingxv1.PtpInstance) (*ptpinstances.PTPInstance, error)
ReconcileNew is a method which handles reconciling a new data resource and creates the corresponding system resource thru the system API.
func (*ReconcilePtpInstance) ReconcileParamAdded ¶
func (r *ReconcilePtpInstance) ReconcileParamAdded(client *gophercloud.ServiceClient, params []string, i *ptpinstances.PTPInstance) (*ptpinstances.PTPInstance, error)
ReconcileParamAdded is a method which handles adding new Parameters to associate with an existing PTP instance
func (*ReconcilePtpInstance) ReconcileParamRemoved ¶
func (r *ReconcilePtpInstance) ReconcileParamRemoved(client *gophercloud.ServiceClient, params []string, i *ptpinstances.PTPInstance) (*ptpinstances.PTPInstance, error)
ReconcileParamAdded is a method which handles removing new Parameters from an existing PTP instance
func (*ReconcilePtpInstance) ReconcileResource ¶
func (r *ReconcilePtpInstance) ReconcileResource(client *gophercloud.ServiceClient, instance *starlingxv1.PtpInstance) error
ReconcileResource interacts with the system API in order to reconcile the state of a ptp instance with the state stored in the k8s database.
func (*ReconcilePtpInstance) ReconcileUpdated ¶
func (r *ReconcilePtpInstance) ReconcileUpdated(client *gophercloud.ServiceClient, instance *starlingxv1.PtpInstance, existing *ptpinstances.PTPInstance) 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 (*ReconcilePtpInstance) ReconciledDeleted ¶
func (r *ReconcilePtpInstance) ReconciledDeleted(client *gophercloud.ServiceClient, instance *starlingxv1.PtpInstance, i *ptpinstances.PTPInstance) error
ReconciledDeleted is a method which handles reconciling a new data resource and creates the corresponding system resource thru the system API.
func (*ReconcilePtpInstance) StopAfterInSync ¶
func (r *ReconcilePtpInstance) StopAfterInSync() bool
StopAfterInSync determines whether the reconciler should continue processing change requests after the configuration has been reconciled a first time.