v1alpha1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

+groupName=spot.equinixmetal.kubeform.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: spot.GroupName, Version: "v1alpha1"}

Functions

func GetDecoder

func GetDecoder() map[string]jsoniter.ValDecoder

func GetEncoder

func GetEncoder() map[string]jsoniter.ValEncoder

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type MarketRequest

type MarketRequest struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              MarketRequestSpec   `json:"spec,omitempty"`
	Status            MarketRequestStatus `json:"status,omitempty"`
}

func (*MarketRequest) DeepCopy

func (in *MarketRequest) DeepCopy() *MarketRequest

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

func (*MarketRequest) DeepCopyInto

func (in *MarketRequest) DeepCopyInto(out *MarketRequest)

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

func (*MarketRequest) DeepCopyObject

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

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

func (*MarketRequest) SetupWebhookWithManager

func (r *MarketRequest) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*MarketRequest) ValidateCreate

func (r *MarketRequest) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*MarketRequest) ValidateDelete

func (r *MarketRequest) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*MarketRequest) ValidateUpdate

func (r *MarketRequest) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type MarketRequestList

type MarketRequestList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of MarketRequest CRD objects
	Items []MarketRequest `json:"items,omitempty"`
}

MarketRequestList is a list of MarketRequests

func (*MarketRequestList) DeepCopy

func (in *MarketRequestList) DeepCopy() *MarketRequestList

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

func (*MarketRequestList) DeepCopyInto

func (in *MarketRequestList) DeepCopyInto(out *MarketRequestList)

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

func (*MarketRequestList) DeepCopyObject

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

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

type MarketRequestSpec

type MarketRequestSpec struct {
	State *MarketRequestSpecResource `json:"state,omitempty" tf:"-"`

	Resource MarketRequestSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*MarketRequestSpec) DeepCopy

func (in *MarketRequestSpec) DeepCopy() *MarketRequestSpec

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

func (*MarketRequestSpec) DeepCopyInto

func (in *MarketRequestSpec) DeepCopyInto(out *MarketRequestSpec)

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

type MarketRequestSpecInstanceParameters

type MarketRequestSpecInstanceParameters struct {
	// +optional
	AlwaysPxe    *bool   `json:"alwaysPxe,omitempty" tf:"always_pxe"`
	BillingCycle *string `json:"billingCycle" tf:"billing_cycle"`
	// +optional
	Customdata *string `json:"customdata,omitempty" tf:"customdata"`
	// +optional
	Description *string `json:"description,omitempty" tf:"description"`
	// +optional
	Features []string `json:"features,omitempty" tf:"features"`
	Hostname *string  `json:"hostname" tf:"hostname"`
	// +optional
	IpxeScriptURL *string `json:"ipxeScriptURL,omitempty" tf:"ipxe_script_url"`
	// +optional
	Locked          *bool   `json:"locked,omitempty" tf:"locked"`
	OperatingSystem *string `json:"operatingSystem" tf:"operating_system"`
	Plan            *string `json:"plan" tf:"plan"`
	// +optional
	ProjectSSHKeys []string `json:"projectSSHKeys,omitempty" tf:"project_ssh_keys"`
	// +optional
	Tags []string `json:"tags,omitempty" tf:"tags"`
	// +optional
	TermintationTime *string `json:"termintationTime,omitempty" tf:"termintation_time"`
	// +optional
	UserSSHKeys []string `json:"userSSHKeys,omitempty" tf:"user_ssh_keys"`
	// +optional
	Userdata *string `json:"userdata,omitempty" tf:"userdata"`
}

func (*MarketRequestSpecInstanceParameters) DeepCopy

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

func (*MarketRequestSpecInstanceParameters) DeepCopyInto

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

type MarketRequestSpecInstanceParametersCodec

type MarketRequestSpecInstanceParametersCodec struct {
}

+k8s:deepcopy-gen=false

func (MarketRequestSpecInstanceParametersCodec) Decode

func (MarketRequestSpecInstanceParametersCodec) Encode

func (MarketRequestSpecInstanceParametersCodec) IsEmpty

type MarketRequestSpecResource

type MarketRequestSpecResource struct {
	Timeouts *base.ResourceTimeout `json:"timeouts,omitempty" tf:"timeouts"`

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

	// Maximum number devices to be created
	DevicesMax *int64 `json:"devicesMax" tf:"devices_max"`
	// Miniumum number devices to be created
	DevicesMin *int64 `json:"devicesMin" tf:"devices_min"`
	// Facility IDs where devices should be created
	// +optional
	Facilities []string `json:"facilities,omitempty" tf:"facilities"`
	// Parameters for devices provisioned from this request. You can find the parameter description from the [metal_device doc](device.md)
	InstanceParameters *MarketRequestSpecInstanceParameters `json:"instanceParameters" tf:"instance_parameters"`
	// Maximum price user is willing to pay per hour per device
	MaxBidPrice *float64 `json:"maxBidPrice" tf:"max_bid_price"`
	// Metro where devices should be created
	// +optional
	Metro *string `json:"metro,omitempty" tf:"metro"`
	// Project ID
	ProjectID *string `json:"projectID" tf:"project_id"`
	// On resource creation - wait until all desired devices are active, on resource destruction - wait until devices are removed
	// +optional
	WaitForDevices *bool `json:"waitForDevices,omitempty" tf:"wait_for_devices"`
}

func (*MarketRequestSpecResource) DeepCopy

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

func (*MarketRequestSpecResource) DeepCopyInto

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

type MarketRequestStatus

type MarketRequestStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*MarketRequestStatus) DeepCopy

func (in *MarketRequestStatus) DeepCopy() *MarketRequestStatus

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

func (*MarketRequestStatus) DeepCopyInto

func (in *MarketRequestStatus) DeepCopyInto(out *MarketRequestStatus)

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