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=computeclustervmhostrule.vsphere.upbound.io +versionName=v1alpha1

Index

Constants

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

Package type metadata.

Variables

View Source
var (
	ClusterVMHostRule_Kind             = "ClusterVMHostRule"
	ClusterVMHostRule_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: ClusterVMHostRule_Kind}.String()
	ClusterVMHostRule_KindAPIVersion   = ClusterVMHostRule_Kind + "." + CRDGroupVersion.String()
	ClusterVMHostRule_GroupVersionKind = CRDGroupVersion.WithKind(ClusterVMHostRule_Kind)
)

Repository type metadata.

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
)

Functions

This section is empty.

Types

type ClusterVMHostRule

type ClusterVMHostRule struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ClusterVMHostRuleSpec   `json:"spec"`
	Status            ClusterVMHostRuleStatus `json:"status,omitempty"`
}

ClusterVMHostRule is the Schema for the ClusterVMHostRules API. Provides a VMware vSphere cluster VM/host rule. This can be used to manage VM-to-host affinity and anti-affinity rules. +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 (*ClusterVMHostRule) DeepCopy

func (in *ClusterVMHostRule) DeepCopy() *ClusterVMHostRule

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

func (*ClusterVMHostRule) DeepCopyInto

func (in *ClusterVMHostRule) DeepCopyInto(out *ClusterVMHostRule)

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

func (*ClusterVMHostRule) DeepCopyObject

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

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

func (*ClusterVMHostRule) GetCondition

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

GetCondition of this ClusterVMHostRule.

func (*ClusterVMHostRule) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this ClusterVMHostRule

func (*ClusterVMHostRule) GetDeletionPolicy

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

GetDeletionPolicy of this ClusterVMHostRule.

func (*ClusterVMHostRule) GetID

func (tr *ClusterVMHostRule) GetID() string

GetID returns ID of underlying Terraform resource of this ClusterVMHostRule

func (*ClusterVMHostRule) GetObservation

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

GetObservation of this ClusterVMHostRule

func (*ClusterVMHostRule) GetParameters

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

GetParameters of this ClusterVMHostRule

func (*ClusterVMHostRule) GetProviderConfigReference

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

GetProviderConfigReference of this ClusterVMHostRule.

func (*ClusterVMHostRule) GetProviderReference

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

GetProviderReference of this ClusterVMHostRule. Deprecated: Use GetProviderConfigReference.

func (*ClusterVMHostRule) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this ClusterVMHostRule.

func (*ClusterVMHostRule) GetTerraformResourceType

func (mg *ClusterVMHostRule) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this ClusterVMHostRule

func (*ClusterVMHostRule) GetTerraformSchemaVersion

func (tr *ClusterVMHostRule) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*ClusterVMHostRule) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this ClusterVMHostRule.

func (*ClusterVMHostRule) LateInitialize

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

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

func (*ClusterVMHostRule) SetConditions

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

SetConditions of this ClusterVMHostRule.

func (*ClusterVMHostRule) SetDeletionPolicy

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

SetDeletionPolicy of this ClusterVMHostRule.

func (*ClusterVMHostRule) SetObservation

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

SetObservation for this ClusterVMHostRule

func (*ClusterVMHostRule) SetParameters

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

SetParameters for this ClusterVMHostRule

func (*ClusterVMHostRule) SetProviderConfigReference

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

SetProviderConfigReference of this ClusterVMHostRule.

func (*ClusterVMHostRule) SetProviderReference

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

SetProviderReference of this ClusterVMHostRule. Deprecated: Use SetProviderConfigReference.

func (*ClusterVMHostRule) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this ClusterVMHostRule.

func (*ClusterVMHostRule) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this ClusterVMHostRule.

type ClusterVMHostRuleList

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

ClusterVMHostRuleList contains a list of ClusterVMHostRules

func (*ClusterVMHostRuleList) DeepCopy

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

func (*ClusterVMHostRuleList) DeepCopyInto

func (in *ClusterVMHostRuleList) DeepCopyInto(out *ClusterVMHostRuleList)

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

func (*ClusterVMHostRuleList) DeepCopyObject

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

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

func (*ClusterVMHostRuleList) GetItems

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

GetItems of this ClusterVMHostRuleList.

type ClusterVMHostRuleObservation

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

func (*ClusterVMHostRuleObservation) DeepCopy

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

func (*ClusterVMHostRuleObservation) DeepCopyInto

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

type ClusterVMHostRuleParameters

type ClusterVMHostRuleParameters struct {

	// When this field is used, the virtual
	// machines defined in vm_group_name will be run on the
	// hosts defined in this host group.
	// When this field is used, virtual machines defined in vm_group_name will be run on the hosts defined in this host group.
	// +kubebuilder:validation:Optional
	AffinityHostGroupName *string `json:"affinityHostGroupName,omitempty" tf:"affinity_host_group_name,omitempty"`

	// When this field is used, the
	// virtual machines defined in vm_group_name will not be
	// run on the hosts defined in this host group.
	// When this field is used, virtual machines defined in vm_group_name will not be run on the hosts defined in this host group.
	// +kubebuilder:validation:Optional
	AntiAffinityHostGroupName *string `json:"antiAffinityHostGroupName,omitempty" tf:"anti_affinity_host_group_name,omitempty"`

	// The managed object reference
	// ID of the cluster to put the group in.  Forces a new
	// resource if changed.
	// The managed object ID of the cluster.
	// +kubebuilder:validation:Required
	ComputeClusterID *string `json:"computeClusterId" tf:"compute_cluster_id,omitempty"`

	// Enable this rule in the cluster. Default: true.
	// Enable this rule in the cluster.
	// +kubebuilder:validation:Optional
	Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`

	// When this value is true, prevents any virtual
	// machine operations that may violate this rule. Default: false.
	// When true, prevents any virtual machine operations that may violate this rule.
	// +kubebuilder:validation:Optional
	Mandatory *bool `json:"mandatory,omitempty" tf:"mandatory,omitempty"`

	// The name of the rule. This must be unique in the
	// cluster.
	// The unique name of the virtual machine group in the cluster.
	// +kubebuilder:validation:Required
	Name *string `json:"name" tf:"name,omitempty"`

	// The name of the virtual machine group to use
	// with this rule.
	// The name of the virtual machine group to use with this rule.
	// +kubebuilder:validation:Required
	VMGroupName *string `json:"vmGroupName" tf:"vm_group_name,omitempty"`
}

func (*ClusterVMHostRuleParameters) DeepCopy

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

func (*ClusterVMHostRuleParameters) DeepCopyInto

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

type ClusterVMHostRuleSpec

type ClusterVMHostRuleSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     ClusterVMHostRuleParameters `json:"forProvider"`
}

ClusterVMHostRuleSpec defines the desired state of ClusterVMHostRule

func (*ClusterVMHostRuleSpec) DeepCopy

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

func (*ClusterVMHostRuleSpec) DeepCopyInto

func (in *ClusterVMHostRuleSpec) DeepCopyInto(out *ClusterVMHostRuleSpec)

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

type ClusterVMHostRuleStatus

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

ClusterVMHostRuleStatus defines the observed state of ClusterVMHostRule.

func (*ClusterVMHostRuleStatus) DeepCopy

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

func (*ClusterVMHostRuleStatus) DeepCopyInto

func (in *ClusterVMHostRuleStatus) DeepCopyInto(out *ClusterVMHostRuleStatus)

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