v1alpha1

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the v1alpha1 API group +kubebuilder:object:generate=true +groupName=cloudformation.services.k8s.aws.cuppett.dev

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "cloudformation.services.k8s.aws.cuppett.dev", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var (
	ErrBothTemplateAndUrl = coreerrors.New("Template and TemplateUrl cannot both be provided")
	ErrNeedTemplateOrUrl  = coreerrors.New("Template or TemplateUrl must be provided")
	ErrMissingRole        = coreerrors.New("Role cannot be omitted on update")
	ErrRoleArnTooShort    = coreerrors.New("Role ARN length must be at least 20 characters.")
	ErrCannotChangeOnFail = coreerrors.New("You cannot change/update onFailure after create.")
	ErrTooManyARNs        = coreerrors.New("You cannot specify more than 5 NotificationARNs.")
	ErrCannotRenameStacks = coreerrors.New("You cannot change the name of a stack after creation.")
	ErrStackNameTooLong   = coreerrors.New("Stack names limited to 64 characters.")
	ErrBadCapability      = coreerrors.New("Invalid capability specified.")

	ErrStackNameFormat = coreerrors.New("Stack name can include letters (A-Z and a-z), numbers (0-9), and dashes (-). Must start with a letter.")
)

Functions

This section is empty.

Types

type Stack

type Stack struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   StackSpec   `json:"spec,omitempty"`
	Status StackStatus `json:"status,omitempty"`
}

Stack is the Schema for the stacks API

func (*Stack) DeepCopy

func (in *Stack) DeepCopy() *Stack

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

func (*Stack) DeepCopyInto

func (in *Stack) DeepCopyInto(out *Stack)

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

func (*Stack) DeepCopyObject

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

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

func (*Stack) SetupWebhookWithManager

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

func (*Stack) ValidateCreate

func (r *Stack) ValidateCreate() error

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

func (*Stack) ValidateDelete

func (r *Stack) ValidateDelete() error

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

func (*Stack) ValidateUpdate

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

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

type StackList

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

StackList contains a list of Stack

func (*StackList) DeepCopy

func (in *StackList) DeepCopy() *StackList

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

func (*StackList) DeepCopyInto

func (in *StackList) DeepCopyInto(out *StackList)

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

func (*StackList) DeepCopyObject

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

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

type StackResource

type StackResource struct {
	LogicalId  string `json:"logicalID"`
	PhysicalId string `json:"physicalID"`
	Type       string `json:"type"`
	Status     string `json:"status"`
	// +kubebuilder:validation:Optional
	// +optional
	StatusReason string `json:"statusReason,omitempty"`
}

Defines a resource provided/managed by a Stack and its current state

func (*StackResource) DeepCopy

func (in *StackResource) DeepCopy() *StackResource

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

func (*StackResource) DeepCopyInto

func (in *StackResource) DeepCopyInto(out *StackResource)

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

type StackSpec

type StackSpec struct {
	// +kubebuilder:validation:Optional
	// +optional
	Capabilities []string `json:"capabilities,omitempty"`
	// +kubebuilder:validation:Optional
	// +optional
	NotificationArns []string `json:"notificationArns,omitempty"`
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Enum=DO_NOTHING;ROLLBACK;DELETE
	// +optional
	OnFailure string `json:"onFailure,omitempty"`
	// +kubebuilder:validation:Optional
	// +optional
	Parameters map[string]string `json:"parameters,omitempty"`
	// +kubebuilder:validation:Optional
	// +optional
	RoleARN string `json:"roleArn,omitempty"`
	// +kubebuilder:validation:Optional
	// +optional
	StackName string `json:"stackName,omitempty"`
	// +kubebuilder:validation:Optional
	// +optional
	Tags map[string]string `json:"tags,omitempty"`

	// +kubebuilder:validation:Optional
	// +optional
	Template string `json:"template,omitempty"`
	// +kubebuilder:validation:Optional
	// +optional
	TemplateUrl string `json:"templateUrl,omitempty"`
}

Defines the desired state of Stack

func (*StackSpec) DeepCopy

func (in *StackSpec) DeepCopy() *StackSpec

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

func (*StackSpec) DeepCopyInto

func (in *StackSpec) DeepCopyInto(out *StackSpec)

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

type StackStatus

type StackStatus struct {
	StackID string `json:"stackID"`
	// +kubebuilder:validation:Optional
	// +optional
	StackStatus string `json:"stackStatus"`
	// +kubebuilder:validation:Optional
	// +optional
	CreatedTime *metav1.Time `json:"createdTime,omitempty"`
	// +kubebuilder:validation:Optional
	// +optional
	UpdatedTime *metav1.Time `json:"updatedTime,omitempty"`
	// +kubebuilder:validation:Optional
	// +optional
	Outputs map[string]string `json:"outputs,omitempty"`
	// +kubebuilder:validation:Optional
	// +optional
	Resources []StackResource `json:"resources,omitempty"`
	// +kubebuilder:validation:Optional
	// +optional
	RoleARN string `json:"roleArn,omitempty"`
}

Defines the observed state of Stack

func (*StackStatus) DeepCopy

func (in *StackStatus) DeepCopy() *StackStatus

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

func (*StackStatus) DeepCopyInto

func (in *StackStatus) DeepCopyInto(out *StackStatus)

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