v1alpha1

package
v0.0.0-...-a5e3c8c Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the module-deployment v1alpha1 API group +kubebuilder:object:generate=true +groupName=koupleless.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "koupleless.io", 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 Module

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

	Spec   ModuleSpec   `json:"spec,omitempty"`
	Status ModuleStatus `json:"status,omitempty"`
}

Module is the Schema for the modules API

func (*Module) DeepCopy

func (in *Module) DeepCopy() *Module

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

func (*Module) DeepCopyInto

func (in *Module) DeepCopyInto(out *Module)

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

func (*Module) DeepCopyObject

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

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

type ModuleDeployment

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

	Spec   ModuleDeploymentSpec   `json:"spec,omitempty"`
	Status ModuleDeploymentStatus `json:"status,omitempty"`
}

ModuleDeployment is the Schema for the moduledeployments API

func (*ModuleDeployment) DeepCopy

func (in *ModuleDeployment) DeepCopy() *ModuleDeployment

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

func (*ModuleDeployment) DeepCopyInto

func (in *ModuleDeployment) DeepCopyInto(out *ModuleDeployment)

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

func (*ModuleDeployment) DeepCopyObject

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

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

type ModuleDeploymentCondition

type ModuleDeploymentCondition struct {
	// Type of in place set condition.
	Type ModuleDeploymentConditionType `json:"type,omitempty"`

	// Status of the condition, one of True, False, Unknown.
	Status corev1.ConditionStatus `json:"status,omitempty"`

	// Last time the condition transitioned from one status to another.
	LastTransitionTime metav1.Time `json:"last_transition_time,omitempty"`

	// The reason for the condition's last transition.
	Reason string `json:"reason,omitempty"`

	// A human readable message indicating details about the transition.
	Message string `json:"message,omitempty"`
}

func (*ModuleDeploymentCondition) DeepCopy

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

func (*ModuleDeploymentCondition) DeepCopyInto

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

type ModuleDeploymentConditionType

type ModuleDeploymentConditionType string
const (
	// DeploymentAvailable Available means the deployment is available, ie. at least the minimum available
	// replicas required are up and running for at least minReadySeconds.
	DeploymentAvailable ModuleDeploymentConditionType = "Available"
	// DeploymentProgressing Progressing means the deployment is progressing. Progress for a deployment is
	// considered when a new replica set is created or adopted, and when new pods scale
	// up or old pods scale down. Progress is not estimated for paused deployments or
	// when progressDeadlineSeconds is not specified.
	DeploymentProgressing ModuleDeploymentConditionType = "Progressing"
	// DeploymentReplicaFailure ReplicaFailure is added in a deployment when one of its pods fails to be created
	// or deleted.
	DeploymentReplicaFailure ModuleDeploymentConditionType = "ReplicaFailure"
)

These are valid conditions of a deployment.

type ModuleDeploymentList

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

ModuleDeploymentList contains a list of ModuleDeployment

func (*ModuleDeploymentList) DeepCopy

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

func (*ModuleDeploymentList) DeepCopyInto

func (in *ModuleDeploymentList) DeepCopyInto(out *ModuleDeploymentList)

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

func (*ModuleDeploymentList) DeepCopyObject

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

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

type ModuleDeploymentSpec

type ModuleDeploymentSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	// +kubebuilder:validation:MinLength=1
	BaseDeploymentName string `json:"baseDeploymentName"`

	Template ModuleTemplateSpec `json:"template,omitempty"`

	// +kubebuilder:validation:Minimum=-1
	Replicas int32 `json:"replicas,omitempty"`

	MinReadySeconds int32 `json:"minReadySeconds,omitempty"`

	RevisionHistoryLimit int32 `json:"revisionHistoryLimit,omitempty"`

	ProgressDeadlineSeconds int32 `json:"progressDeadlineSeconds,omitempty"`

	// +kubebuilder:default:=0
	// +kubebuilder:validation:Minimum=0
	ConfirmBatchNum int32 `json:"confirmBatchNum,omitempty"`

	OperationStrategy ModuleOperationStrategy `json:"operationStrategy,omitempty"`

	SchedulingStrategy ModuleSchedulingStrategy `json:"schedulingStrategy,omitempty"`
}

ModuleDeploymentSpec defines the desired state of ModuleDeployment

func (*ModuleDeploymentSpec) DeepCopy

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

