Documentation ¶
Index ¶
Constants ¶
const ( Group = common.Group Version = "v1beta1" )
Package type metadata.
Variables ¶
var SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version}
SchemeGroupVersion is group version used to register these objects
Functions ¶
This section is empty.
Types ¶
type AppPolicy ¶
type AppPolicy struct { // Name is the unique name of the policy. Name string `json:"name"` Type string `json:"type"` // +kubebuilder:pruning:PreserveUnknownFields Properties *runtime.RawExtension `json:"properties,omitempty"` }
AppPolicy defines a global policy for all components in the app.
func (*AppPolicy) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppPolicy.
func (*AppPolicy) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Application ¶
type Application struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ApplicationSpec `json:"spec,omitempty"` Status common.AppStatus `json:"status,omitempty"` }
Application is the Schema for the applications API +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*Application) DeepCopy ¶
func (in *Application) DeepCopy() *Application
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Application.
func (*Application) DeepCopyInto ¶
func (in *Application) DeepCopyInto(out *Application)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Application) DeepCopyObject ¶
func (in *Application) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApplicationSpec ¶
type ApplicationSpec struct { Components []common.ApplicationComponent `json:"components"` // Policies defines the global policies for all components in the app, e.g. security, metrics, gitops, // multi-cluster placement rules, etc. // Policies are applied after components are rendered and before workflow steps are executed. Policies []AppPolicy `json:"policies,omitempty"` // Workflow defines how to customize the control logic. // If workflow is specified, Vela won't apply any resource, but provide rendered output in AppRevision. // Workflow steps are executed in array order, and each step: // - will have a context in annotation. // - should mark "finish" phase in status.conditions. Workflow *Workflow `json:"workflow,omitempty"` }
ApplicationSpec is the spec of Application
func (*ApplicationSpec) DeepCopy ¶
func (in *ApplicationSpec) DeepCopy() *ApplicationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationSpec.
func (*ApplicationSpec) DeepCopyInto ¶
func (in *ApplicationSpec) DeepCopyInto(out *ApplicationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Workflow ¶
type Workflow struct { Ref string `json:"ref,omitempty"` Mode *workflowv1alpha1.WorkflowExecuteMode `json:"mode,omitempty"` Steps []workflowv1alpha1.WorkflowStep `json:"steps,omitempty"` }
Workflow defines workflow steps and other attributes
func (*Workflow) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Workflow.
func (*Workflow) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.