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: 13 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	CRDGroup   = "host.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 (
	Host_Kind             = "Host"
	Host_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Host_Kind}.String()
	Host_KindAPIVersion   = Host_Kind + "." + CRDGroupVersion.String()
	Host_GroupVersionKind = CRDGroupVersion.WithKind(Host_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type Host

type Host struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              HostSpec   `json:"spec"`
	Status            HostStatus `json:"status,omitempty"`
}

Host is the Schema for the Hosts API. Provides a VMware vSphere host resource. This represents an ESXi host that can be used as a member of a cluster or as a standalone 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 (*Host) DeepCopy

func (in *Host) DeepCopy() *Host

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

func (*Host) DeepCopyInto

func (in *Host) DeepCopyInto(out *Host)

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

func (*Host) DeepCopyObject

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

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

func (*Host) GetCondition

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

GetCondition of this Host.

func (*Host) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this Host

func (*Host) GetDeletionPolicy

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

GetDeletionPolicy of this Host.

func (*Host) GetID

func (tr *Host) GetID() string

GetID returns ID of underlying Terraform resource of this Host

func (*Host) GetObservation

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

GetObservation of this Host

func (*Host) GetParameters

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

GetParameters of this Host

func (*Host) GetProviderConfigReference

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

GetProviderConfigReference of this Host.

func (*Host) GetProviderReference

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

GetProviderReference of this Host. Deprecated: Use GetProviderConfigReference.

func (*Host) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this Host.

func (*Host) GetTerraformResourceType

func (mg *Host) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Host

func (*Host) GetTerraformSchemaVersion

func (tr *Host) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Host) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Host.

func (*Host) LateInitialize

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

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

func (*Host) ResolveReferences

func (mg *Host) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences of this Host.

func (*Host) SetConditions

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

SetConditions of this Host.

func (*Host) SetDeletionPolicy

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

SetDeletionPolicy of this Host.

func (*Host) SetObservation

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

SetObservation for this Host

func (*Host) SetParameters

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

SetParameters for this Host

func (*Host) SetProviderConfigReference

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

SetProviderConfigReference of this Host.

func (*Host) SetProviderReference

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

SetProviderReference of this Host. Deprecated: Use SetProviderConfigReference.

func (*Host) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this Host.

func (*Host) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Host.

type HostList

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

HostList contains a list of Hosts

func (*HostList) DeepCopy

func (in *HostList) DeepCopy() *HostList

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

func (*HostList) DeepCopyInto

func (in *HostList) DeepCopyInto(out *HostList)

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

func (*HostList) DeepCopyObject

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

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

func (*HostList) GetItems

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

GetItems of this HostList.

type HostObservation

type HostObservation struct {

	// The ID of the host.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`
}

func (*HostObservation) DeepCopy

func (in *HostObservation) DeepCopy() *HostObservation

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

func (*HostObservation) DeepCopyInto

func (in *HostObservation) DeepCopyInto(out *HostObservation)

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

type HostParameters

