v1alpha1

package
v0.0.0-...-6fe2522 Latest Latest
Warning

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

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

Documentation

Overview

+kubebuilder:object:generate=true +groupName=hostvirtualswitch.vsphere.upbound.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "hostvirtualswitch.vsphere.upbound.io"
	CRDVersion = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	// CRDGroupVersion is the API Group Version used to register the objects
	CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var (
	VirtualSwitch_Kind             = "VirtualSwitch"
	VirtualSwitch_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: VirtualSwitch_Kind}.String()
	VirtualSwitch_KindAPIVersion   = VirtualSwitch_Kind + "." + CRDGroupVersion.String()
	VirtualSwitch_GroupVersionKind = CRDGroupVersion.WithKind(VirtualSwitch_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type VirtualSwitch

type VirtualSwitch struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              VirtualSwitchSpec   `json:"spec"`
	Status            VirtualSwitchStatus `json:"status,omitempty"`
}

VirtualSwitch is the Schema for the VirtualSwitchs API. Provides a vSphere Host Virtual Switch Resource. This can be used to configure vSwitches direct on an ESXi host. +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,vsphere}

func (*VirtualSwitch) DeepCopy

func (in *VirtualSwitch) DeepCopy() *VirtualSwitch

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

func (*VirtualSwitch) DeepCopyInto

func (in *VirtualSwitch) DeepCopyInto(out *VirtualSwitch)

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

func (*VirtualSwitch) DeepCopyObject

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

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

func (*VirtualSwitch) GetCondition

func (mg *VirtualSwitch) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this VirtualSwitch.

func (*VirtualSwitch) GetConnectionDetailsMapping

func (tr *VirtualSwitch) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this VirtualSwitch

func (*VirtualSwitch) GetDeletionPolicy

func (mg *VirtualSwitch) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this VirtualSwitch.

func (*VirtualSwitch) GetID

func (tr *VirtualSwitch) GetID() string

GetID returns ID of underlying Terraform resource of this VirtualSwitch

func (*VirtualSwitch) GetObservation

func (tr *VirtualSwitch) GetObservation() (map[string]any, error)

GetObservation of this VirtualSwitch

func (*VirtualSwitch) GetParameters

func (tr *VirtualSwitch) GetParameters() (map[string]any, error)

GetParameters of this VirtualSwitch

func (*VirtualSwitch) GetProviderConfigReference

func (mg *VirtualSwitch) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this VirtualSwitch.

func (*VirtualSwitch) GetProviderReference

func (mg *VirtualSwitch) GetProviderReference() *xpv1.Reference

GetProviderReference of this VirtualSwitch. Deprecated: Use GetProviderConfigReference.

func (*VirtualSwitch) GetPublishConnectionDetailsTo

func (mg *VirtualSwitch) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this VirtualSwitch.

func (*VirtualSwitch) GetTerraformResourceType

func (mg *VirtualSwitch) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this VirtualSwitch

func (*VirtualSwitch) GetTerraformSchemaVersion

func (tr *VirtualSwitch) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*VirtualSwitch) GetWriteConnectionSecretToReference

func (mg *VirtualSwitch) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this VirtualSwitch.

func (*VirtualSwitch) LateInitialize

func (tr *VirtualSwitch) LateInitialize(attrs []byte) (bool, error)

LateInitialize this VirtualSwitch using its observed tfState. returns True if there are any spec changes for the resource.

func (*VirtualSwitch) SetConditions

func (mg *VirtualSwitch) SetConditions(c ...xpv1.Condition)

SetConditions of this VirtualSwitch.

func (*VirtualSwitch) SetDeletionPolicy

func (mg *VirtualSwitch) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this VirtualSwitch.

func (*VirtualSwitch) SetObservation

func (tr *VirtualSwitch) SetObservation(obs map[string]any) error

SetObservation for this VirtualSwitch

func (*VirtualSwitch) SetParameters

func (tr *VirtualSwitch) SetParameters(params map[string]any) error

SetParameters for this VirtualSwitch

func (*VirtualSwitch) SetProviderConfigReference

func (mg *VirtualSwitch) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this VirtualSwitch.

func (*VirtualSwitch) SetProviderReference

func (mg *VirtualSwitch) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this VirtualSwitch. Deprecated: Use SetProviderConfigReference.

func (*VirtualSwitch) SetPublishConnectionDetailsTo

