v1alpha1

package
v0.0.0-...-c38a3b2 Latest Latest
Warning

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

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

Documentation

Overview

+kubebuilder:object:generate=true +groupName=volume.openstack.upbound.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "volume.openstack.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 (
	VolumeV3_Kind             = "VolumeV3"
	VolumeV3_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: VolumeV3_Kind}.String()
	VolumeV3_KindAPIVersion   = VolumeV3_Kind + "." + CRDGroupVersion.String()
	VolumeV3_GroupVersionKind = CRDGroupVersion.WithKind(VolumeV3_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type AttachmentObservation

type AttachmentObservation struct {
	Device *string `json:"device,omitempty" tf:"device,omitempty"`

	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	InstanceID *string `json:"instanceId,omitempty" tf:"instance_id,omitempty"`
}

func (*AttachmentObservation) DeepCopy

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

func (*AttachmentObservation) DeepCopyInto

func (in *AttachmentObservation) DeepCopyInto(out *AttachmentObservation)

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

type AttachmentParameters

type AttachmentParameters struct {
}

func (*AttachmentParameters) DeepCopy

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

func (*AttachmentParameters) DeepCopyInto

func (in *AttachmentParameters) DeepCopyInto(out *AttachmentParameters)

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

type SchedulerHintsObservation

type SchedulerHintsObservation struct {
}

func (*SchedulerHintsObservation) DeepCopy

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

func (*SchedulerHintsObservation) DeepCopyInto

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

type SchedulerHintsParameters

type SchedulerHintsParameters struct {

	// Arbitrary key/value pairs of additional
	// properties to pass to the scheduler.
	// +kubebuilder:validation:Optional
	AdditionalProperties map[string]*string `json:"additionalProperties,omitempty" tf:"additional_properties,omitempty"`

	// The volume should be scheduled on a
	// different host from the set of volumes specified in the list provided.
	// +kubebuilder:validation:Optional
	DifferentHost []*string `json:"differentHost,omitempty" tf:"different_host,omitempty"`

	// An instance UUID. The volume should be
	// scheduled on the same host as the instance.
	// +kubebuilder:validation:Optional
	LocalToInstance *string `json:"localToInstance,omitempty" tf:"local_to_instance,omitempty"`

	// A conditional query that a back-end must pass in
	// order to host a volume. The query must use the JsonFilter syntax
	// which is described
	// here.
	// At this time, only simple queries are supported. Compound queries using
	// and, or, or not are not supported. An example of a simple query is:
	// +kubebuilder:validation:Optional
	Query *string `json:"query,omitempty" tf:"query,omitempty"`

	// A list of volume UUIDs. The volume should be
	// scheduled on the same host as another volume specified in the list provided.
	// +kubebuilder:validation:Optional
	SameHost []*string `json:"sameHost,omitempty" tf:"same_host,omitempty"`
}

func (*SchedulerHintsParameters) DeepCopy

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

func (*SchedulerHintsParameters) DeepCopyInto

func (in *SchedulerHintsParameters) DeepCopyInto(out *SchedulerHintsParameters)

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

type VolumeV3

type VolumeV3 struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              VolumeV3Spec   `json:"spec"`
	Status            VolumeV3Status `json:"status,omitempty"`
}

VolumeV3 is the Schema for the VolumeV3s API. Manages a V3 volume resource within OpenStack. +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,openstack}

func (*VolumeV3) DeepCopy

func (in *VolumeV3) DeepCopy() *VolumeV3

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

func (*VolumeV3) DeepCopyInto

func (in *VolumeV3) DeepCopyInto(out *VolumeV3)

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

func (*VolumeV3) DeepCopyObject

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

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

func (*VolumeV3) GetCondition

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

GetCondition of this VolumeV3.

func (*VolumeV3) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this VolumeV3

func (*VolumeV3) GetDeletionPolicy

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

GetDeletionPolicy of this VolumeV3.

func (*VolumeV3) GetID

func (tr *VolumeV3) GetID() string

GetID returns ID of underlying Terraform resource of this VolumeV3

func (*VolumeV3) GetObservation

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

GetObservation of this VolumeV3

func (*VolumeV3) GetParameters

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

GetParameters of this VolumeV3

func (*VolumeV3) GetProviderConfigReference

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

GetProviderConfigReference of this VolumeV3.

func (*VolumeV3) GetProviderReference

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

GetProviderReference of this VolumeV3. Deprecated: Use GetProviderConfigReference.

func (*VolumeV3) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this VolumeV3.

func (*VolumeV3) GetTerraformResourceType

func (mg *VolumeV3) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this VolumeV3

func (*VolumeV3) GetTerraformSchemaVersion

func (tr *VolumeV3) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*VolumeV3) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this VolumeV3.

func (*VolumeV3) LateInitialize

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

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

func (*VolumeV3) SetConditions

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

SetConditions of this VolumeV3.

func (*VolumeV3) SetDeletionPolicy

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

SetDeletionPolicy of this VolumeV3.

func (*VolumeV3) SetObservation

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

SetObservation for this VolumeV3

func (*VolumeV3) SetParameters

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

SetParameters for this VolumeV3

func (*VolumeV3) SetProviderConfigReference

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

SetProviderConfigReference of this VolumeV3.

func (*VolumeV3) SetProviderReference

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

SetProviderReference of this VolumeV3. Deprecated: Use SetProviderConfigReference.

func (*VolumeV3) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this VolumeV3.

