v1alpha1

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const GroupName = "netoperator.vmware.com"

GroupName specifies the group name used to register the objects.

View Source
const (
	// NetworkInterfaceFinalizer allows the Controller to clean up resources associated
	// with a NetworkInterface before removing it from the API Server.
	NetworkInterfaceFinalizer = "networkinterface.netoperator.vmware.com"
)
View Source
const (
	// NetworkInterfaceTypeVMXNet3 is for a VMXNET3 device.
	NetworkInterfaceTypeVMXNet3 = NetworkInterfaceType("vmxnet3")
)

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &runtime.SchemeBuilder{}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func RegisterTypeWithScheme

func RegisterTypeWithScheme(object ...runtime.Object)

RegisterTypeWithScheme adds objects to the SchemeBuilder

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type IPConfig

type IPConfig struct {
	// IP setting.
	IP string `json:"ip"`
	// IPFamily specifies the IP family (IPv4 vs IPv6) the IP belongs to.
	IPFamily IPFamily `json:"ipFamily"`
	// Gateway setting.
	Gateway string `json:"gateway"`
	// SubnetMask setting.
	SubnetMask string `json:"subnetMask"`
}

IPConfig represents an IP configuration.

func (*IPConfig) DeepCopy

func (in *IPConfig) DeepCopy() *IPConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPConfig.

func (*IPConfig) DeepCopyInto

func (in *IPConfig) DeepCopyInto(out *IPConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IPFamily

type IPFamily string

IPFamily represents the IP Family (IPv4 or IPv6). This type is used to express the family of an IP expressed by a type (i.e. service.Spec.IPFamily) NOTE: Copied from k8s.io/api/core/v1" because VM Operator is using old version

const (
	// IPv4Protocol indicates that this IP is IPv4 protocol
	IPv4Protocol IPFamily = "IPv4"
	// IPv6Protocol indicates that this IP is IPv6 protocol
	IPv6Protocol IPFamily = "IPv6"
)

type NetworkInterface

type NetworkInterface struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   NetworkInterfaceSpec   `json:"spec,omitempty"`
	Status NetworkInterfaceStatus `json:"status,omitempty"`
}

NetworkInterface is the Schema for the networkinterfaces API. A NetworkInterface represents a user's request for network configuration to use to place a VM/Pod/Container's nic on a specified network.

func (*NetworkInterface) DeepCopy

func (in *NetworkInterface) DeepCopy() *NetworkInterface

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkInterface.

func (*NetworkInterface) DeepCopyInto

func (in *NetworkInterface) DeepCopyInto(out *NetworkInterface)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NetworkInterface) DeepCopyObject

func (in *NetworkInterface) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NetworkInterfaceCondition

type NetworkInterfaceCondition struct {
	// Type is the type of network interface condition.
	Type NetworkInterfaceConditionType `json:"type"`
	// Status is the status of the condition.
	// Can be True, False, Unknown.
	Status corev1.ConditionStatus `json:"status"`
	// LastTransitionTime is the timestamp corresponding to the last status
	// change of this condition.
	LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
	// Machine understandable string that gives the reason for condition's last transition.
	Reason NetworkInterfaceConditionReason `json:"reason,omitempty"`
	// Human-readable message indicating details about last transition.
	Message string `json:"message,omitempty"`
}

NetworkInterfaceCondition describes the state of a NetworkInterface at a certain point.

func (*NetworkInterfaceCondition) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkInterfaceCondition.

func (*NetworkInterfaceCondition) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NetworkInterfaceConditionReason

type NetworkInterfaceConditionReason string
const (
	// NetworkInterface is in failed state because an IPConfig cannot be allocated.
	NetworkInterfaceFailureReasonCannotAllocIP NetworkInterfaceConditionReason = "CannotAllocIP"
)

type NetworkInterfaceConditionType

type NetworkInterfaceConditionType string
const (
	// NetworkInterfaceReady is added when all network settings have been updated and the network
	// interface is ready to be used.
	NetworkInterfaceReady NetworkInterfaceConditionType = "Ready"
	// NetworkInterfaceFailure is added when network provider plugin returns an error.
	NetworkInterfaceFailure NetworkInterfaceConditionType = "Failure"
)

type NetworkInterfaceList

type NetworkInterfaceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []NetworkInterface `json:"items"`
}

NetworkInterfaceList contains a list of NetworkInterface

