v1alpha1

package
v0.0.0-...-164f795 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the cloudapi v1alpha1 API group +kubebuilder:object:generate=true +groupName=cloudapi.scs.buaa.edu.cn

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "cloudapi.scs.buaa.edu.cn", 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
)

Functions

This section is empty.

Types

type Application

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

	Spec   ApplicationSpec   `json:"spec,omitempty"`
	Status ApplicationStatus `json:"status,omitempty"`
}

Application is the Schema for the applications API

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 ApplicationList

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

ApplicationList contains a list of Application

func (*ApplicationList) DeepCopy

func (in *ApplicationList) DeepCopy() *ApplicationList

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

func (*ApplicationList) DeepCopyInto

func (in *ApplicationList) DeepCopyInto(out *ApplicationList)

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

func (*ApplicationList) DeepCopyObject

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

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

type ApplicationSpec

type ApplicationSpec struct {
	Build BuilderSpec `json:"build"`
}

ApplicationSpec defines the desired state 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 ApplicationStatus

type ApplicationStatus struct {
}

ApplicationStatus defines the observed state of Application

func (*ApplicationStatus) DeepCopy

func (in *ApplicationStatus) DeepCopy() *ApplicationStatus

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

func (*ApplicationStatus) DeepCopyInto

func (in *ApplicationStatus) DeepCopyInto(out *ApplicationStatus)

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

type BuildContextGit

type BuildContextGit struct {
	URLWithAuth string  `json:"urlWithAuth"`
	Ref         *string `json:"ref,omitempty"`
}

func (*BuildContextGit) DeepCopy

func (in *BuildContextGit) DeepCopy() *BuildContextGit

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

func (*BuildContextGit) DeepCopyInto

func (in *BuildContextGit) DeepCopyInto(out *BuildContextGit)

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

type BuildContextHTTP

type BuildContextHTTP struct {
	URL string `json:"url"`
}

func (*BuildContextHTTP) DeepCopy

func (in *BuildContextHTTP) DeepCopy() *BuildContextHTTP

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

func (*BuildContextHTTP) DeepCopyInto

func (in *BuildContextHTTP) DeepCopyInto(out *BuildContextHTTP)

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

type BuildSpec

type BuildSpec struct {
	Context          BuilderContext `json:"context"`
	BaseImage        string         `json:"baseImage"`
	WorkingDir       *string        `json:"workingDir,omitempty"`
	Command          *string        `json:"command,omitempty"`
	RegistryLocation *string        `json:"registryLocation"`
	//+kubebuilder:default:=push-secret
	PushSecretName *string `json:"pushSecretName,omitempty"`
}

func (*BuildSpec) DeepCopy

func (in *BuildSpec) DeepCopy() *BuildSpec

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

func (*BuildSpec) DeepCopyInto

func (in *BuildSpec) DeepCopyInto(out *BuildSpec)

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

type Builder

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

	Spec   BuilderSpec   `json:"spec"`
	Status BuilderStatus `json:"status,omitempty"`
}

Builder is the Schema for the builders API

func (*Builder) CommonStatus

func (b *Builder) CommonStatus() *types.CommonStatus

func (*Builder) DeepCopy

func (in *Builder) DeepCopy() *Builder

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

func (*Builder) DeepCopyInto

func (in *Builder) DeepCopyInto(out *Builder)

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

func (*Builder) DeepCopyObject

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

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

func (*Builder) GetRound

func (b *Builder) GetRound() int

type BuilderContext

type BuilderContext struct {
	S3   *BuilderContextS3 `json:"s3,omitempty"`
	Git  *BuildContextGit  `json:"git,omitempty"`
	HTTP *BuildContextHTTP `json:"http,omitempty"`
	Raw  *string           `json:"raw,omitempty"`
}

func (*BuilderContext) DeepCopy

func (in *BuilderContext) DeepCopy() *BuilderContext

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

func (*BuilderContext) DeepCopyInto

func (in *BuilderContext) DeepCopyInto(out *BuilderContext)

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

type BuilderContextS3

type BuilderContextS3 struct {
	//+kubebuilder:default:=s3.amazonaws.com
	Endpoint string `json:"endpoint,omitempty"`
	Bucket   string `json:"bucket"`
	Region   string `json:"region"`
	//+kubebuilder:validation:Enum=http;https
	Scheme          string `json:"scheme,omitempty"`
	AccessKeyID     string `json:"accessKeyID"`
	AccessSecretKey string `json:"accessSecretKey"`
	ObjectKey       string `json:"objectKey"`

	FileType ContextFileType `json:"fileType,omitempty"`
}

