v1alpha1

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=placementgroupassignment.linode.upbound.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "placementgroupassignment.linode.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 (
	PlacementGroupAssignment_Kind             = "PlacementGroupAssignment"
	PlacementGroupAssignment_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: PlacementGroupAssignment_Kind}.String()
	PlacementGroupAssignment_KindAPIVersion   = PlacementGroupAssignment_Kind + "." + CRDGroupVersion.String()
	PlacementGroupAssignment_GroupVersionKind = CRDGroupVersion.WithKind(PlacementGroupAssignment_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type PlacementGroupAssignment

type PlacementGroupAssignment struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              PlacementGroupAssignmentSpec   `json:"spec"`
	Status            PlacementGroupAssignmentStatus `json:"status,omitempty"`
}

PlacementGroupAssignment is the Schema for the PlacementGroupAssignments API. Manages a single assignment between a Linode and a Placement Group. +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].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:resource:scope=Cluster,categories={crossplane,managed,linode}

func (*PlacementGroupAssignment) DeepCopy

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

func (*PlacementGroupAssignment) DeepCopyInto

func (in *PlacementGroupAssignment) DeepCopyInto(out *PlacementGroupAssignment)

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

func (*PlacementGroupAssignment) DeepCopyObject

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

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

func (*PlacementGroupAssignment) GetCondition

GetCondition of this PlacementGroupAssignment.

func (*PlacementGroupAssignment) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this PlacementGroupAssignment

func (*PlacementGroupAssignment) GetDeletionPolicy

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

GetDeletionPolicy of this PlacementGroupAssignment.

func (*PlacementGroupAssignment) GetID

func (tr *PlacementGroupAssignment) GetID() string

GetID returns ID of underlying Terraform resource of this PlacementGroupAssignment

func (*PlacementGroupAssignment) GetInitParameters

func (tr *PlacementGroupAssignment) GetInitParameters() (map[string]any, error)

GetInitParameters of this PlacementGroupAssignment

func (*PlacementGroupAssignment) GetManagementPolicies

func (mg *PlacementGroupAssignment) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this PlacementGroupAssignment.

func (*PlacementGroupAssignment) GetMergedParameters

func (tr *PlacementGroupAssignment) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)

GetInitParameters of this PlacementGroupAssignment

func (*PlacementGroupAssignment) GetObservation

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

GetObservation of this PlacementGroupAssignment

func (*PlacementGroupAssignment) GetParameters

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

GetParameters of this PlacementGroupAssignment

func (*PlacementGroupAssignment) GetProviderConfigReference

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

GetProviderConfigReference of this PlacementGroupAssignment.

func (*PlacementGroupAssignment) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this PlacementGroupAssignment.

func (*PlacementGroupAssignment) GetTerraformResourceType

func (mg *PlacementGroupAssignment) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this PlacementGroupAssignment

func (*PlacementGroupAssignment) GetTerraformSchemaVersion

func (tr *PlacementGroupAssignment) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*PlacementGroupAssignment) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this PlacementGroupAssignment.

func (*PlacementGroupAssignment) Hub

func (tr *PlacementGroupAssignment) Hub()

Hub marks this type as a conversion hub.

func (*PlacementGroupAssignment) LateInitialize

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

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

func (*PlacementGroupAssignment) ResolveReferences

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

ResolveReferences of this PlacementGroupAssignment.

func (*PlacementGroupAssignment) SetConditions

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

SetConditions of this PlacementGroupAssignment.

func (*PlacementGroupAssignment) SetDeletionPolicy

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

SetDeletionPolicy of this PlacementGroupAssignment.

func (*PlacementGroupAssignment) SetManagementPolicies

func (mg *PlacementGroupAssignment) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this PlacementGroupAssignment.

func (*PlacementGroupAssignment) SetObservation

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

SetObservation for this PlacementGroupAssignment

func (*PlacementGroupAssignment) SetParameters

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

SetParameters for this PlacementGroupAssignment

func (*PlacementGroupAssignment) SetProviderConfigReference

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

SetProviderConfigReference of this PlacementGroupAssignment.

func (*PlacementGroupAssignment) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this PlacementGroupAssignment.

func (*PlacementGroupAssignment) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this PlacementGroupAssignment.

type PlacementGroupAssignmentInitParameters

type PlacementGroupAssignmentInitParameters struct {
	CompliantOnly *bool `json:"compliantOnly,omitempty" tf:"compliant_only,omitempty"`

	// The unique ID of the Linode to assign.
	// A set of Linode IDs to assign to the Placement Group.
	// +crossplane:generate:reference:type=github.com/linode/provider-linode/apis/instance/v1alpha1.Instance
	LinodeID *float64 `json:"linodeId,omitempty" tf:"linode_id,omitempty"`

	// Reference to a Instance in instance to populate linodeId.
	// +kubebuilder:validation:Optional
	LinodeIDRef *v1.Reference `json:"linodeIdRef,omitempty" tf:"-"`

	// Selector for a Instance in instance to populate linodeId.
	// +kubebuilder:validation:Optional
	LinodeIDSelector *v1.Selector `json:"linodeIdSelector,omitempty" tf:"-"`

	// The unique ID of the target Placement Group.
	// The ID of the Placement Group for this assignment.
	// +crossplane:generate:reference:type=github.com/linode/provider-linode/apis/placementgroup/v1alpha1.PlacementGroup
	PlacementGroupID *float64 `json:"placementGroupId,omitempty" tf:"placement_group_id,omitempty"`

	// Reference to a PlacementGroup in placementgroup to populate placementGroupId.
	// +kubebuilder:validation:Optional
	PlacementGroupIDRef *v1.Reference `json:"placementGroupIdRef,omitempty" tf:"-"`

	// Selector for a PlacementGroup in placementgroup to populate placementGroupId.
	// +kubebuilder:validation:Optional
	PlacementGroupIDSelector *v1.Selector `json:"placementGroupIdSelector,omitempty" tf:"-"`
}

