controllers

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllocationMetaToNetris added in v1.1.0

func AllocationMetaToNetris(allocationMeta *k8sv1alpha1.AllocationMeta) (*ipam.Allocation, error)

AllocationMetaToNetris converts the k8s Allocation resource to Netris type and used for add the Allocation for Netris API.

func AllocationMetaToNetrisUpdate added in v1.1.0

func AllocationMetaToNetrisUpdate(allocationMeta *k8sv1alpha1.AllocationMeta) (*ipam.Allocation, error)

AllocationMetaToNetrisUpdate converts the k8s Allocation resource to Netris type and used for update the Allocation for Netris API.

func BGPMetaToNetris added in v0.4.1

func BGPMetaToNetris(bgpMeta *k8sv1alpha1.BGPMeta) (*bgp.EBGPAdd, error)

BGPMetaToNetris converts the k8s BGP resource to Netris type and used for add the BGP for Netris API.

func BGPMetaToNetrisUpdate added in v0.4.1

func BGPMetaToNetrisUpdate(bgpMeta *k8sv1alpha1.BGPMeta) (*bgp.EBGPUpdate, error)

BGPMetaToNetrisUpdate converts the k8s BGP resource to Netris type and used for update the BGP for Netris API.

func ControllerMetaToNetris added in v1.2.0

func ControllerMetaToNetris(controllerMeta *k8sv1alpha1.ControllerMeta) (*inventory.HWController, error)

ControllerMetaToNetris converts the k8s Controller resource to Netris type and used for add the Controller for Netris API.

func ControllerMetaToNetrisUpdate added in v1.2.0

func ControllerMetaToNetrisUpdate(controllerMeta *k8sv1alpha1.ControllerMeta) (*inventory.HWControllerUpdate, error)

ControllerMetaToNetrisUpdate converts the k8s Controller resource to Netris type and used for update the Controller for Netris API.

func InventoryProfileMetaToNetris added in v1.4.0

func InventoryProfileMetaToNetris(inventoryProfileMeta *k8sv1alpha1.InventoryProfileMeta) (*inventoryprofile.ProfileW, error)

InventoryProfileMetaToNetris converts the k8s InventoryProfile resource to Netris type and used for add the InventoryProfile for Netris API.

func InventoryProfileMetaToNetrisUpdate added in v1.4.0

func InventoryProfileMetaToNetrisUpdate(inventoryProfileMeta *k8sv1alpha1.InventoryProfileMeta) (*inventoryprofile.ProfileW, error)

InventoryProfileMetaToNetrisUpdate converts the k8s InventoryProfile resource to Netris type and used for update the InventoryProfile for Netris API.

func L4LBMetaToNetris

func L4LBMetaToNetris(l4lbMeta *k8sv1alpha1.L4LBMeta) (*l4lb.LoadBalancerAdd, error)

L4LBMetaToNetris converts the k8s L4LB resource to Netris type and used for add the L4LB for Netris API.

func L4LBMetaToNetrisUpdate

func L4LBMetaToNetrisUpdate(l4lbMeta *k8sv1alpha1.L4LBMeta) (*l4lb.LoadBalancerUpdate, error)

L4LBMetaToNetrisUpdate converts the k8s L4LB resource to Netris type and used for update the L4LB for Netris API.

func LinkMetaToNetris added in v1.2.0

func LinkMetaToNetris(linkMeta *k8sv1alpha1.LinkMeta) (*link.Link, error)

LinkMetaToNetris converts the k8s Link resource to Netris type and used for add the Link for Netris API.

func LinkMetaToNetrisUpdate added in v1.2.0

func LinkMetaToNetrisUpdate(linkMeta *k8sv1alpha1.LinkMeta) (*link.Link, error)

LinkMetaToNetrisUpdate converts the k8s Link resource to Netris type and used for update the Link for Netris API.

func NatMetaToNetris added in v1.3.0

func NatMetaToNetris(natMeta *k8sv1alpha1.NatMeta) (*nat.NATw, error)

NatMetaToNetris converts the k8s Nat resource to Netris type and used for add the Nat for Netris API.

func NatMetaToNetrisUpdate added in v1.3.0

func NatMetaToNetrisUpdate(natMeta *k8sv1alpha1.NatMeta) (*nat.NATw, error)

NatMetaToNetrisUpdate converts the k8s Nat resource to Netris type and used for update the Nat for Netris API.

func SiteMetaToNetris added in v1.1.0

func SiteMetaToNetris(siteMeta *k8sv1alpha1.SiteMeta) (*site.SiteAdd, error)

