v1alpha1

package
v0.0.0-...-65f168d Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Overview

+kubebuilder:object:generate=true +groupName=null.template.upbound.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "null.template.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 (
	Resource_Kind             = "Resource"
	Resource_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Resource_Kind}.String()
	Resource_KindAPIVersion   = Resource_Kind + "." + CRDGroupVersion.String()
	Resource_GroupVersionKind = CRDGroupVersion.WithKind(Resource_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type Resource

type Resource struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ResourceSpec   `json:"spec"`
	Status            ResourceStatus `json:"status,omitempty"`
}

Resource is the Schema for the Resources API. The null_resource resource implements the standard resource lifecycle but takes no further action. The triggers argument allows specifying an arbitrary set of values that, when changed, will cause the resource to be replaced. +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,template}

func (*Resource) DeepCopy

func (in *Resource) DeepCopy() *Resource

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

func (*Resource) DeepCopyInto

func (in *Resource) DeepCopyInto(out *Resource)

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

func (*Resource) DeepCopyObject

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

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

func (*Resource) GetCondition

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

GetCondition of this Resource.

func (*Resource) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this Resource

func (*Resource) GetDeletionPolicy

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

GetDeletionPolicy of this Resource.

func (*Resource) GetID

func (tr *Resource) GetID() string

GetID returns ID of underlying Terraform resource of this Resource

func (*Resource) GetInitParameters

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

GetInitParameters of this Resource

func (*Resource) GetManagementPolicies

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

GetManagementPolicies of this Resource.

func (*Resource) GetObservation

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

GetObservation of this Resource

func (*Resource) GetParameters

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

GetParameters of this Resource

func (*Resource) GetProviderConfigReference

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

GetProviderConfigReference of this Resource.

func (*Resource) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this Resource.

func (*Resource) GetTerraformResourceType

func (mg *Resource) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Resource

func (*Resource) GetTerraformSchemaVersion

func (tr *Resource) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Resource) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Resource.

func (*Resource) LateInitialize

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

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

func (*Resource) SetConditions

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

SetConditions of this Resource.

func (*Resource) SetDeletionPolicy

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

SetDeletionPolicy of this Resource.

func (*Resource) SetManagementPolicies

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

SetManagementPolicies of this Resource.

func (*Resource) SetObservation

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

SetObservation for this Resource

func (*Resource) SetParameters

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

SetParameters for this Resource

func (*Resource) SetProviderConfigReference

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

SetProviderConfigReference of this Resource.

func (*Resource) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this Resource.

func (*Resource) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Resource.

type ResourceInitParameters

type ResourceInitParameters struct {

	// A map of arbitrary strings that, when changed, will force the null resource to be replaced, re-running any associated provisioners.
	Triggers map[string]*string `json:"triggers,omitempty" tf:"triggers,omitempty"`
}

func (*ResourceInitParameters) DeepCopy

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

func (*ResourceInitParameters) DeepCopyInto

func (in *ResourceInitParameters) DeepCopyInto(out *ResourceInitParameters)

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

type ResourceList

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

ResourceList contains a list of Resources

func (*ResourceList) DeepCopy

func (in *ResourceList) DeepCopy() *ResourceList

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

func (*ResourceList) DeepCopyInto

func (in *ResourceList) DeepCopyInto(out *ResourceList)

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

func (*ResourceList) DeepCopyObject

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

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

func (*ResourceList) GetItems

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

GetItems of this ResourceList.

type ResourceObservation

type ResourceObservation struct {
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// A map of arbitrary strings that, when changed, will force the null resource to be replaced, re-running any associated provisioners.
	Triggers map[string]*string `json:"triggers,omitempty" tf:"triggers,omitempty"`
}

func (*ResourceObservation) DeepCopy

func (in *ResourceObservation) DeepCopy() *ResourceObservation

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

func (*ResourceObservation) DeepCopyInto

func (in *ResourceObservation) DeepCopyInto(out *ResourceObservation)

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

type ResourceParameters

type ResourceParameters struct {

	// A map of arbitrary strings that, when changed, will force the null resource to be replaced, re-running any associated provisioners.
	// +kubebuilder:validation:Optional
	Triggers map[string]*string `json:"triggers,omitempty" tf:"triggers,omitempty"`
}

func (*ResourceParameters) DeepCopy

func (in *ResourceParameters) DeepCopy() *ResourceParameters

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

func (*ResourceParameters) DeepCopyInto

func (in *ResourceParameters) DeepCopyInto(out *ResourceParameters)

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

type ResourceSpec

type ResourceSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     ResourceParameters `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 ResourceInitParameters `json:"initProvider,omitempty"`
}

ResourceSpec defines the desired state of Resource

func (*ResourceSpec) DeepCopy

func (in *ResourceSpec) DeepCopy() *ResourceSpec

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

func (*ResourceSpec) DeepCopyInto

func (in *ResourceSpec) DeepCopyInto(out *ResourceSpec)

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

type ResourceStatus

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

ResourceStatus defines the observed state of Resource.

func (*ResourceStatus) DeepCopy

func (in *ResourceStatus) DeepCopy() *ResourceStatus

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

func (*ResourceStatus) DeepCopyInto

func (in *ResourceStatus) DeepCopyInto(out *ResourceStatus)

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