func (*BuilderContextS3) DeepCopy

func (in *BuilderContextS3) DeepCopy() *BuilderContextS3

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

func (*BuilderContextS3) DeepCopyInto

func (in *BuilderContextS3) DeepCopyInto(out *BuilderContextS3)

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

type BuilderList

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

BuilderList contains a list of Builder

func (*BuilderList) DeepCopy

func (in *BuilderList) DeepCopy() *BuilderList

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

func (*BuilderList) DeepCopyInto

func (in *BuilderList) DeepCopyInto(out *BuilderList)

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

func (*BuilderList) DeepCopyObject

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

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

type BuilderSpec

type BuilderSpec struct {
	Context       BuilderContext `json:"context"`
	WorkspacePath string         `json:"workspacePath,omitempty"`
	//+kubebuilder:default:=Dockerfile
	DockerfilePath string `json:"dockerfilePath,omitempty"`
	Destination    string `json:"destination"`
	//+kubebuilder:default:=push-secret
	PushSecretName string `json:"pushSecretName,omitempty"`
	//+kubebuilder:default:=-1
	Round         int            `json:"round,omitempty"`
	DeployerHooks []DeployerHook `json:"deployerHooks,omitempty"`
}

BuilderSpec defines the desired state of Builder

func (*BuilderSpec) DeepCopy

func (in *BuilderSpec) DeepCopy() *BuilderSpec

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

func (*BuilderSpec) DeepCopyInto

func (in *BuilderSpec) DeepCopyInto(out *BuilderSpec)

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

type BuilderStatus

type BuilderStatus struct {
	Base *types.CommonStatus `json:"base,omitempty"`
}

BuilderStatus defines the observed state of Builder

func (*BuilderStatus) DeepCopy

func (in *BuilderStatus) DeepCopy() *BuilderStatus

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

func (*BuilderStatus) DeepCopyInto

func (in *BuilderStatus) DeepCopyInto(out *BuilderStatus)

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

type ContainerResource

type ContainerResource struct {
	CPU    int32 `json:"cpu"`    // m, 1000m = 1 core
	Memory int32 `json:"memory"` // Mi, 1024Mi = 1Gi
}

func (*ContainerResource) DeepCopy

func (in *ContainerResource) DeepCopy() *ContainerResource

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

func (*ContainerResource) DeepCopyInto

func (in *ContainerResource) DeepCopyInto(out *ContainerResource)

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

type ContainerSpec

type ContainerSpec struct {
	Name     string            `json:"name"`
	Image    string            `json:"image"`
	Resource ContainerResource `json:"resource"`
	//+kubebuilder:default:=false
	Initial    bool              `json:"initial,omitempty"`
	WorkingDir string            `json:"workingDir,omitempty"`
	Command    []string          `json:"command,omitempty"`
	Args       []string          `json:"args,omitempty"`
	Envs       map[string]string `json:"env,omitempty"`
	Ports      []Port            `json:"ports,omitempty"`
}

func (*ContainerSpec) DeepCopy

func (in *ContainerSpec) DeepCopy() *ContainerSpec

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

func (*ContainerSpec) DeepCopyInto

func (in *ContainerSpec) DeepCopyInto(out *ContainerSpec)

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

type ContextFileType

type ContextFileType string

+kubebuilder:validation:Enum=tar;tar.gz;zip;rar;dir

const (
	TAR   ContextFileType = "tar"
	TARGZ ContextFileType = "tar.gz"
	ZIP   ContextFileType = "zip"
	RAR   ContextFileType = "rar"
	DIR   ContextFileType = "dir"
)

type DeploySpec

type DeploySpec struct {
	ChangeEnv    bool              `json:"changeEnv,omitempty"`
	FilePair     *FilePair         `json:"filePair,omitempty"`
	BaseImage    *string           `json:"baseImage,omitempty"`
	Command      *string           `json:"command,omitempty"`
	ResourcePool string            `json:"resourcePool"`
	Resource     ContainerResource `json:"resource"`
	Envs         map[string]string `json:"env,omitempty"`
	WorkingDir   *string           `json:"workingDir,omitempty"`
	//+kubebuilder:validation:Enum=job;service
	Type        DeployType      `json:"type"`
	Ports       []Port          `json:"ports,omitempty"`
	SidecarList []ContainerSpec `json:"sidecarList,omitempty"`
}

func (*DeploySpec) DeepCopy

func (in *DeploySpec) DeepCopy() *DeploySpec

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

func (*DeploySpec) DeepCopyInto

func (in *DeploySpec) DeepCopyInto(out *DeploySpec)

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

type DeployType

