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 ¶
- Variables
- type Stack
- func (in *Stack) DeepCopy() *Stack
- func (in *Stack) DeepCopyInto(out *Stack)
- func (in *Stack) DeepCopyObject() runtime.Object
- func (r *Stack) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Stack) ValidateCreate() error
- func (r *Stack) ValidateDelete() error
- func (r *Stack) ValidateUpdate(old runtime.Object) error
- type StackList
- type StackResource
- type StackSpec
- type StackStatus
Constants ¶
This section is empty.
Variables ¶
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 )
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Stack.
func (*Stack) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Stack) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Stack) SetupWebhookWithManager ¶
func (*Stack) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Stack) ValidateDelete ¶
ValidateDelete 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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackList.
func (*StackList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StackList) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StackSpec.
func (*StackSpec) DeepCopyInto ¶
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.