SiteMetaToNetris converts the k8s Site resource to Netris type and used for add the Site for Netris API.

func SiteMetaToNetrisUpdate added in v1.1.0

func SiteMetaToNetrisUpdate(siteMeta *k8sv1alpha1.SiteMeta) (*site.SiteAdd, error)

SiteMetaToNetrisUpdate converts the k8s Site resource to Netris type and used for update the Site for Netris API.

func SoftgateMetaToNetris added in v1.2.0

func SoftgateMetaToNetris(softgateMeta *k8sv1alpha1.SoftgateMeta) (*inventory.HWSoftgate, error)

SoftgateMetaToNetris converts the k8s Softgate resource to Netris type and used for add the Softgate for Netris API.

func SoftgateMetaToNetrisUpdate added in v1.2.0

func SoftgateMetaToNetrisUpdate(softgateMeta *k8sv1alpha1.SoftgateMeta) (*inventory.HWSoftgateUpdate, error)

SoftgateMetaToNetrisUpdate converts the k8s Softgate resource to Netris type and used for update the Softgate for Netris API.

func SubnetMetaToNetris added in v1.1.0

func SubnetMetaToNetris(subnetMeta *k8sv1alpha1.SubnetMeta) (*ipam.Subnet, error)

SubnetMetaToNetris converts the k8s Subnet resource to Netris type and used for add the Subnet for Netris API.

func SubnetMetaToNetrisUpdate added in v1.1.0

func SubnetMetaToNetrisUpdate(subnetMeta *k8sv1alpha1.SubnetMeta) (*ipam.Subnet, error)

SubnetMetaToNetrisUpdate converts the k8s Subnet resource to Netris type and used for update the Subnet for Netris API.

func SwitchMetaToNetris added in v1.2.0

func SwitchMetaToNetris(switchMeta *k8sv1alpha1.SwitchMeta) (*inventory.HWSwitchAdd, error)

SwitchMetaToNetris converts the k8s Switch resource to Netris type and used for add the Switch for Netris API.

func SwitchMetaToNetrisUpdate added in v1.2.0

func SwitchMetaToNetrisUpdate(switchMeta *k8sv1alpha1.SwitchMeta) (*inventory.HWSwitchUpdate, error)

SwitchMetaToNetrisUpdate converts the k8s Switch resource to Netris type and used for update the Switch for Netris API.

func VnetMetaToNetrisUpdate

func VnetMetaToNetrisUpdate(vnetMeta *k8sv1alpha1.VNetMeta) (*vnet.VNetUpdate, error)

VnetMetaToNetrisUpdate converts the k8s VNet resource to Netris type and used for update the VNet for Netris API.

Types

type AllocationMetaReconciler added in v1.1.0

type AllocationMetaReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Cred     *api.Clientset
	NStorage *netrisstorage.Storage
}

AllocationMetaReconciler reconciles a AllocationMeta object

func (*AllocationMetaReconciler) Reconcile added in v1.1.0