func (*ModuleDeploymentSpec) DeepCopyInto

func (in *ModuleDeploymentSpec) DeepCopyInto(out *ModuleDeploymentSpec)

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

type ModuleDeploymentStatus

type ModuleDeploymentStatus struct {
	Replicas int32 `json:"replicas,omitempty"`

	AvailableReplicas int32 `json:"availableReplicas,omitempty"`

	ReadyReplicas int32 `json:"readyReplicas,omitempty"`

	UnAvailableReplicas int32 `json:"unavailableReplicas,omitempty"`

	UpdatedReplicas int32 `json:"updatedReplicas,omitempty"`

	UpgradingReplicas int32 `json:"upgradingReplicas,omitempty"`

	UpdatedReadyReplicas int32 `json:"updatedReadyReplicas,omitempty"`

	UpdatedAvailableReplicas int32 `json:"updatedAvailableReplicas,omitempty"`

	CollisionCount *int32 `json:"collisionCount,omitempty"`

	Conditions []ModuleDeploymentCondition `json:"conditions,omitempty"`

	ReleaseStatus *ReleaseStatus `json:"releaseStatus,omitempty"`

	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
}

ModuleDeploymentStatus defines the observed state of ModuleDeployment

func (*ModuleDeploymentStatus) DeepCopy

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

func (*ModuleDeploymentStatus) DeepCopyInto

func (in *ModuleDeploymentStatus) DeepCopyInto(out *ModuleDeploymentStatus)

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

type ModuleInfo

type ModuleInfo struct {
	// +kubebuilder:validation:MinLength=1
	Name string `json:"name"`
	// +kubebuilder:validation:MinLength=1
	Version string `json:"version"`
	// +kubebuilder:validation:Format=uri
	Url  string `json:"url"`
	Type string `json:"type,omitempty"`
	Md5  string `json:"md5,omitempty"`
}

func (*ModuleInfo) DeepCopy

func (in *ModuleInfo) DeepCopy() *ModuleInfo

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

func (*ModuleInfo) DeepCopyInto

func (in *ModuleInfo) DeepCopyInto(out *ModuleInfo)

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

type ModuleInstanceStatus

type ModuleInstanceStatus string
const (
	ModuleInstanceStatusPending     ModuleInstanceStatus = "Pending"
	ModuleInstanceStatusPrepare     ModuleInstanceStatus = "Prepare"
	ModuleInstanceStatusUpgrading   ModuleInstanceStatus = "Upgrading"
	ModuleInstanceStatusCompleting  ModuleInstanceStatus = "Completing"
	ModuleInstanceStatusAvailable   ModuleInstanceStatus = "Available"
	ModuleInstanceStatusTerminating ModuleInstanceStatus = "Terminating"
)

type ModuleList

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

ModuleList contains a list of Module

func (*ModuleList) DeepCopy

func (in *ModuleList) DeepCopy() *ModuleList

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

func (*ModuleList) DeepCopyInto

func (in *ModuleList) DeepCopyInto(out *ModuleList)

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

func (*ModuleList) DeepCopyObject

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

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

type ModuleOperationStrategy

type ModuleOperationStrategy struct {
	NeedConfirm bool `json:"needConfirm,omitempty"`

	UseBeta bool `json:"useBeta,omitempty"`

	BatchCount int32 `json:"batchCount,omitempty"`

	MaxUnavailable int32 `json:"maxUnavailable,omitempty"`

	GrayTimeBetweenBatchSeconds int32 `json:"grayTimeBetweenBatchSeconds,omitempty"`

	UpgradePolicy ModuleUpgradeType `json:"upgradePolicy,omitempty"`

	ServiceStrategy ModuleServiceStrategy `json:"serviceStrategy,omitempty"`
}

func (*ModuleOperationStrategy) DeepCopy

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

func (*ModuleOperationStrategy) DeepCopyInto

func (in *ModuleOperationStrategy) DeepCopyInto(out *ModuleOperationStrategy)

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

type ModuleReplicaSet

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

	Spec   ModuleReplicaSetSpec   `json:"spec,omitempty"`
	Status ModuleReplicaSetStatus `json:"status,omitempty"`
}

ModuleReplicaSet is the Schema for the modulereplicasets API

func (*ModuleReplicaSet) DeepCopy

func (in *ModuleReplicaSet) DeepCopy() *ModuleReplicaSet

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