func (mg *VirtualSwitch) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this VirtualSwitch.

func (*VirtualSwitch) SetWriteConnectionSecretToReference

func (mg *VirtualSwitch) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this VirtualSwitch.

type VirtualSwitchList

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

VirtualSwitchList contains a list of VirtualSwitchs

func (*VirtualSwitchList) DeepCopy

func (in *VirtualSwitchList) DeepCopy() *VirtualSwitchList

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

func (*VirtualSwitchList) DeepCopyInto

func (in *VirtualSwitchList) DeepCopyInto(out *VirtualSwitchList)

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

func (*VirtualSwitchList) DeepCopyObject

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

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

func (*VirtualSwitchList) GetItems

func (l *VirtualSwitchList) GetItems() []resource.Managed

GetItems of this VirtualSwitchList.

type VirtualSwitchObservation

type VirtualSwitchObservation struct {
	ID *string `json:"id,omitempty" tf:"id,omitempty"`
}

func (*VirtualSwitchObservation) DeepCopy

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

func (*VirtualSwitchObservation) DeepCopyInto

func (in *VirtualSwitchObservation) DeepCopyInto(out *VirtualSwitchObservation)

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

type VirtualSwitchParameters

type VirtualSwitchParameters struct {

	// The list of active network adapters used for load
	// balancing.
	// List of active network adapters used for load balancing.
	// +kubebuilder:validation:Required
	ActiveNics []*string `json:"activeNics" tf:"active_nics,omitempty"`

	// Controls whether or not the virtual
	// network adapter is allowed to send network traffic with a different MAC
	// address than that of its own. Default: true.
	// Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
	// +kubebuilder:validation:Optional
	AllowForgedTransmits *bool `json:"allowForgedTransmits,omitempty" tf:"allow_forged_transmits,omitempty"`

	// Controls whether or not the Media Access
	// Control (MAC) address can be changed. Default: true.
	// Controls whether or not the Media Access Control (MAC) address can be changed.
	// +kubebuilder:validation:Optional
	AllowMacChanges *bool `json:"allowMacChanges,omitempty" tf:"allow_mac_changes,omitempty"`

	// Enable promiscuous mode on the network. This
	// flag indicates whether or not all traffic is seen on a given port. Default:
	// false.
	// Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
	// +kubebuilder:validation:Optional
	AllowPromiscuous *bool `json:"allowPromiscuous,omitempty" tf:"allow_promiscuous,omitempty"`

	// The interval, in seconds, that a NIC beacon
	// packet is sent out. This can be used with check_beacon to
	// offer link failure capability beyond link status only. Default: 1.
	// Determines how often, in seconds, a beacon should be sent to probe for the validity of a link.
	// +kubebuilder:validation:Optional
	BeaconInterval *float64 `json:"beaconInterval,omitempty" tf:"beacon_interval,omitempty"`

	// Enable beacon probing - this requires that the
	// beacon_interval option has been set in the bridge
	// options. If this is set to false, only link status is used to check for
	// failed NICs.  Default: false.
	// Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
	// +kubebuilder:validation:Optional
	CheckBeacon *bool `json:"checkBeacon,omitempty" tf:"check_beacon,omitempty"`

	// If set to true, the teaming policy will re-activate
	// failed interfaces higher in precedence when they come back up.  Default:
	// true.
	// If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
	// +kubebuilder:validation:Optional
	Failback *bool `json:"failback,omitempty" tf:"failback,omitempty"`

	// The managed object ID of
	// the host to set the virtual switch up on. Forces a new resource if changed.
	// The managed object ID of the host to set the virtual switch up on.
	// +kubebuilder:validation:Required
	HostSystemID *string `json:"hostSystemId" tf:"host_system_id,omitempty"`

	// Whether to advertise or listen
	// for link discovery traffic. Default: listen.
	// Whether to advertise or listen for link discovery. Valid values are advertise, both, listen, and none.
	// +kubebuilder:validation:Optional
	LinkDiscoveryOperation *string `json:"linkDiscoveryOperation,omitempty" tf:"link_discovery_operation,omitempty"`

	// The discovery protocol type.  Valid
	// types are cpd and lldp. Default: cdp.
	// The discovery protocol type. Valid values are cdp and lldp.
	// +kubebuilder:validation:Optional
	LinkDiscoveryProtocol *string `json:"linkDiscoveryProtocol,omitempty" tf:"link_discovery_protocol,omitempty"`

	// The maximum transmission unit (MTU) for the virtual
	// switch. Default: 1500.
	// The maximum transmission unit (MTU) of the virtual switch in bytes.
	// +kubebuilder:validation:Optional
	Mtu *float64 `json:"mtu,omitempty" tf:"mtu,omitempty"`

	// The network interfaces to bind to the bridge.
	// The list of network adapters to bind to this virtual switch.
	// +kubebuilder:validation:Required
	NetworkAdapters []*string `json:"networkAdapters" tf:"network_adapters,omitempty"`

	// If set to true, the teaming policy will
	// notify the broadcast network of a NIC failover, triggering cache updates.
	// Default: true.
	// If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
	// +kubebuilder:validation:Optional
	NotifySwitches *bool `json:"notifySwitches,omitempty" tf:"notify_switches,omitempty"`

	// The number of ports to create with this
	// virtual switch. Default: 128.
	// The number of ports that this virtual switch is configured to use.
	// +kubebuilder:validation:Optional
	NumberOfPorts *float64 `json:"numberOfPorts,omitempty" tf:"number_of_ports,omitempty"`

	// The average bandwidth in bits per
	// second if traffic shaping is enabled. Default: 0
	// The average bandwidth in bits per second if traffic shaping is enabled.
	// +kubebuilder:validation:Optional
	ShapingAverageBandwidth *float64 `json:"shapingAverageBandwidth,omitempty" tf:"shaping_average_bandwidth,omitempty"`

	// The maximum burst size allowed in bytes if
	// shaping is enabled. Default: 0
	// The maximum burst size allowed in bytes if traffic shaping is enabled.
	// +kubebuilder:validation:Optional
	ShapingBurstSize *float64 `json:"shapingBurstSize,omitempty" tf:"shaping_burst_size,omitempty"`

	// Set to true to enable the traffic shaper for
	// ports managed by this virtual switch. Default: false.
	// Enable traffic shaping on this virtual switch or port group.
	// +kubebuilder:validation:Optional
	ShapingEnabled *bool `json:"shapingEnabled,omitempty" tf:"shaping_enabled,omitempty"`

	// The peak bandwidth during bursts in
	// bits per second if traffic shaping is enabled. Default: 0
	// The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
	// +kubebuilder:validation:Optional
	ShapingPeakBandwidth *float64 `json:"shapingPeakBandwidth,omitempty" tf:"shaping_peak_bandwidth,omitempty"`

	// The list of standby network adapters used for
	// failover.
	// List of standby network adapters used for failover.
	// +kubebuilder:validation:Optional
	StandbyNics []*string `json:"standbyNics,omitempty" tf:"standby_nics,omitempty"`

	// The network adapter teaming policy. Can be one
	// of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or
	// failover_explicit. Default: loadbalance_srcid.
	// The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
	// +kubebuilder:validation:Optional
	TeamingPolicy *string `json:"teamingPolicy,omitempty" tf:"teaming_policy,omitempty"`
}

func (*VirtualSwitchParameters) DeepCopy

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

func (*VirtualSwitchParameters) DeepCopyInto

func (in *VirtualSwitchParameters) DeepCopyInto(out *VirtualSwitchParameters)

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

type VirtualSwitchSpec

type VirtualSwitchSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     VirtualSwitchParameters `json:"forProvider"`
}

VirtualSwitchSpec defines the desired state of VirtualSwitch

func (*VirtualSwitchSpec) DeepCopy

func (in *VirtualSwitchSpec) DeepCopy() *VirtualSwitchSpec

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

func (*VirtualSwitchSpec) DeepCopyInto

func (in *VirtualSwitchSpec) DeepCopyInto(out *VirtualSwitchSpec)

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

type VirtualSwitchStatus

type VirtualSwitchStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        VirtualSwitchObservation `json:"atProvider,omitempty"`
}

VirtualSwitchStatus defines the observed state of VirtualSwitch.

func (*VirtualSwitchStatus) DeepCopy

func (in *VirtualSwitchStatus) DeepCopy() *VirtualSwitchStatus

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

func (*VirtualSwitchStatus) DeepCopyInto

func (in *VirtualSwitchStatus) DeepCopyInto(out *VirtualSwitchStatus)

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