Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=hostportgroup.vsphere.upbound.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type PortGroup
- func (in *PortGroup) DeepCopy() *PortGroup
- func (in *PortGroup) DeepCopyInto(out *PortGroup)
- func (in *PortGroup) DeepCopyObject() runtime.Object
- func (mg *PortGroup) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *PortGroup) GetConnectionDetailsMapping() map[string]string
- func (mg *PortGroup) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *PortGroup) GetID() string
- func (tr *PortGroup) GetObservation() (map[string]any, error)
- func (tr *PortGroup) GetParameters() (map[string]any, error)
- func (mg *PortGroup) GetProviderConfigReference() *xpv1.Reference
- func (mg *PortGroup) GetProviderReference() *xpv1.Reference
- func (mg *PortGroup) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *PortGroup) GetTerraformResourceType() string
- func (tr *PortGroup) GetTerraformSchemaVersion() int
- func (mg *PortGroup) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *PortGroup) LateInitialize(attrs []byte) (bool, error)
- func (mg *PortGroup) SetConditions(c ...xpv1.Condition)
- func (mg *PortGroup) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (tr *PortGroup) SetObservation(obs map[string]any) error
- func (tr *PortGroup) SetParameters(params map[string]any) error
- func (mg *PortGroup) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *PortGroup) SetProviderReference(r *xpv1.Reference)
- func (mg *PortGroup) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *PortGroup) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type PortGroupList
- type PortGroupObservation
- type PortGroupParameters
- type PortGroupSpec
- type PortGroupStatus
- type PortsObservation
- type PortsParameters
Constants ¶
const ( CRDGroup = "hostportgroup.vsphere.upbound.io" CRDVersion = "v1alpha1" )
Package type metadata.
Variables ¶
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 )
var ( PortGroup_Kind = "PortGroup" PortGroup_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: PortGroup_Kind}.String() PortGroup_KindAPIVersion = PortGroup_Kind + "." + CRDGroupVersion.String() PortGroup_GroupVersionKind = CRDGroupVersion.WithKind(PortGroup_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type PortGroup ¶
type PortGroup struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PortGroupSpec `json:"spec"` Status PortGroupStatus `json:"status,omitempty"` }
PortGroup is the Schema for the PortGroups API. Provides a vSphere port group resource to manage port groups on ESXi hosts. +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 (*PortGroup) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortGroup.
func (*PortGroup) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PortGroup) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*PortGroup) GetCondition ¶
func (mg *PortGroup) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this PortGroup.
func (*PortGroup) GetConnectionDetailsMapping ¶
GetConnectionDetailsMapping for this PortGroup
func (*PortGroup) GetDeletionPolicy ¶
func (mg *PortGroup) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this PortGroup.
func (*PortGroup) GetObservation ¶
GetObservation of this PortGroup
func (*PortGroup) GetParameters ¶
GetParameters of this PortGroup
func (*PortGroup) GetProviderConfigReference ¶
GetProviderConfigReference of this PortGroup.
func (*PortGroup) GetProviderReference ¶
GetProviderReference of this PortGroup. Deprecated: Use GetProviderConfigReference.
func (*PortGroup) GetPublishConnectionDetailsTo ¶
func (mg *PortGroup) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this PortGroup.
func (*PortGroup) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this PortGroup
func (*PortGroup) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*PortGroup) GetWriteConnectionSecretToReference ¶
func (mg *PortGroup) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this PortGroup.
func (*PortGroup) LateInitialize ¶
LateInitialize this PortGroup using its observed tfState. returns True if there are any spec changes for the resource.
func (*PortGroup) SetConditions ¶
SetConditions of this PortGroup.
func (*PortGroup) SetDeletionPolicy ¶
func (mg *PortGroup) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this PortGroup.
func (*PortGroup) SetObservation ¶
SetObservation for this PortGroup
func (*PortGroup) SetParameters ¶
SetParameters for this PortGroup
func (*PortGroup) SetProviderConfigReference ¶
SetProviderConfigReference of this PortGroup.
func (*PortGroup) SetProviderReference ¶
SetProviderReference of this PortGroup. Deprecated: Use SetProviderConfigReference.
func (*PortGroup) SetPublishConnectionDetailsTo ¶
func (mg *PortGroup) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this PortGroup.
func (*PortGroup) SetWriteConnectionSecretToReference ¶
func (mg *PortGroup) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this PortGroup.
type PortGroupList ¶
type PortGroupList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []PortGroup `json:"items"` }
PortGroupList contains a list of PortGroups
func (*PortGroupList) DeepCopy ¶
func (in *PortGroupList) DeepCopy() *PortGroupList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortGroupList.
func (*PortGroupList) DeepCopyInto ¶
func (in *PortGroupList) DeepCopyInto(out *PortGroupList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PortGroupList) DeepCopyObject ¶
func (in *PortGroupList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*PortGroupList) GetItems ¶
func (l *PortGroupList) GetItems() []resource.Managed
GetItems of this PortGroupList.
type PortGroupObservation ¶
type PortGroupObservation struct { // A map with a full set of the policy // options computed from defaults and overrides, // explaining the effective policy for this port group. // The effective network policy after inheritance. Note that this will look similar to, but is not the same, as the policy attributes defined in this resource. ComputedPolicy map[string]*string `json:"computedPolicy,omitempty" tf:"computed_policy,omitempty"` // The convention is a prefix, the host system ID, and the port group name. // For example,tf-HostPortGroup:host-10:portgroup-01. Tracking a port group // on a standard switch, which can be created with or without a vCenter Server, // is different than then a dvPortGroup which is tracked as a managed object ID // in vCemter Server versus a key on a host. ID *string `json:"id,omitempty" tf:"id,omitempty"` // The key for this port group as returned from the vSphere API. // The linkable identifier for this port group. Key *string `json:"key,omitempty" tf:"key,omitempty"` // A list of ports that currently exist and are used on this port group. // The ports that currently exist and are used on this port group. Ports []PortsObservation `json:"ports,omitempty" tf:"ports,omitempty"` }
func (*PortGroupObservation) DeepCopy ¶
func (in *PortGroupObservation) DeepCopy() *PortGroupObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortGroupObservation.
func (*PortGroupObservation) DeepCopyInto ¶
func (in *PortGroupObservation) DeepCopyInto(out *PortGroupObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PortGroupParameters ¶
type PortGroupParameters struct { // List of active network adapters used for load balancing. // +kubebuilder:validation:Optional ActiveNics []*string `json:"activeNics,omitempty" 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. // +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. // +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. // +kubebuilder:validation:Optional AllowPromiscuous *bool `json:"allowPromiscuous,omitempty" tf:"allow_promiscuous,omitempty"` // 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 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 port group 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"` // 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 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 traffic shaping is enabled. // +kubebuilder:validation:Optional ShapingBurstSize *float64 `json:"shapingBurstSize,omitempty" tf:"shaping_burst_size,omitempty"` // 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. // +kubebuilder:validation:Optional ShapingPeakBandwidth *float64 `json:"shapingPeakBandwidth,omitempty" tf:"shaping_peak_bandwidth,omitempty"` // 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. // +kubebuilder:validation:Optional TeamingPolicy *string `json:"teamingPolicy,omitempty" tf:"teaming_policy,omitempty"` // The name of the virtual switch to bind // this port group to. Forces a new resource if changed. // The name of the virtual switch to bind this port group to. // +kubebuilder:validation:Required VirtualSwitchName *string `json:"virtualSwitchName" tf:"virtual_switch_name,omitempty"` // The VLAN ID/trunk mode for this port group. An ID of // 0 denotes no tagging, an ID of 1-4094 tags with the specific ID, and an // ID of 4095 enables trunk mode, allowing the guest to manage its own // tagging. Default: 0. // The VLAN ID/trunk mode for this port group. An ID of 0 denotes no tagging, an ID of 1-4094 tags with the specific ID, and an ID of 4095 enables trunk mode, allowing the guest to manage its own tagging. // +kubebuilder:validation:Optional VlanID *float64 `json:"vlanId,omitempty" tf:"vlan_id,omitempty"` }
func (*PortGroupParameters) DeepCopy ¶
func (in *PortGroupParameters) DeepCopy() *PortGroupParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortGroupParameters.
func (*PortGroupParameters) DeepCopyInto ¶
func (in *PortGroupParameters) DeepCopyInto(out *PortGroupParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PortGroupSpec ¶
type PortGroupSpec struct { v1.ResourceSpec `json:",inline"` ForProvider PortGroupParameters `json:"forProvider"` }
PortGroupSpec defines the desired state of PortGroup
func (*PortGroupSpec) DeepCopy ¶
func (in *PortGroupSpec) DeepCopy() *PortGroupSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortGroupSpec.
func (*PortGroupSpec) DeepCopyInto ¶
func (in *PortGroupSpec) DeepCopyInto(out *PortGroupSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PortGroupStatus ¶
type PortGroupStatus struct { v1.ResourceStatus `json:",inline"` AtProvider PortGroupObservation `json:"atProvider,omitempty"` }
PortGroupStatus defines the observed state of PortGroup.
func (*PortGroupStatus) DeepCopy ¶
func (in *PortGroupStatus) DeepCopy() *PortGroupStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortGroupStatus.
func (*PortGroupStatus) DeepCopyInto ¶
func (in *PortGroupStatus) DeepCopyInto(out *PortGroupStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PortsObservation ¶
type PortsObservation struct { // The key for this port group as returned from the vSphere API. Key *string `json:"key,omitempty" tf:"key,omitempty"` MacAddresses []*string `json:"macAddresses,omitempty" tf:"mac_addresses,omitempty"` Type *string `json:"type,omitempty" tf:"type,omitempty"` }
func (*PortsObservation) DeepCopy ¶
func (in *PortsObservation) DeepCopy() *PortsObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortsObservation.
func (*PortsObservation) DeepCopyInto ¶
func (in *PortsObservation) DeepCopyInto(out *PortsObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PortsParameters ¶
type PortsParameters struct { }
func (*PortsParameters) DeepCopy ¶
func (in *PortsParameters) DeepCopy() *PortsParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortsParameters.
func (*PortsParameters) DeepCopyInto ¶
func (in *PortsParameters) DeepCopyInto(out *PortsParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.