type DeployType string
const (
	JOB     DeployType = "job"
	SERVICE DeployType = "service"
)

type Deployer

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

	Spec   DeployerSpec   `json:"spec"`
	Status DeployerStatus `json:"status,omitempty"`
}

Deployer is the Schema for the deployers API

func (*Deployer) CommonStatus

func (d *Deployer) CommonStatus() *types.CommonStatus

func (*Deployer) DeepCopy

func (in *Deployer) DeepCopy() *Deployer

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

func (*Deployer) DeepCopyInto

func (in *Deployer) DeepCopyInto(out *Deployer)

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

func (*Deployer) DeepCopyObject

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

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

func (*Deployer) GetRound

func (d *Deployer) GetRound() int

type DeployerHook

type DeployerHook struct {
	DeployerName string `json:"deployerName"`
	ResourcePool string `json:"resourcePool"`
	Image        string `json:"image,omitempty"`
	DynamicImage bool   `json:"dynamicImage,omitempty"`
	ForceRound   bool   `json:"forceRound,omitempty"`
}

func (*DeployerHook) DeepCopy

func (in *DeployerHook) DeepCopy() *DeployerHook

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

func (*DeployerHook) DeepCopyInto

func (in *DeployerHook) DeepCopyInto(out *DeployerHook)

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

type DeployerList

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

DeployerList contains a list of Deployer

func (*DeployerList) DeepCopy

func (in *DeployerList) DeepCopy() *DeployerList

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

func (*DeployerList) DeepCopyInto

func (in *DeployerList) DeepCopyInto(out *DeployerList)

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

func (*DeployerList) DeepCopyObject

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

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

type DeployerSpec

type DeployerSpec struct {
	//+kubebuilder:validation:Enum=job;service
	Type DeployType `json:"type"`
	//+kubebuilder:validation:MinItems=1
	Containers []ContainerSpec `json:"containers"`
	//+kubebuilder:default:=-1
	Round        int    `json:"round,omitempty"`
	ResourcePool string `json:"resourcePool"`
}

DeployerSpec defines the desired state of Deployer

func (*DeployerSpec) DeepCopy

func (in *DeployerSpec) DeepCopy() *DeployerSpec

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

func (*DeployerSpec) DeepCopyInto

func (in *DeployerSpec) DeepCopyInto(out *DeployerSpec)

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

type DeployerStatus

type DeployerStatus struct {
	Base         *types.CommonStatus `json:"base,omitempty"`
	ResourcePool string              `json:"resourcePool"`
}

DeployerStatus defines the observed state of Deployer

func (*DeployerStatus) DeepCopy

func (in *DeployerStatus) DeepCopy() *DeployerStatus

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

func (*DeployerStatus) DeepCopyInto

func (in *DeployerStatus) DeepCopyInto(out *DeployerStatus)

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

type Env

type Env struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

func (*Env) DeepCopy

func (in *Env) DeepCopy() *Env

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

func (*Env) DeepCopyInto

func (in *Env) DeepCopyInto(out *Env)

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

type FilePair

type FilePair struct {
	Source string `json:"source"`
	Target string `json:"target"`
}

func (*FilePair) DeepCopy

func (in *FilePair) DeepCopy() *FilePair

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

func (*FilePair) DeepCopyInto

func (in *FilePair) DeepCopyInto(out *FilePair)

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

type Port

type Port struct {
	Port int32 `json:"port"`
	//+kubebuilder:default:=tcp
	//+kubebuilder:validation:Enum=tcp;udp;sctp
	Protocol Protocol `json:"protocol,omitempty"`
	//+kubebuilder:default:=false
	Export bool `json:"export,omitempty"`
}

func (*Port) DeepCopy

func (in *Port) DeepCopy() *Port

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

func (*Port) DeepCopyInto

func (in *Port) DeepCopyInto(out *Port)

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

type Protocol

type Protocol string
const (
	TCP  Protocol = "tcp"
	UDP  Protocol = "udp"
	SCTP Protocol = "sctp"
)

type ResourcePool

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

	Spec   ResourcePoolSpec   `json:"spec,omitempty"`
	Status ResourcePoolStatus `json:"status,omitempty"`
}

ResourcePool is the Schema for the resourcepools API

func (*ResourcePool) DeepCopy

func (in *ResourcePool) DeepCopy() *ResourcePool

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

func (*ResourcePool) DeepCopyInto

func (in *ResourcePool) DeepCopyInto(out *ResourcePool)

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

func (*ResourcePool) DeepCopyObject

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

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

type ResourcePoolList

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

ResourcePoolList contains a list of ResourcePool

func (*ResourcePoolList) DeepCopy

