vn

package
v0.0.0-...-aaa1511 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package VirtualNetwork implements network, subnet resource reconciler for kupenstack controller.

Events

The following events are thrown by reconciler:

REASON                MESSAGE

Created               VirtualNetwork created.
CreateFailed          VirtualNetwork create failed. error: %s
DeleteFailed          VirtualNetwork deletion failed. error: %s
Deleted               VirtualNetwork deleted.

Index

Constants

View Source
const (
	// contains name of network resource at openstack.
	ExternalNameAnnotation = "kupenstack.io/external-network-name"

	Finalizer = "kupenstack.io/finalizer"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	client.Client
	OS            *openstack.Client
	Log           logr.Logger
	Scheme        *runtime.Scheme
	EventRecorder record.EventRecorder
}

Reconciler reconciles a VirtualNetwork object

func (*Reconciler) Eventf

func (r *Reconciler) Eventf(cr metav1.Object, eventtype, reason, messageFmt string, args ...interface{}) error

Records kubernetes event for passed custom resources.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

+kubebuilder:rbac:groups=kupenstack.io,resources=virtualnetworks,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=kupenstack.io,resources=virtualnetworks/status,verbs=get;update;patch +kubebuilder:rbac:groups=kupenstack.io,resources=virtualnetworks/finalizers,verbs=update

func (*Reconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type Uint128

type Uint128 struct {
	Hi, Lo uint64
}

func BigEndianUint128

func BigEndianUint128(b []byte) Uint128

Jump to

Keyboard shortcuts

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