type HostParameters struct {

	// The ID of the Compute Cluster this host should
	// be added to. This should not be set if datacenter is set. Conflicts with:
	// cluster.
	// ID of the vSphere cluster the host will belong to.
	// +kubebuilder:validation:Optional
	Cluster *string `json:"cluster,omitempty" tf:"cluster,omitempty"`

	// Can be set to true if compute cluster
	// membership will be managed through the compute_cluster resource rather
	// than thehost resource. Conflicts with: cluster.
	// Must be set if host is a member of a managed compute_cluster resource.
	// +kubebuilder:validation:Optional
	ClusterManaged *bool `json:"clusterManaged,omitempty" tf:"cluster_managed,omitempty"`

	// If set to false then the host will be disconnected.
	// Default is false.
	// Set the state of the host. If set to false then the host will be asked to disconnect.
	// +kubebuilder:validation:Optional
	Connected *bool `json:"connected,omitempty" tf:"connected,omitempty"`

	// A map of custom attribute IDs and string
	// values to apply to the resource. Please refer to the
	// vsphere_custom_attributes resource for more information on applying
	// tags to resources.
	// A list of custom attributes to set on this resource.
	// +kubebuilder:validation:Optional
	CustomAttributes map[string]*string `json:"customAttributes,omitempty" tf:"custom_attributes,omitempty"`

	// The ID of the datacenter this host should
	// be added to. This should not be set if cluster is set.
	// ID of the vSphere datacenter the host will belong to.
	// +crossplane:generate:reference:type=github.com/AitorLeon89/provider-vsphere/apis/datacenter/v1alpha1.Datacenter
	// +kubebuilder:validation:Optional
	Datacenter *string `json:"datacenter,omitempty" tf:"datacenter,omitempty"`

	// Reference to a Datacenter in datacenter to populate datacenter.
	// +kubebuilder:validation:Optional
	DatacenterRef *v1.Reference `json:"datacenterRef,omitempty" tf:"-"`

	// Selector for a Datacenter in datacenter to populate datacenter.
	// +kubebuilder:validation:Optional
	DatacenterSelector *v1.Selector `json:"datacenterSelector,omitempty" tf:"-"`

	// If set to true then it will force the host to be added,
	// even if the host is already connected to a different vCenter Server instance.
	// Default is false.
	// Force add the host to the vSphere inventory even if it's already managed by a different vCenter Server instance.
	// +kubebuilder:validation:Optional
	Force *bool `json:"force,omitempty" tf:"force,omitempty"`

	// FQDN or IP address of the host to be added.
	// FQDN or IP address of the host.
	// +kubebuilder:validation:Required
	Hostname *string `json:"hostname" tf:"hostname,omitempty"`

	// The license key that will be applied to the host.
	// The license key is expected to be present in vSphere.
	// License key that will be applied to this host.
	// +kubebuilder:validation:Optional
	License *string `json:"license,omitempty" tf:"license,omitempty"`

	// Set the lockdown state of the host. Valid options are
	// disabled, normal, and strict. Default is disabled.
	// Set the host's lockdown status. Default is disabled. Valid options are 'disabled', 'normal', 'strict'
	// +kubebuilder:validation:Optional
	Lockdown *string `json:"lockdown,omitempty" tf:"lockdown,omitempty"`

	// Set the management state of the host.
	// Default is false.
	// Set the host's maintenance mode. Default is false
	// +kubebuilder:validation:Optional
	Maintenance *bool `json:"maintenance,omitempty" tf:"maintenance,omitempty"`

	// Password that will be used by vSphere to authenticate
	// to the host.
	// Password of the administration account of the host.
	// +kubebuilder:validation:Required
	PasswordSecretRef v1.SecretKeySelector `json:"passwordSecretRef" tf:"-"`

	// The IDs of any tags to attach to this resource. Please
	// refer to the vsphere_tag resource for more information on applying
	// tags to resources.
	// A list of tag IDs to apply to this object.
	// +kubebuilder:validation:Optional
	Tags []*string `json:"tags,omitempty" tf:"tags,omitempty"`

	// Host's certificate SHA-1 thumbprint. If not set the
	// CA that signed the host's certificate should be trusted. If the CA is not
	// trusted and no thumbprint is set then the operation will fail. See data source
	// vsphere_host_thumbprint.
	// Host's certificate SHA-1 thumbprint. If not set then the CA that signed the host's certificate must be trusted.
	// +kubebuilder:validation:Optional
	Thumbprint *string `json:"thumbprint,omitempty" tf:"thumbprint,omitempty"`

	// Username that will be used by vSphere to authenticate
	// to the host.
	// Username of the administration account of the host.
	// +kubebuilder:validation:Required
	Username *string `json:"username" tf:"username,omitempty"`
}

func (*HostParameters) DeepCopy

func (in *HostParameters) DeepCopy() *HostParameters

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

func (*HostParameters) DeepCopyInto

func (in *HostParameters) DeepCopyInto(out *HostParameters)

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

type HostSpec

type HostSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     HostParameters `json:"forProvider"`
}

HostSpec defines the desired state of Host

func (*HostSpec) DeepCopy

func (in *HostSpec) DeepCopy() *HostSpec

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

func (*HostSpec) DeepCopyInto

func (in *HostSpec) DeepCopyInto(out *HostSpec)

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

type HostStatus

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

HostStatus defines the observed state of Host.

func (*HostStatus) DeepCopy

func (in *HostStatus) DeepCopy() *HostStatus

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

func (*HostStatus) DeepCopyInto

func (in *HostStatus) DeepCopyInto(out *HostStatus)

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