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

Documentation

Overview

+groupName=reserved.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: reserved.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 IpBlock

type IpBlock struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              IpBlockSpec   `json:"spec,omitempty"`
	Status            IpBlockStatus `json:"status,omitempty"`
}

func (*IpBlock) DeepCopy

func (in *IpBlock) DeepCopy() *IpBlock

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

func (*IpBlock) DeepCopyInto

func (in *IpBlock) DeepCopyInto(out *IpBlock)

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

func (*IpBlock) DeepCopyObject

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

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

func (*IpBlock) SetupWebhookWithManager

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

func (*IpBlock) ValidateCreate

func (r *IpBlock) ValidateCreate() error

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

func (*IpBlock) ValidateDelete

func (r *IpBlock) ValidateDelete() error

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

func (*IpBlock) ValidateUpdate

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

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

type IpBlockList

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

IpBlockList is a list of IpBlocks

func (*IpBlockList) DeepCopy

func (in *IpBlockList) DeepCopy() *IpBlockList

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

func (*IpBlockList) DeepCopyInto

func (in *IpBlockList) DeepCopyInto(out *IpBlockList)

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

func (*IpBlockList) DeepCopyObject

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

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

type IpBlockSpec

type IpBlockSpec struct {
	State *IpBlockSpecResource `json:"state,omitempty" tf:"-"`

	Resource IpBlockSpecResource `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 (*IpBlockSpec) DeepCopy

func (in *IpBlockSpec) DeepCopy() *IpBlockSpec

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

func (*IpBlockSpec) DeepCopyInto

func (in *IpBlockSpec) DeepCopyInto(out *IpBlockSpec)

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

type IpBlockSpecResource

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

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

	// +optional
	Address *string `json:"address,omitempty" tf:"address"`
	// Address family as integer (4 or 6)
	// +optional
	AddressFamily *int64 `json:"addressFamily,omitempty" tf:"address_family"`
	// Length of CIDR prefix of the block as integer
	// +optional
	Cidr *int64 `json:"cidr,omitempty" tf:"cidr"`
	// +optional
	CidrNotation *string `json:"cidrNotation,omitempty" tf:"cidr_notation"`
	// Custom Data is an arbitrary object (submitted in Terraform as serialized JSON) to assign to the IP Reservation. This may be helpful for self-managed IPAM. The object must be valid JSON.
	// +optional
	CustomData *string `json:"customData,omitempty" tf:"custom_data"`
	// Arbitrary description
	// +optional
	Description *string `json:"description,omitempty" tf:"description"`
	// Facility where to allocate the public IP address block, makes sense only for type==public_ipv4, must be empty for type==global_ipv4, conflicts with metro
	// +optional
	Facility *string `json:"facility,omitempty" tf:"facility"`
	// +optional
	Gateway *string `json:"gateway,omitempty" tf:"gateway"`
	// Flag indicating whether IP block is global, i.e. assignable in any location
	// +optional
	Global *bool `json:"global,omitempty" tf:"global"`
	// +optional
	Manageable *bool `json:"manageable,omitempty" tf:"manageable"`
	// +optional
	Management *bool `json:"management,omitempty" tf:"management"`
	// Metro where to allocate the public IP address block, makes sense only for type==public_ipv4, must be empty for type==global_ipv4, conflicts with facility
	// +optional
	Metro *string `json:"metro,omitempty" tf:"metro"`
	// Mask in decimal notation, e.g. 255.255.255.0
	// +optional
	Netmask *string `json:"netmask,omitempty" tf:"netmask"`
	// Network IP address portion of the block specification
	// +optional
	Network *string `json:"network,omitempty" tf:"network"`
	// The metal project ID where to allocate the address block
	ProjectID *string `json:"projectID" tf:"project_id"`
	// Flag indicating whether IP block is addressable from the Internet
	// +optional
	Public *bool `json:"public,omitempty" tf:"public"`
	// The number of allocated /32 addresses, a power of 2
	Quantity *int64 `json:"quantity" tf:"quantity"`
	// Tags attached to the reserved block
	// +optional
	Tags []string `json:"tags,omitempty" tf:"tags"`
	// Either global_ipv4 or public_ipv4, defaults to public_ipv4 for backward compatibility
	// +optional
	Type *string `json:"type,omitempty" tf:"type"`
	// Wait for the IP reservation block to reach a desired state on resource creation. One of: `pending`, `created`. The `created` state is default and recommended if the addresses are needed within the configuration. An error will be returned if a timeout or the `denied` state is encountered.
	// +optional
	WaitForState *string `json:"waitForState,omitempty" tf:"wait_for_state"`
}

func (*IpBlockSpecResource) DeepCopy

func (in *IpBlockSpecResource) DeepCopy() *IpBlockSpecResource

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

func (*IpBlockSpecResource) DeepCopyInto

func (in *IpBlockSpecResource) DeepCopyInto(out *IpBlockSpecResource)

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

type IpBlockStatus

type IpBlockStatus 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 (*IpBlockStatus) DeepCopy

func (in *IpBlockStatus) DeepCopy() *IpBlockStatus

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

func (*IpBlockStatus) DeepCopyInto

func (in *IpBlockStatus) DeepCopyInto(out *IpBlockStatus)

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