ptpinterface

package
v2.0.8-4+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new PTPInterface 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 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

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

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

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

func (*ReconcilePtpInterface) ReconcileParamAdded

ReconcileParamAdded is a method which handles adding new Parameters to associate with an existing PTP interface

func (*ReconcilePtpInterface) ReconcileParamRemoved

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

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.

Jump to

Keyboard shortcuts

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