ptpinstance

package
v2.0.8-5+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

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

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

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

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

func (*ReconcilePtpInstance) ReconcileParamAdded

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

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.

Jump to

Keyboard shortcuts

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