func (*NetworkInterfaceList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkInterfaceList.

func (*NetworkInterfaceList) DeepCopyInto

func (in *NetworkInterfaceList) DeepCopyInto(out *NetworkInterfaceList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NetworkInterfaceList) DeepCopyObject

func (in *NetworkInterfaceList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NetworkInterfaceProviderReference

type NetworkInterfaceProviderReference struct {
	// APIGroup is the group for the resource being referenced.
	APIGroup string `json:"apiGroup"`
	// Kind is the type of resource being referenced
	Kind string `json:"kind"`
	// Name is the name of resource being referenced
	Name string `json:"name"`
	// API version of the referent.
	APIVersion string `json:"apiVersion,omitempty"`
}

NetworkInterfaceProviderReference contains info to locate a network interface provider object.

func (*NetworkInterfaceProviderReference) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkInterfaceProviderReference.

func (*NetworkInterfaceProviderReference) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NetworkInterfaceSpec

type NetworkInterfaceSpec struct {
	// NetworkName refers to a NetworkObject in the same namespace.
	NetworkName string `json:"networkName,omitempty"`
	// Type is the type of NetworkInterface. Supported values are vmxnet3.
	Type NetworkInterfaceType `json:"type,omitempty"`
	// ProviderRef is a reference to a provider specific network interface object
	// that specifies the network interface configuration.
	// If unset, default configuration is assumed.
	ProviderRef *NetworkInterfaceProviderReference `json:"providerRef,omitempty"`
}

NetworkInterfaceSpec defines the desired state of NetworkInterface. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*NetworkInterfaceSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkInterfaceSpec.

func (*NetworkInterfaceSpec) DeepCopyInto

func (in *NetworkInterfaceSpec) DeepCopyInto(out *NetworkInterfaceSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NetworkInterfaceStatus

type NetworkInterfaceStatus struct {
	// Conditions is an array of current observed network interface conditions.
	Conditions []NetworkInterfaceCondition `json:"conditions,omitempty"`
	// IPConfigs is an array of IP configurations for the network interface.
	IPConfigs []IPConfig `json:"ipConfigs,omitempty"`
	// MacAddress setting for the network interface.
	MacAddress string `json:"macAddress,omitempty"`
	// ExternalID is a network provider specific identifier assigned to the network interface.
	ExternalID string `json:"externalID,omitempty"`
	// NetworkID is an network provider specific identifier for the network backing the network
	// interface.
	NetworkID string `json:"networkID,omitempty"`
}

NetworkInterfaceStatus defines the observed state of NetworkInterface. Once NetworkInterfaceReady condition is True, it should contain configuration to use to place a VM/Pod/Container's nic on the specified network. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*NetworkInterfaceStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkInterfaceStatus.

func (*NetworkInterfaceStatus) DeepCopyInto

func (in *NetworkInterfaceStatus) DeepCopyInto(out *NetworkInterfaceStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NetworkInterfaceType

type NetworkInterfaceType string

type VMXNET3NetworkInterface

type VMXNET3NetworkInterface struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   VMXNET3NetworkInterfaceSpec   `json:"spec,omitempty"`
	Status VMXNET3NetworkInterfaceStatus `json:"status,omitempty"`
}

VMXNET3NetworkInterface is the Schema for the vmxnet3networkinterfaces API. It represents configuration of a vSphere VMXNET3 type network interface card.

func (*VMXNET3NetworkInterface) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VMXNET3NetworkInterface.

func (*VMXNET3NetworkInterface) DeepCopyInto

func (in *VMXNET3NetworkInterface) DeepCopyInto(out *VMXNET3NetworkInterface)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VMXNET3NetworkInterface) DeepCopyObject

func (in *VMXNET3NetworkInterface) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VMXNET3NetworkInterfaceList

type VMXNET3NetworkInterfaceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []VMXNET3NetworkInterface `json:"items"`
}

VMXNET3NetworkInterfaceList contains a list of VMXNET3NetworkInterface

func (*VMXNET3NetworkInterfaceList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VMXNET3NetworkInterfaceList.

func (*VMXNET3NetworkInterfaceList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VMXNET3NetworkInterfaceList) DeepCopyObject

func (in *VMXNET3NetworkInterfaceList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VMXNET3NetworkInterfaceSpec

type VMXNET3NetworkInterfaceSpec struct {
	// UPTCompatibilityEnabled indicates whether UPT(Universal Pass-through) compatibility is enabled
	// on this network interface.
	UPTCompatibilityEnabled bool `json:"uptCompatibilityEnabled,omitempty"`
	// WakeOnLanEnabled indicates whether wake-on-LAN is enabled on this network interface. Clients
	// can set this property to selectively enable or disable wake-on-LAN.
	WakeOnLanEnabled bool `json:"wakeOnLanEnabled,omitempty"`
}

VMXNET3NetworkInterfaceSpec defines the desired state of VMXNET3NetworkInterface.

func (*VMXNET3NetworkInterfaceSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VMXNET3NetworkInterfaceSpec.

func (*VMXNET3NetworkInterfaceSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VMXNET3NetworkInterfaceStatus

type VMXNET3NetworkInterfaceStatus struct {
}

VMXNET3NetworkInterfaceStatus is unused. VMXNET3NetworkInterface is a configuration only resource.

func (*VMXNET3NetworkInterfaceStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VMXNET3NetworkInterfaceStatus.

func (*VMXNET3NetworkInterfaceStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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