func (*ModuleReplicaSet) DeepCopyInto

func (in *ModuleReplicaSet) DeepCopyInto(out *ModuleReplicaSet)

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

func (*ModuleReplicaSet) DeepCopyObject

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

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

type ModuleReplicaSetList

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

ModuleReplicaSetList contains a list of ModuleReplicaSet

func (*ModuleReplicaSetList) DeepCopy

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

func (*ModuleReplicaSetList) DeepCopyInto

func (in *ModuleReplicaSetList) DeepCopyInto(out *ModuleReplicaSetList)

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

func (*ModuleReplicaSetList) DeepCopyObject

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

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

type ModuleReplicaSetSpec

type ModuleReplicaSetSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	Selector metav1.LabelSelector `json:"selector,omitempty"`

	Replicas int32 `json:"replicas,omitempty"`

	Template ModuleTemplateSpec `json:"template,omitempty"`

	OperationStrategy ModuleOperationStrategy `json:"operationStrategy,omitempty"`

	SchedulingStrategy ModuleSchedulingStrategy `json:"schedulingStrategy,omitempty"`

	MinReadySeconds int32 `json:"minReadySeconds,omitempty"`
}

ModuleReplicaSetSpec defines the desired state of ModuleReplicaSet

func (*ModuleReplicaSetSpec) DeepCopy

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

func (*ModuleReplicaSetSpec) DeepCopyInto

func (in *ModuleReplicaSetSpec) DeepCopyInto(out *ModuleReplicaSetSpec)

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

type ModuleReplicaSetStatus

type ModuleReplicaSetStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	Replicas int32 `json:"replicas,omitempty"`

	CurrentReplicas int32 `json:"currentReplicas,omitempty"`

	AvailableReplicas int32 `json:"availableReplicas,omitempty"`

	ReadyReplicas int32 `json:"readyReplicas,omitempty"`

	UnAvailableReplicas int32 `json:"unavailableReplicas,omitempty"`

	UpdatedReplicas int32 `json:"updatedReplicas,omitempty"`

	UpgradingReplicas int32 `json:"upgradingReplicas,omitempty"`

	UpdatedReadyReplicas int32 `json:"updatedReadyReplicas,omitempty"`

	UpdatedAvailableReplicas int32 `json:"updatedAvailableReplicas,omitempty"`

	CollisionCount *int32 `json:"collisionCount,omitempty"`

	Conditions []ModuleDeploymentCondition `json:"conditions,omitempty"`

	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
}

ModuleReplicaSetStatus defines the observed state of ModuleReplicaSet

func (*ModuleReplicaSetStatus) DeepCopy

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

func (*ModuleReplicaSetStatus) DeepCopyInto

func (in *ModuleReplicaSetStatus) DeepCopyInto(out *ModuleReplicaSetStatus)

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

type ModuleSchedulingStrategy

type ModuleSchedulingStrategy struct {

	// +kubebuilder:validation:Enum={"scatter","stacking"}
	// +kubebuilder:default="scatter"
	SchedulingPolicy ModuleSchedulingType `json:"schedulingPolicy,omitempty"`
}

func (*ModuleSchedulingStrategy) DeepCopy

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

func (*ModuleSchedulingStrategy) DeepCopyInto

func (in *ModuleSchedulingStrategy) DeepCopyInto(out *ModuleSchedulingStrategy)

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

type ModuleSchedulingType

type ModuleSchedulingType string
const (
	Scatter  ModuleSchedulingType = "scatter"
	Stacking ModuleSchedulingType = "stacking"
)

type ModuleServiceStrategy

type ModuleServiceStrategy struct {
	EnableModuleService bool `json:"enableModuleService,omitempty"`

	Port int32 `json:"port,omitempty"`

	TargetPort intstr.IntOrString `json:"targetPort,omitempty" protobuf:"bytes,4,opt,name=targetPort"`
}

func (*ModuleServiceStrategy) DeepCopy

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

func (*ModuleServiceStrategy) DeepCopyInto

func (in *ModuleServiceStrategy) DeepCopyInto(out *ModuleServiceStrategy)

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

type ModuleSpec

type ModuleSpec struct {
	Selector metav1.LabelSelector `json:"selector,omitempty"`
	Module   ModuleInfo           `json:"module"`

	UpgradePolicy ModuleUpgradeType `json:"upgradePolicy,omitempty"`
}