func (in *ResourcePoolList) DeepCopy() *ResourcePoolList

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

func (*ResourcePoolList) DeepCopyInto

func (in *ResourcePoolList) DeepCopyInto(out *ResourcePoolList)

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

func (*ResourcePoolList) DeepCopyObject

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

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

type ResourcePoolSpec

type ResourcePoolSpec struct {
	Capacity *types.Resource `json:"capacity"`
}

ResourcePoolSpec defines the desired state of ResourcePool

func (*ResourcePoolSpec) DeepCopy

func (in *ResourcePoolSpec) DeepCopy() *ResourcePoolSpec

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

func (*ResourcePoolSpec) DeepCopyInto

func (in *ResourcePoolSpec) DeepCopyInto(out *ResourcePoolSpec)

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

type ResourcePoolStatus

type ResourcePoolStatus struct {
	Usage []ResourceUsage `json:"usage,omitempty"`
	Free  *types.Resource `json:"free,omitempty"`
}

ResourcePoolStatus defines the observed state of ResourcePool

func (*ResourcePoolStatus) DeepCopy

func (in *ResourcePoolStatus) DeepCopy() *ResourcePoolStatus

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

func (*ResourcePoolStatus) DeepCopyInto

func (in *ResourcePoolStatus) DeepCopyInto(out *ResourcePoolStatus)

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

type ResourceUsage

type ResourceUsage struct {
	Resource       *types.Resource       `json:"resource"`
	TypeMeta       metav1.TypeMeta       `json:"typeMeta"`
	NamespacedName *types.NamespacedName `json:"namespacedName"`
	DisplayName    string                `json:"displayName"`
}

func (*ResourceUsage) DeepCopy

func (in *ResourceUsage) DeepCopy() *ResourceUsage

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

func (*ResourceUsage) DeepCopyInto

func (in *ResourceUsage) DeepCopyInto(out *ResourceUsage)

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

type Workflow

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

	Spec   WorkflowSpec   `json:"spec"`
	Status WorkflowStatus `json:"status,omitempty"`
}

Workflow is the Schema for the workflows API

func (*Workflow) CommonStatus

func (w *Workflow) CommonStatus() *types.CommonStatus

func (*Workflow) DeepCopy

func (in *Workflow) DeepCopy() *Workflow

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

func (*Workflow) DeepCopyInto

func (in *Workflow) DeepCopyInto(out *Workflow)

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

func (*Workflow) DeepCopyObject

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

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

func (*Workflow) GetRound

func (w *Workflow) GetRound() int

type WorkflowList

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

WorkflowList contains a list of Workflow

func (*WorkflowList) DeepCopy

func (in *WorkflowList) DeepCopy() *WorkflowList

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

func (*WorkflowList) DeepCopyInto

func (in *WorkflowList) DeepCopyInto(out *WorkflowList)

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

func (*WorkflowList) DeepCopyObject

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

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

type WorkflowSpec

type WorkflowSpec struct {
	//+kubebuilder:default=-1
	Round int `json:"round,omitempty"`

	Build  *BuildSpec  `json:"build,omitempty"`
	Deploy *DeploySpec `json:"deploy"`
}

WorkflowSpec defines the desired state of Workflow

func (*WorkflowSpec) DeepCopy

func (in *WorkflowSpec) DeepCopy() *WorkflowSpec

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

func (*WorkflowSpec) DeepCopyInto

func (in *WorkflowSpec) DeepCopyInto(out *WorkflowSpec)

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

type WorkflowStage

type WorkflowStage string
const (
	// WorkflowStagePending means the application is pending to be deployed.
	WorkflowStagePending WorkflowStage = "Pending"
	// ApplicationStageBuilding means the application is being built.
	WorkflowStageBuilding WorkflowStage = "Building"
	// WorkflowStageDeploying means the application is being deployed.
	// If the application is a job, this stage means the job is running.
	WorkflowStageDeploying WorkflowStage = "Deploying"
	// WorkflowStageServing means the application is serving.
	// If the application is a job, this stage means the job has finished.
	WorkflowStageServing WorkflowStage = "Serving"
)

type WorkflowStatus

type WorkflowStatus struct {
	Stage WorkflowStage       `json:"stage,omitempty"`
	Base  *types.CommonStatus `json:"base,omitempty"`
}

WorkflowStatus defines the observed state of Workflow

func (*WorkflowStatus) DeepCopy

func (in *WorkflowStatus) DeepCopy() *WorkflowStatus

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

func (*WorkflowStatus) DeepCopyInto

func (in *WorkflowStatus) DeepCopyInto(out *WorkflowStatus)

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