func (*PlacementGroupAssignmentInitParameters) DeepCopy

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

func (*PlacementGroupAssignmentInitParameters) DeepCopyInto

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

type PlacementGroupAssignmentList

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

PlacementGroupAssignmentList contains a list of PlacementGroupAssignments

func (*PlacementGroupAssignmentList) DeepCopy

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

func (*PlacementGroupAssignmentList) DeepCopyInto

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

func (*PlacementGroupAssignmentList) DeepCopyObject

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

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

func (*PlacementGroupAssignmentList) GetItems

GetItems of this PlacementGroupAssignmentList.

type PlacementGroupAssignmentObservation

type PlacementGroupAssignmentObservation struct {
	CompliantOnly *bool `json:"compliantOnly,omitempty" tf:"compliant_only,omitempty"`

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

	// The unique ID of the Linode to assign.
	// A set of Linode IDs to assign to the Placement Group.
	LinodeID *float64 `json:"linodeId,omitempty" tf:"linode_id,omitempty"`

	// The unique ID of the target Placement Group.
	// The ID of the Placement Group for this assignment.
	PlacementGroupID *float64 `json:"placementGroupId,omitempty" tf:"placement_group_id,omitempty"`
}

func (*PlacementGroupAssignmentObservation) DeepCopy

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

func (*PlacementGroupAssignmentObservation) DeepCopyInto

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

type PlacementGroupAssignmentParameters

type PlacementGroupAssignmentParameters struct {

	// +kubebuilder:validation:Optional
	CompliantOnly *bool `json:"compliantOnly,omitempty" tf:"compliant_only,omitempty"`

	// The unique ID of the Linode to assign.
	// A set of Linode IDs to assign to the Placement Group.
	// +crossplane:generate:reference:type=github.com/linode/provider-linode/apis/instance/v1alpha1.Instance
	// +kubebuilder:validation:Optional
	LinodeID *float64 `json:"linodeId,omitempty" tf:"linode_id,omitempty"`

	// Reference to a Instance in instance to populate linodeId.
	// +kubebuilder:validation:Optional
	LinodeIDRef *v1.Reference `json:"linodeIdRef,omitempty" tf:"-"`

	// Selector for a Instance in instance to populate linodeId.
	// +kubebuilder:validation:Optional
	LinodeIDSelector *v1.Selector `json:"linodeIdSelector,omitempty" tf:"-"`

	// The unique ID of the target Placement Group.
	// The ID of the Placement Group for this assignment.
	// +crossplane:generate:reference:type=github.com/linode/provider-linode/apis/placementgroup/v1alpha1.PlacementGroup
	// +kubebuilder:validation:Optional
	PlacementGroupID *float64 `json:"placementGroupId,omitempty" tf:"placement_group_id,omitempty"`

	// Reference to a PlacementGroup in placementgroup to populate placementGroupId.
	// +kubebuilder:validation:Optional
	PlacementGroupIDRef *v1.Reference `json:"placementGroupIdRef,omitempty" tf:"-"`

	// Selector for a PlacementGroup in placementgroup to populate placementGroupId.
	// +kubebuilder:validation:Optional
	PlacementGroupIDSelector *v1.Selector `json:"placementGroupIdSelector,omitempty" tf:"-"`
}

func (*PlacementGroupAssignmentParameters) DeepCopy

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

func (*PlacementGroupAssignmentParameters) DeepCopyInto

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

type PlacementGroupAssignmentSpec

type PlacementGroupAssignmentSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     PlacementGroupAssignmentParameters `json:"forProvider"`
	// THIS IS A BETA FIELD. It will be honored
	// unless the Management Policies feature flag is disabled.
	// InitProvider holds the same fields as ForProvider, with the exception
	// of Identifier and other resource reference fields. The fields that are
	// in InitProvider are merged into ForProvider when the resource is created.
	// The same fields are also added to the terraform ignore_changes hook, to
	// avoid updating them after creation. This is useful for fields that are
	// required on creation, but we do not desire to update them after creation,
	// for example because of an external controller is managing them, like an
	// autoscaler.
	InitProvider PlacementGroupAssignmentInitParameters `json:"initProvider,omitempty"`
}

PlacementGroupAssignmentSpec defines the desired state of PlacementGroupAssignment

func (*PlacementGroupAssignmentSpec) DeepCopy

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

func (*PlacementGroupAssignmentSpec) DeepCopyInto

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

type PlacementGroupAssignmentStatus

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

PlacementGroupAssignmentStatus defines the observed state of PlacementGroupAssignment.

func (*PlacementGroupAssignmentStatus) DeepCopy

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

func (*PlacementGroupAssignmentStatus) DeepCopyInto

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