func (r *AllocationMetaReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the AllocationMeta object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

func (*AllocationMetaReconciler) SetupWithManager added in v1.1.0

func (r *AllocationMetaReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type AllocationReconciler added in v1.1.0

type AllocationReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Cred     *api.Clientset
	NStorage *netrisstorage.Storage
}

AllocationReconciler reconciles a Allocation object

func (*AllocationReconciler) AllocationToAllocationMeta added in v1.1.0

func (r *AllocationReconciler) AllocationToAllocationMeta(allocation *k8sv1alpha1.Allocation) (*k8sv1alpha1.AllocationMeta, error)

AllocationToAllocationMeta converts the Allocation resource to AllocationMeta type and used for add the Allocation for Netris API.

func (*AllocationReconciler) Reconcile added in v1.1.0

func (r *AllocationReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the Allocation object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

func (*AllocationReconciler) SetupWithManager added in v1.1.0

func (r *AllocationReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type BGPMetaReconciler added in v0.4.1

type BGPMetaReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Cred     *api.Clientset
	NStorage *netrisstorage.Storage
}

BGPMetaReconciler reconciles a BGPMeta object

func (*BGPMetaReconciler) Reconcile added in v0.4.1

func (r *BGPMetaReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile is the main reconciler for the appropriate resource type

func (*BGPMetaReconciler) SetupWithManager added in v0.4.1

func (r *BGPMetaReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager .

type BGPReconciler added in v0.4.1

type BGPReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Cred     *api.Clientset
	NStorage *netrisstorage.Storage
}

BGPReconciler reconciles a BGP object

func (*BGPReconciler) BGPToBGPMeta added in v0.4.1

func (r *BGPReconciler) BGPToBGPMeta(bgp *k8sv1alpha1.BGP) (*k8sv1alpha1.BGPMeta, error)

BGPToBGPMeta converts the BGP resource to BGPMeta type and used for add the BGP for Netris API.

func (*BGPReconciler) Reconcile added in v0.4.1

func (r *BGPReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile is the main reconciler for the appropriate resource type

func (*BGPReconciler) SetupWithManager added in v0.4.1

func (r *BGPReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager .

type ControllerMetaReconciler added in v1.2.0

type ControllerMetaReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Cred     *api.Clientset
	NStorage *netrisstorage.Storage
}

ControllerMetaReconciler reconciles a ControllerMeta object

func (*ControllerMetaReconciler) Reconcile added in v1.2.0

func (r *ControllerMetaReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the ControllerMeta object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.9.2/pkg/reconcile

func (*ControllerMetaReconciler) SetupWithManager added in v1.2.0

func (r *ControllerMetaReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ControllerReconciler added in v1.2.0

type ControllerReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Cred     *api.Clientset
	NStorage *netrisstorage.Storage
}

ControllerReconciler reconciles a Controller object

func (*ControllerReconciler) ControllerToControllerMeta added in v1.2.0

func (r *ControllerReconciler) ControllerToControllerMeta(controller *k8sv1alpha1.Controller) (*k8sv1alpha1.ControllerMeta, error)

ControllerToControllerMeta converts the Controller resource to ControllerMeta type and used for add the Controller for Netris API.

func (*ControllerReconciler) Reconcile added in v1.2.0

func (r *ControllerReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the Controller object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.9.2/pkg/reconcile

func (*ControllerReconciler) SetupWithManager added in v1.2.0

func (r *ControllerReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type InventoryProfileMetaReconciler added in v1.4.0

type InventoryProfileMetaReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Cred     *api.Clientset
	NStorage *netrisstorage.Storage
}

InventoryProfileMetaReconciler reconciles a InventoryProfileMeta object

func (*InventoryProfileMetaReconciler) Reconcile added in v1.4.0

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the InventoryProfileMeta object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.9.2/pkg/reconcile

func (*InventoryProfileMetaReconciler) SetupWithManager added in v1.4.0

func (r *InventoryProfileMetaReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type InventoryProfileReconciler added in v1.4.0

type InventoryProfileReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Cred     *api.Clientset
	NStorage *netrisstorage.Storage
}

InventoryProfileReconciler reconciles a InventoryProfile object

func (*InventoryProfileReconciler) InventoryProfileToInventoryProfileMeta added in v1.4.0

func (r *InventoryProfileReconciler) InventoryProfileToInventoryProfileMeta(inventoryProfile *k8sv1alpha1.InventoryProfile) (*k8sv1alpha1.InventoryProfileMeta, error)

InventoryProfileToInventoryProfileMeta converts the InventoryProfile resource to InventoryProfileMeta type and used for add the InventoryProfile for Netris API.

func (*InventoryProfileReconciler) Reconcile added in v1.4.0

func (r *InventoryProfileReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the InventoryProfile object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.9.2/pkg/reconcile

func (*InventoryProfileReconciler) SetupWithManager added in v1.4.0

func (r *InventoryProfileReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type L4LBMetaReconciler

type L4LBMetaReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Cred     *api.Clientset
	NStorage *netrisstorage.Storage
}

L4LBMetaReconciler reconciles a L4LBMeta object

func (*L4LBMetaReconciler) Reconcile

func (r *L4LBMetaReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile is the main reconciler for the appropriate resource type

func (*L4LBMetaReconciler) SetupWithManager

func (r *L4LBMetaReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager .

type L4LBReconciler

type L4LBReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Cred     *api.Clientset
	NStorage *netrisstorage.Storage
}

L4LBReconciler reconciles a L4LB object

func (*L4LBReconciler) L4LBToL4LBMeta

func (r *L4LBReconciler) L4LBToL4LBMeta(l4lb *k8sv1alpha1.L4LB) (*k8sv1alpha1.L4LBMeta, error)

L4LBToL4LBMeta converts the VNet resource to VNetMeta type and used for add the VNet for Netris API.

func (*L4LBReconciler) Reconcile

func (r *L4LBReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile is the main reconciler for the appropriate resource type

func (*L4LBReconciler) SetupWithManager

func (r *L4LBReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager .

type LinkMetaReconciler added in v1.2.0

type LinkMetaReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Cred     *api.Clientset
	NStorage *netrisstorage.Storage
}

LinkMetaReconciler reconciles a LinkMeta object

func (*LinkMetaReconciler) Reconcile added in v1.2.0

func (r *LinkMetaReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the LinkMeta object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.9.2/pkg/reconcile

func (*LinkMetaReconciler) SetupWithManager added in v1.2.0

func (r *LinkMetaReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type LinkReconciler added in v1.2.0

type LinkReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Cred     *api.Clientset
	NStorage *netrisstorage.Storage
}

LinkReconciler reconciles a Link object

func (*LinkReconciler) LinkToLinkMeta added in v1.2.0

func (r *LinkReconciler) LinkToLinkMeta(link *k8sv1alpha1.Link) (*k8sv1alpha1.LinkMeta, error)

LinkToLinkMeta converts the Link resource to LinkMeta type and used for add the Link for Netris API.

func (*LinkReconciler) Reconcile added in v1.2.0

func (r *LinkReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the Link object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.9.2/pkg/reconcile

func (*LinkReconciler) SetupWithManager added in v1.2.0

func (r *LinkReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type NatMetaReconciler added in v1.3.0

type NatMetaReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Cred     *api.Clientset
	NStorage *netrisstorage.Storage
}

NatMetaReconciler reconciles a NatMeta object

func (*NatMetaReconciler) Reconcile added in v1.3.0

func (r *NatMetaReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the NatMeta object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.9.2/pkg/reconcile

func (*NatMetaReconciler) SetupWithManager added in v1.3.0

func (r *NatMetaReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type NatReconciler added in v1.3.0

type NatReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Cred     *api.Clientset
	NStorage *netrisstorage.Storage
}

NatReconciler reconciles a Nat object

func (*NatReconciler) NatToNatMeta added in v1.3.0

func (r *NatReconciler) NatToNatMeta(nat *k8sv1alpha1.Nat) (*k8sv1alpha1.NatMeta, error)

NatToNatMeta converts the Nat resource to NatMeta type and used for add the Nat for Netris API.

func (*NatReconciler) Reconcile added in v1.3.0

func (r *NatReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the Nat object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.9.2/pkg/reconcile

func (*NatReconciler) SetupWithManager added in v1.3.0

func (r *NatReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type SiteMetaReconciler added in v1.1.0

type SiteMetaReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Cred     *api.Clientset
	NStorage *netrisstorage.Storage
}

SiteMetaReconciler reconciles a SiteMeta object

func (*SiteMetaReconciler) Reconcile added in v1.1.0

func (r *SiteMetaReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile is the main reconciler for the appropriate resource type

func (*SiteMetaReconciler) SetupWithManager added in v1.1.0

func (r *SiteMetaReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager .

type SiteReconciler added in v1.1.0

type SiteReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Cred     *api.Clientset
	NStorage *netrisstorage.Storage
}

SiteReconciler reconciles a Site object

func (*SiteReconciler) Reconcile added in v1.1.0

func (r *SiteReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile is the main reconciler for the appropriate resource type

func (*SiteReconciler) SetupWithManager added in v1.1.0

func (r *SiteReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager .

func (*SiteReconciler) SiteToSiteMeta added in v1.1.0

func (r *SiteReconciler) SiteToSiteMeta(site *k8sv1alpha1.Site) (*k8sv1alpha1.SiteMeta, error)

SiteToSiteMeta converts the Site resource to SiteMeta type and used for add the Site for Netris API.

type SoftgateMetaReconciler added in v1.2.0

type SoftgateMetaReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Cred     *api.Clientset
	NStorage *netrisstorage.Storage
}

SoftgateMetaReconciler reconciles a SoftgateMeta object

func (*SoftgateMetaReconciler) Reconcile added in v1.2.0

func (r *SoftgateMetaReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the SoftgateMeta object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.9.2/pkg/reconcile

func (*SoftgateMetaReconciler) SetupWithManager added in v1.2.0

func (r *SoftgateMetaReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type SoftgateReconciler added in v1.2.0

type SoftgateReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Cred     *api.Clientset
	NStorage *netrisstorage.Storage
}

SoftgateReconciler reconciles a Softgate object

func (*SoftgateReconciler) Reconcile added in v1.2.0

func (r *SoftgateReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the Softgate object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.9.2/pkg/reconcile

func (*SoftgateReconciler) SetupWithManager added in v1.2.0

func (r *SoftgateReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

func (*SoftgateReconciler) SoftgateToSoftgateMeta added in v1.2.0

func (r *SoftgateReconciler) SoftgateToSoftgateMeta(softgate *k8sv1alpha1.Softgate) (*k8sv1alpha1.SoftgateMeta, error)

SoftgateToSoftgateMeta converts the Softgate resource to SoftgateMeta type and used for add the Softgate for Netris API.

type SubnetMetaReconciler added in v1.1.0

type SubnetMetaReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Cred     *api.Clientset
	NStorage *netrisstorage.Storage
}

SubnetMetaReconciler reconciles a SubnetMeta object

func (*SubnetMetaReconciler) Reconcile added in v1.1.0

func (r *SubnetMetaReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the SubnetMeta object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.9.2/pkg/reconcile

func (*SubnetMetaReconciler) SetupWithManager added in v1.1.0

func (r *SubnetMetaReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type SubnetReconciler added in v1.1.0

type SubnetReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Cred     *api.Clientset
	NStorage *netrisstorage.Storage
}

SubnetReconciler reconciles a Subnet object

func (*SubnetReconciler) Reconcile added in v1.1.0

func (r *SubnetReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the Subnet object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

func (*SubnetReconciler) SetupWithManager added in v1.1.0

func (r *SubnetReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

func (*SubnetReconciler) SubnetToSubnetMeta added in v1.1.0

func (r *SubnetReconciler) SubnetToSubnetMeta(subnet *k8sv1alpha1.Subnet) (*k8sv1alpha1.SubnetMeta, error)

SubnetToSubnetMeta converts the Subnet resource to SubnetMeta type and used for add the Subnet for Netris API.

type SwitchMetaReconciler added in v1.2.0

type SwitchMetaReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Cred     *api.Clientset
	NStorage *netrisstorage.Storage
}

SwitchMetaReconciler reconciles a SwitchMeta object

func (*SwitchMetaReconciler) Reconcile added in v1.2.0

func (r *SwitchMetaReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the SwitchMeta object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.9.2/pkg/reconcile

func (*SwitchMetaReconciler) SetupWithManager added in v1.2.0

func (r *SwitchMetaReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type SwitchReconciler added in v1.2.0

type SwitchReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Cred     *api.Clientset
	NStorage *netrisstorage.Storage
}

SwitchReconciler reconciles a Switch object

func (*SwitchReconciler) Reconcile added in v1.2.0

func (r *SwitchReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the Switch object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.9.2/pkg/reconcile

func (*SwitchReconciler) SetupWithManager added in v1.2.0

func (r *SwitchReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

func (*SwitchReconciler) SwitchToSwitchMeta added in v1.2.0

func (r *SwitchReconciler) SwitchToSwitchMeta(switchH *k8sv1alpha1.Switch) (*k8sv1alpha1.SwitchMeta, error)

SwitchToSwitchMeta converts the Switch resource to SwitchMeta type and used for add the Switch for Netris API.

type VNetMetaReconciler

type VNetMetaReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Cred     *api.Clientset
	NStorage *netrisstorage.Storage
}

VNetMetaReconciler reconciles a VNetMeta object

func (*VNetMetaReconciler) Reconcile

func (r *VNetMetaReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile .

func (*VNetMetaReconciler) SetupWithManager

func (r *VNetMetaReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager .

func (*VNetMetaReconciler) VnetMetaToNetris added in v0.4.3

func (r *VNetMetaReconciler) VnetMetaToNetris(vnetMeta *k8sv1alpha1.VNetMeta) (*vnet.VNetAdd, error)

VnetMetaToNetris converts the k8s VNet resource to Netris type and used for add the VNet for Netris API.

type VNetReconciler

type VNetReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Cred     *api.Clientset
	NStorage *netrisstorage.Storage
}

VNetReconciler reconciles a VNet object

func (*VNetReconciler) Reconcile

func (r *VNetReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile vnet events

func (*VNetReconciler) SetupWithManager

func (r *VNetReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager Resources

func (*VNetReconciler) VnetToVnetMeta

func (r *VNetReconciler) VnetToVnetMeta(vnet *k8sv1alpha1.VNet) (*k8sv1alpha1.VNetMeta, error)

VnetToVnetMeta converts the VNet resource to VNetMeta type and used for add the VNet for Netris API.

Jump to

Keyboard shortcuts

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