ModuleSpec defines the desired state of Module

func (*ModuleSpec) DeepCopy

func (in *ModuleSpec) DeepCopy() *ModuleSpec

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

func (*ModuleSpec) DeepCopyInto

func (in *ModuleSpec) DeepCopyInto(out *ModuleSpec)

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

type ModuleStatus

type ModuleStatus struct {
	Status ModuleInstanceStatus `json:"status,omitempty"`
	// Last time the ModuleStatus transitioned from one status to another.
	LastTransitionTime metav1.Time `json:"last_transition_time,omitempty"`
}

ModuleStatus defines the observed state of Module

func (*ModuleStatus) DeepCopy

func (in *ModuleStatus) DeepCopy() *ModuleStatus

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

func (*ModuleStatus) DeepCopyInto

func (in *ModuleStatus) DeepCopyInto(out *ModuleStatus)

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

type ModuleTemplate

type ModuleTemplate struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// Template defines the pods that will be created from this module template.
	// +optional
	Template ModuleTemplateSpec `json:"template,omitempty" protobuf:"bytes,2,opt,name=template"`
}

ModuleTemplate describes a template for creating copies of a predefined module.

func (*ModuleTemplate) DeepCopy

func (in *ModuleTemplate) DeepCopy() *ModuleTemplate

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

func (*ModuleTemplate) DeepCopyInto

func (in *ModuleTemplate) DeepCopyInto(out *ModuleTemplate)

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

type ModuleTemplateSpec

type ModuleTemplateSpec struct {
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// Specification of the desired behavior of the module
	// +optional
	Spec ModuleSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
}

func (*ModuleTemplateSpec) DeepCopy

func (in *ModuleTemplateSpec) DeepCopy() *ModuleTemplateSpec

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

func (*ModuleTemplateSpec) DeepCopyInto

func (in *ModuleTemplateSpec) DeepCopyInto(out *ModuleTemplateSpec)

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

type ModuleUpgradeType

type ModuleUpgradeType string
const (
	InstallThenUninstallUpgradePolicy ModuleUpgradeType = "install_then_uninstall"
	UninstallThenInstallUpgradePolicy ModuleUpgradeType = "uninstall_then_install"
	ScaleUpThenScaleDownUpgradePolicy ModuleUpgradeType = "scaleup_then_scaledown"
)

type ReleaseProgress

type ReleaseProgress string
const (
	ModuleDeploymentReleaseProgressInit                   ReleaseProgress = "Init"
	ModuleDeploymentReleaseProgressWaitingForConfirmation ReleaseProgress = "WaitingForConfirmation"
	ModuleDeploymentReleaseProgressExecuting              ReleaseProgress = "Executing"
	ModuleDeploymentReleaseProgressPaused                 ReleaseProgress = "Paused"
	ModuleDeploymentReleaseProgressCompleted              ReleaseProgress = "Completed"
	ModuleDeploymentReleaseProgressAborted                ReleaseProgress = "Aborted"
	ModuleDeploymentReleaseProgressTerminating            ReleaseProgress = "Terminating"
	ModuleDeploymentReleaseProgressTerminated             ReleaseProgress = "Terminated"
)

type ReleaseStatus

type ReleaseStatus struct {
	// Records the latest revision.
	// +optional
	UpdateRevision string `json:"updateRevision,omitempty"`

	// Records the current batch serial number.
	// +optional
	CurrentBatch int32 `json:"currentBatch,omitempty"`

	// Records the real batch count
	// +optional
	RealBatchCount int32 `json:"realBatchCount,omitempty"`

	// Records the original delta replicas
	// +optional
	OriginalDeltaReplicas int32 `json:"originalDeltaReplicas,omitempty"`

	// The phase current whole release reach
	// +optional
	Progress ReleaseProgress `json:"progress,omitempty"`

	// the phase current batch release reach
	BatchProgress ReleaseProgress `json:"batchProgress,omitempty"`

	// Last time the release transitioned from one status to another.
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`

	NextReconcileTime metav1.Time `json:"nextReconcileTime,omitempty"`
}

func (*ReleaseStatus) DeepCopy

func (in *ReleaseStatus) DeepCopy() *ReleaseStatus

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

func (*ReleaseStatus) DeepCopyInto

func (in *ReleaseStatus) DeepCopyInto(out *ReleaseStatus)

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