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