v1alpha1

package
v0.0.12 Latest Latest
Warning

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

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

Documentation

Overview

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

Index

Constants

View Source
const (
	CRDGroup   = "stackscript.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 (
	Stackscript_Kind             = "Stackscript"
	Stackscript_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Stackscript_Kind}.String()
	Stackscript_KindAPIVersion   = Stackscript_Kind + "." + CRDGroupVersion.String()
	Stackscript_GroupVersionKind = CRDGroupVersion.WithKind(Stackscript_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type Stackscript

type Stackscript struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.description)",message="description is a required parameter"
	// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.images)",message="images is a required parameter"
	// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.label)",message="label is a required parameter"
	// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.script)",message="script is a required parameter"
	Spec   StackscriptSpec   `json:"spec"`
	Status StackscriptStatus `json:"status,omitempty"`
}

Stackscript is the Schema for the Stackscripts API. Manages a Linode StackScript. +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,linode}

func (*Stackscript) DeepCopy

func (in *Stackscript) DeepCopy() *Stackscript

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

func (*Stackscript) DeepCopyInto

func (in *Stackscript) DeepCopyInto(out *Stackscript)

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

func (*Stackscript) DeepCopyObject

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

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

func (*Stackscript) GetCondition

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

GetCondition of this Stackscript.

func (*Stackscript) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this Stackscript

func (*Stackscript) GetDeletionPolicy

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

GetDeletionPolicy of this Stackscript.

func (*Stackscript) GetID

func (tr *Stackscript) GetID() string

GetID returns ID of underlying Terraform resource of this Stackscript

func (*Stackscript) GetManagementPolicy added in v0.0.8

func (mg *Stackscript) GetManagementPolicy() xpv1.ManagementPolicy

GetManagementPolicy of this Stackscript.

func (*Stackscript) GetObservation

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

GetObservation of this Stackscript

func (*Stackscript) GetParameters

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

GetParameters of this Stackscript

func (*Stackscript) GetProviderConfigReference

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

GetProviderConfigReference of this Stackscript.

func (*Stackscript) GetProviderReference

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

GetProviderReference of this Stackscript. Deprecated: Use GetProviderConfigReference.

func (*Stackscript) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this Stackscript.

func (*Stackscript) GetTerraformResourceType

func (mg *Stackscript) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Stackscript

func (*Stackscript) GetTerraformSchemaVersion

func (tr *Stackscript) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Stackscript) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Stackscript.

func (*Stackscript) LateInitialize

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

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

func (*Stackscript) SetConditions

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

SetConditions of this Stackscript.

func (*Stackscript) SetDeletionPolicy

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

SetDeletionPolicy of this Stackscript.

func (*Stackscript) SetManagementPolicy added in v0.0.8

func (mg *Stackscript) SetManagementPolicy(r xpv1.ManagementPolicy)

SetManagementPolicy of this Stackscript.

func (*Stackscript) SetObservation

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

SetObservation for this Stackscript

func (*Stackscript) SetParameters

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

SetParameters for this Stackscript

func (*Stackscript) SetProviderConfigReference

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

SetProviderConfigReference of this Stackscript.

func (*Stackscript) SetProviderReference

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

SetProviderReference of this Stackscript. Deprecated: Use SetProviderConfigReference.

func (*Stackscript) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this Stackscript.

func (*Stackscript) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Stackscript.

type StackscriptList

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

StackscriptList contains a list of Stackscripts

func (*StackscriptList) DeepCopy

func (in *StackscriptList) DeepCopy() *StackscriptList

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

func (*StackscriptList) DeepCopyInto

func (in *StackscriptList) DeepCopyInto(out *StackscriptList)

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

func (*StackscriptList) DeepCopyObject

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

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

func (*StackscriptList) GetItems

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

GetItems of this StackscriptList.

type StackscriptObservation