func (*VolumeV3) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this VolumeV3.

type VolumeV3List

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

VolumeV3List contains a list of VolumeV3s

func (*VolumeV3List) DeepCopy

func (in *VolumeV3List) DeepCopy() *VolumeV3List

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

func (*VolumeV3List) DeepCopyInto

func (in *VolumeV3List) DeepCopyInto(out *VolumeV3List)

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

func (*VolumeV3List) DeepCopyObject

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

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

func (*VolumeV3List) GetItems

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

GetItems of this VolumeV3List.

type VolumeV3Observation

type VolumeV3Observation struct {

	// If a volume is attached to an instance, this attribute will
	// display the Attachment ID, Instance ID, and the Device as the Instance
	// sees it.
	Attachment []AttachmentObservation `json:"attachment,omitempty" tf:"attachment,omitempty"`

	ID *string `json:"id,omitempty" tf:"id,omitempty"`
}

func (*VolumeV3Observation) DeepCopy

func (in *VolumeV3Observation) DeepCopy() *VolumeV3Observation

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

func (*VolumeV3Observation) DeepCopyInto

func (in *VolumeV3Observation) DeepCopyInto(out *VolumeV3Observation)

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

type VolumeV3Parameters

type VolumeV3Parameters struct {

	// The availability zone for the volume.
	// Changing this creates a new volume.
	// +kubebuilder:validation:Optional
	AvailabilityZone *string `json:"availabilityZone,omitempty" tf:"availability_zone,omitempty"`

	// The consistency group to place the volume
	// in.
	// +kubebuilder:validation:Optional
	ConsistencyGroupID *string `json:"consistencyGroupId,omitempty" tf:"consistency_group_id,omitempty"`

	// A description of the volume. Changing this updates
	// the volume's description.
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// When this option is set it allows extending
	// attached volumes. Note: updating size of an attached volume requires Cinder
	// support for version 3.42 and a compatible storage driver.
	// +kubebuilder:validation:Optional
	EnableOnlineResize *bool `json:"enableOnlineResize,omitempty" tf:"enable_online_resize,omitempty"`

	// The image ID from which to create the volume.
	// Changing this creates a new volume.
	// +kubebuilder:validation:Optional
	ImageID *string `json:"imageId,omitempty" tf:"image_id,omitempty"`

	// Metadata key/value pairs to associate with the volume.
	// Changing this updates the existing volume metadata.
	// +kubebuilder:validation:Optional
	Metadata map[string]*string `json:"metadata,omitempty" tf:"metadata,omitempty"`

	// Allow the volume to be attached to more than one Compute instance.
	// +kubebuilder:validation:Optional
	Multiattach *bool `json:"multiattach,omitempty" tf:"multiattach,omitempty"`

	// A unique name for the volume. Changing this updates the
	// volume's name.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// The region in which to create the volume. If
	// omitted, the region argument of the provider is used. Changing this
	// creates a new volume.
	// +kubebuilder:validation:Optional
	Region *string `json:"region,omitempty" tf:"region,omitempty"`

	// Provide the Cinder scheduler with hints on where
	// to instantiate a volume in the OpenStack cloud. The available hints are described below.
	// +kubebuilder:validation:Optional
	SchedulerHints []SchedulerHintsParameters `json:"schedulerHints,omitempty" tf:"scheduler_hints,omitempty"`

	// The size of the volume to create (in gigabytes).
	// +kubebuilder:validation:Required
	Size *float64 `json:"size" tf:"size,omitempty"`

	// The snapshot ID from which to create the volume.
	// Changing this creates a new volume.
	// +kubebuilder:validation:Optional
	SnapshotID *string `json:"snapshotId,omitempty" tf:"snapshot_id,omitempty"`

	// The volume ID to replicate with.
	// +kubebuilder:validation:Optional
	SourceReplica *string `json:"sourceReplica,omitempty" tf:"source_replica,omitempty"`

	// The volume ID from which to create the volume.
	// Changing this creates a new volume.
	// +kubebuilder:validation:Optional
	SourceVolID *string `json:"sourceVolId,omitempty" tf:"source_vol_id,omitempty"`

	// The type of volume to create.
	// Changing this creates a new volume.
	// +kubebuilder:validation:Optional
	VolumeType *string `json:"volumeType,omitempty" tf:"volume_type,omitempty"`
}

func (*VolumeV3Parameters) DeepCopy

func (in *VolumeV3Parameters) DeepCopy() *VolumeV3Parameters

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

func (*VolumeV3Parameters) DeepCopyInto

func (in *VolumeV3Parameters) DeepCopyInto(out *VolumeV3Parameters)

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

type VolumeV3Spec

type VolumeV3Spec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     VolumeV3Parameters `json:"forProvider"`
}

VolumeV3Spec defines the desired state of VolumeV3

func (*VolumeV3Spec) DeepCopy

func (in *VolumeV3Spec) DeepCopy() *VolumeV3Spec

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

func (*VolumeV3Spec) DeepCopyInto

func (in *VolumeV3Spec) DeepCopyInto(out *VolumeV3Spec)

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

type VolumeV3Status

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

VolumeV3Status defines the observed state of VolumeV3.

func (*VolumeV3Status) DeepCopy

func (in *VolumeV3Status) DeepCopy() *VolumeV3Status

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

func (*VolumeV3Status) DeepCopyInto

func (in *VolumeV3Status) DeepCopyInto(out *VolumeV3Status)

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