Documentation ¶
Index ¶
- Constants
- func Add(mgr manager.Manager) error
- type ReconcilePlatformNetwork
- func (r *ReconcilePlatformNetwork) FindExistingAddressPool(client *gophercloud.ServiceClient, instance *starlingxv1.PlatformNetwork) (pool *addresspools.AddressPool, err error)
- func (r *ReconcilePlatformNetwork) FindExistingNetwork(client *gophercloud.ServiceClient, instance *starlingxv1.PlatformNetwork) (network *networks.Network, err error)
- func (r *ReconcilePlatformNetwork) Reconcile(request reconcile.Request) (reconcile.Result, error)
- func (r *ReconcilePlatformNetwork) ReconcileAddressPool(client *gophercloud.ServiceClient, instance *starlingxv1.PlatformNetwork) error
- func (r *ReconcilePlatformNetwork) ReconcileNetwork(client *gophercloud.ServiceClient, instance *starlingxv1.PlatformNetwork) error
- func (r *ReconcilePlatformNetwork) ReconcileNewAddressPool(client *gophercloud.ServiceClient, instance *starlingxv1.PlatformNetwork) (*addresspools.AddressPool, error)
- func (r *ReconcilePlatformNetwork) ReconcileNewNetwork(client *gophercloud.ServiceClient, instance *starlingxv1.PlatformNetwork) (*networks.Network, error)
- func (r *ReconcilePlatformNetwork) ReconcileResource(client *gophercloud.ServiceClient, instance *starlingxv1.PlatformNetwork) (err error)
- func (r *ReconcilePlatformNetwork) ReconcileUpdatedAddressPool(client *gophercloud.ServiceClient, instance *starlingxv1.PlatformNetwork, ...) error
- func (r *ReconcilePlatformNetwork) ReconcileUpdatedNetwork(client *gophercloud.ServiceClient, instance *starlingxv1.PlatformNetwork, ...) error
- func (r *ReconcilePlatformNetwork) ReconciledDeletedAddressPool(client *gophercloud.ServiceClient, instance *starlingxv1.PlatformNetwork, ...) error
- func (r *ReconcilePlatformNetwork) ReconciledDeletedNetwork(client *gophercloud.ServiceClient, instance *starlingxv1.PlatformNetwork, ...) error
- func (r *ReconcilePlatformNetwork) StopAfterInSync() bool
Constants ¶
const (
// Defines commonly used network allocation type values.
AllocationTypeDynamic = "dynamic"
)
const ControllerName = "platformnetwork-controller"
const FinalizerName = "platformnetwork.finalizers.windriver.com"
Variables ¶
This section is empty.
Functions ¶
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 ¶
func (r *ReconcilePlatformNetwork) ReconcileNewAddressPool(client *gophercloud.ServiceClient, instance *starlingxv1.PlatformNetwork) (*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) 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.