type StackscriptObservation struct {

	// The date this StackScript was created.
	// The date this StackScript was created.
	Created *string `json:"created,omitempty" tf:"created,omitempty"`

	// Count of currently active, deployed Linodes created from this StackScript.
	// Count of currently active, deployed Linodes created from this StackScript.
	DeploymentsActive *float64 `json:"deploymentsActive,omitempty" tf:"deployments_active,omitempty"`

	// The total number of times this StackScript has been deployed.
	// The total number of times this StackScript has been deployed.
	DeploymentsTotal *float64 `json:"deploymentsTotal,omitempty" tf:"deployments_total,omitempty"`

	// A description for the StackScript.
	// A description for the StackScript.
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

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

	// A set of Image IDs representing the Images that this StackScript is compatible for deploying with. any/all indicates that all available image distributions, including private images, are accepted. Currently private image IDs are not supported.
	// An array of Image IDs representing the Images that this StackScript is compatible for deploying with.
	Images []*string `json:"images,omitempty" tf:"images,omitempty"`

	// This determines whether other users can use your StackScript. Once a StackScript is made public, it cannot be made private. Changing
	// This determines whether other users can use your StackScript. Once a StackScript is made public, it cannot be made private.
	IsPublic *bool `json:"isPublic,omitempty" tf:"is_public,omitempty"`

	// The StackScript's label is for display purposes only.
	// The StackScript's label is for display purposes only.
	Label *string `json:"label,omitempty" tf:"label,omitempty"`

	// This field allows you to add notes for the set of revisions made to this StackScript.
	// This field allows you to add notes for the set of revisions made to this StackScript.
	RevNote *string `json:"revNote,omitempty" tf:"rev_note,omitempty"`

	// The script to execute when provisioning a new Linode with this StackScript.
	// The script to execute when provisioning a new Linode with this StackScript.
	Script *string `json:"script,omitempty" tf:"script,omitempty"`

	// The date this StackScript was updated.
	// The date this StackScript was updated.
	Updated *string `json:"updated,omitempty" tf:"updated,omitempty"`

	// This is a list of fields defined with a special syntax inside this StackScript that allow for supplying customized parameters during deployment.
	// This is a list of fields defined with a special syntax inside this StackScript that allow for supplying customized parameters during deployment.
	UserDefinedFields []UserDefinedFieldsObservation `json:"userDefinedFields,omitempty" tf:"user_defined_fields,omitempty"`

	// The Gravatar ID for the User who created the StackScript.
	// The Gravatar ID for the User who created the StackScript.
	UserGravatarID *string `json:"userGravatarId,omitempty" tf:"user_gravatar_id,omitempty"`

	// The User who created the StackScript.
	// The User who created the StackScript.
	Username *string `json:"username,omitempty" tf:"username,omitempty"`
}

func (*StackscriptObservation) DeepCopy

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

func (*StackscriptObservation) DeepCopyInto

func (in *StackscriptObservation) DeepCopyInto(out *StackscriptObservation)

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

type StackscriptParameters

type StackscriptParameters struct {

	// A description for the StackScript.
	// A description for the StackScript.
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// A set of Image IDs representing the Images that this StackScript is compatible for deploying with. any/all indicates that all available image distributions, including private images, are accepted. Currently private image IDs are not supported.
	// An array of Image IDs representing the Images that this StackScript is compatible for deploying with.
	// +kubebuilder:validation:Optional
	Images []*string `json:"images,omitempty" tf:"images,omitempty"`

	// This determines whether other users can use your StackScript. Once a StackScript is made public, it cannot be made private. Changing
	// This determines whether other users can use your StackScript. Once a StackScript is made public, it cannot be made private.
	// +kubebuilder:validation:Optional
	IsPublic *bool `json:"isPublic,omitempty" tf:"is_public,omitempty"`

	// The StackScript's label is for display purposes only.
	// The StackScript's label is for display purposes only.
	// +kubebuilder:validation:Optional
	Label *string `json:"label,omitempty" tf:"label,omitempty"`

	// This field allows you to add notes for the set of revisions made to this StackScript.
	// This field allows you to add notes for the set of revisions made to this StackScript.
	// +kubebuilder:validation:Optional
	RevNote *string `json:"revNote,omitempty" tf:"rev_note,omitempty"`

	// The script to execute when provisioning a new Linode with this StackScript.
	// The script to execute when provisioning a new Linode with this StackScript.
	// +kubebuilder:validation:Optional
	Script *string `json:"script,omitempty" tf:"script,omitempty"`
}

func (*StackscriptParameters) DeepCopy

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

func (*StackscriptParameters) DeepCopyInto

func (in *StackscriptParameters) DeepCopyInto(out *StackscriptParameters)

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

type StackscriptSpec

type StackscriptSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     StackscriptParameters `json:"forProvider"`
}

StackscriptSpec defines the desired state of Stackscript

func (*StackscriptSpec) DeepCopy

func (in *StackscriptSpec) DeepCopy() *StackscriptSpec

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

func (*StackscriptSpec) DeepCopyInto

func (in *StackscriptSpec) DeepCopyInto(out *StackscriptSpec)

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

type StackscriptStatus

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

StackscriptStatus defines the observed state of Stackscript.

func (*StackscriptStatus) DeepCopy

func (in *StackscriptStatus) DeepCopy() *StackscriptStatus

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

func (*StackscriptStatus) DeepCopyInto

func (in *StackscriptStatus) DeepCopyInto(out *StackscriptStatus)

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

type UserDefinedFieldsObservation

type UserDefinedFieldsObservation struct {

	// The default value. If not specified, this value will be used.
	Default *string `json:"default,omitempty" tf:"default,omitempty"`

	// An example value for the field.
	Example *string `json:"example,omitempty" tf:"example,omitempty"`

	// The StackScript's label is for display purposes only.
	Label *string `json:"label,omitempty" tf:"label,omitempty"`

	// A list of acceptable values for the field in any quantity, combination or order.
	ManyOf *string `json:"manyOf,omitempty" tf:"many_of,omitempty"`

	// The name of the field.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// A list of acceptable single values for the field.
	OneOf *string `json:"oneOf,omitempty" tf:"one_of,omitempty"`
}

func (*UserDefinedFieldsObservation) DeepCopy

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

func (*UserDefinedFieldsObservation) DeepCopyInto

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

type UserDefinedFieldsParameters

type UserDefinedFieldsParameters struct {
}

func (*UserDefinedFieldsParameters) DeepCopy

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

func (*UserDefinedFieldsParameters) 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