v1alpha1

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.description) || (has(self.initProvider) && has(self.initProvider.description))",message="spec.forProvider.description is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.images) || (has(self.initProvider) && has(self.initProvider.images))",message="spec.forProvider.images is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.label) || (has(self.initProvider) && has(self.initProvider.label))",message="spec.forProvider.label is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.script) || (has(self.initProvider) && has(self.initProvider.script))",message="spec.forProvider.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="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 (*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) GetInitParameters added in v0.0.16

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

GetInitParameters of this Stackscript

func (*Stackscript) GetManagementPolicies added in v0.0.16

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

GetManagementPolicies of this Stackscript.

func (*Stackscript) GetMergedParameters added in v0.0.16

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

GetInitParameters 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) 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) Hub added in v0.0.16

func (tr *Stackscript) Hub()

Hub marks this type as a conversion hub.

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) SetManagementPolicies added in v0.0.16

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

SetManagementPolicies 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) 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 StackscriptInitParameters added in v0.0.16

type StackscriptInitParameters struct {

	// A description for the StackScript.
	// A description for the StackScript.
	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.
	// +listType=set
	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"`
}

func (*StackscriptInitParameters) DeepCopy added in v0.0.16

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

func (*StackscriptInitParameters) DeepCopyInto added in v0.0.16

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

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.
	// +listType=set
	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
	// +listType=set
	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"`
	// 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 StackscriptInitParameters `json:"initProvider,omitempty"`
}

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 UserDefinedFieldsInitParameters added in v0.0.16

type UserDefinedFieldsInitParameters struct {
}

func (*UserDefinedFieldsInitParameters) DeepCopy added in v0.0.16

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

func (*UserDefinedFieldsInitParameters) DeepCopyInto added in v0.0.16

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