platformnetwork

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: 20 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// Defines commonly used network allocation type values.
	AllocationTypeDynamic = "dynamic"
)
View Source
const ControllerName = "platformnetwork-controller"
View Source
const FinalizerName = "platformnetwork.finalizers.windriver.com"

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

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

type ReconcilePlatformNetwork struct {
	client.Client

	cloudManager.CloudManager
	common.ReconcilerErrorHandler
	common.ReconcilerEventLogger
	// contains filtered or unexported fields
}

ReconcileResource reconciles a PlatformNetwork object

func (*ReconcilePlatformNetwork) FindExistingAddressPool

func (r *ReconcilePlatformNetwork) FindExistingAddressPool(client *gophercloud.ServiceClient, instance *starlingxv1.PlatformNetwork) (pool *addresspools.AddressPool, err error)

FindExistingAddressPool 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 (*ReconcilePlatformNetwork) FindExistingNetwork

func (r *ReconcilePlatformNetwork) FindExistingNetwork(client *gophercloud.ServiceClient, instance *starlingxv1.PlatformNetwork) (network *networks.Network, err error)

FindExistingNetwork 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 (*ReconcilePlatformNetwork) Reconcile

Reconcile reads that state of the cluster for a PlatformNetwork object and makes changes based on the state read and what is in the PlatformNetwork.Spec +kubebuilder:rbac:groups="",resources=events,verbs=create;patch +kubebuilder:rbac:groups=starlingx.windriver.com,resources=platformnetworks,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=starlingx.windriver.com,resources=platformnetworks/status,verbs=get;update;patch

func (*ReconcilePlatformNetwork) ReconcileAddressPool

func (r *ReconcilePlatformNetwork) ReconcileAddressPool(client *gophercloud.ServiceClient, instance *starlingxv1.PlatformNetwork) error

ReconcileAddressPool determines whether the stored address pool instance needs to be created or updated in the system. This is done independently of the network resource since at the system level these are two independent resources.

func (*ReconcilePlatformNetwork) ReconcileNetwork

func (r *ReconcilePlatformNetwork) ReconcileNetwork(client *gophercloud.ServiceClient, instance *starlingxv1.PlatformNetwork) error

ReconcileNetwork determines whether the stored network instance is needs to be created or updated in the system. This is done independently of the address pool resource since at the system level these are two independent resources.

func (*ReconcilePlatformNetwork) ReconcileNewAddressPool

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

func (*ReconcilePlatformNetwork) ReconcileNewNetwork

func (r *ReconcilePlatformNetwork) ReconcileNewNetwork(client *gophercloud.ServiceClient, instance *starlingxv1.PlatformNetwork) (*networks.Network, error)

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

func (*ReconcilePlatformNetwork) ReconcileResource

func (r *ReconcilePlatformNetwork) ReconcileResource(client *gophercloud.ServiceClient, instance *starlingxv1.PlatformNetwork) (err 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 (*ReconcilePlatformNetwork) ReconcileUpdatedAddressPool

func (r *ReconcilePlatformNetwork) ReconcileUpdatedAddressPool(client *gophercloud.ServiceClient, instance *starlingxv1.PlatformNetwork, pool *addresspools.AddressPool) 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 (*ReconcilePlatformNetwork) ReconcileUpdatedNetwork

func (r *ReconcilePlatformNetwork) ReconcileUpdatedNetwork(client *gophercloud.ServiceClient, instance *starlingxv1.PlatformNetwork, network *networks.Network) 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 (*ReconcilePlatformNetwork) ReconciledDeletedAddressPool

func (r *ReconcilePlatformNetwork) ReconciledDeletedAddressPool(client *gophercloud.ServiceClient, instance *starlingxv1.PlatformNetwork, pool *addresspools.AddressPool) error

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

func (*ReconcilePlatformNetwork) ReconciledDeletedNetwork

func (r *ReconcilePlatformNetwork) ReconciledDeletedNetwork(client *gophercloud.ServiceClient, instance *starlingxv1.PlatformNetwork, network *networks.Network) error

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

func (*ReconcilePlatformNetwork) StopAfterInSync added in v1.0.0

func (r *ReconcilePlatformNetwork) 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