v1alpha1

package
v0.0.0-...-29219c3 Latest Latest
Warning

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

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

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the lifecycle v1alpha1 API group +kubebuilder:object:generate=true +groupName=lifecycle.keptn.sh

Index

Constants

This section is empty.

Variables

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

type EvaluationStatus struct {
	EvaluationDefinitionName string `json:"evaluationDefinitionName,omitempty"`
	// +kubebuilder:default:=Pending
	Status         common.KeptnState `json:"status,omitempty"`
	EvaluationName string            `json:"evaluationName,omitempty"`
	StartTime      metav1.Time       `json:"startTime,omitempty"`
	EndTime        metav1.Time       `json:"endTime,omitempty"`
}

func (*EvaluationStatus) SetEndTime

func (i *EvaluationStatus) SetEndTime()

func (*EvaluationStatus) SetStartTime

func (i *EvaluationStatus) SetStartTime()

type KeptnWorkload

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

	Spec   KeptnWorkloadSpec   `json:"spec,omitempty"`
	Status KeptnWorkloadStatus `json:"status,omitempty"`
}

KeptnWorkload is the Schema for the keptnworkloads API

func (*KeptnWorkload) DeepCopy

func (in *KeptnWorkload) DeepCopy() *KeptnWorkload

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

func (*KeptnWorkload) DeepCopyInto

func (in *KeptnWorkload) DeepCopyInto(out *KeptnWorkload)

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

func (*KeptnWorkload) DeepCopyObject

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

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

func (KeptnWorkload) GetWorkloadInstanceName

func (w KeptnWorkload) GetWorkloadInstanceName() string

type KeptnWorkloadInstance

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

	Spec   KeptnWorkloadInstanceSpec   `json:"spec,omitempty"`
	Status KeptnWorkloadInstanceStatus `json:"status,omitempty"`
}

KeptnWorkloadInstance is the Schema for the keptnworkloadinstances API

func (*KeptnWorkloadInstance) DeepCopy

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

func (*KeptnWorkloadInstance) DeepCopyInto

func (in *KeptnWorkloadInstance) DeepCopyInto(out *KeptnWorkloadInstance)

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

func (*KeptnWorkloadInstance) DeepCopyObject

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

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

func (KeptnWorkloadInstance) IsDeploymentCompleted

func (i KeptnWorkloadInstance) IsDeploymentCompleted() bool

func (KeptnWorkloadInstance) IsDeploymentFailed

func (i KeptnWorkloadInstance) IsDeploymentFailed() bool

func (KeptnWorkloadInstance) IsDeploymentSucceeded

func (i KeptnWorkloadInstance) IsDeploymentSucceeded() bool

func (*KeptnWorkloadInstance) IsEndTimeSet

func (i *KeptnWorkloadInstance) IsEndTimeSet() bool

func (KeptnWorkloadInstance) IsPostDeploymentCompleted

func (i KeptnWorkloadInstance) IsPostDeploymentCompleted() bool

func (KeptnWorkloadInstance) IsPostDeploymentEvaluationCompleted

func (v KeptnWorkloadInstance) IsPostDeploymentEvaluationCompleted() bool

func (KeptnWorkloadInstance) IsPostDeploymentEvaluationFailed

func (v KeptnWorkloadInstance) IsPostDeploymentEvaluationFailed() bool

func (KeptnWorkloadInstance) IsPostDeploymentEvaluationSucceeded

func (v KeptnWorkloadInstance) IsPostDeploymentEvaluationSucceeded() bool

func (KeptnWorkloadInstance) IsPostDeploymentFailed

func (i KeptnWorkloadInstance) IsPostDeploymentFailed() bool

func (KeptnWorkloadInstance) IsPostDeploymentSucceeded

func (i KeptnWorkloadInstance) IsPostDeploymentSucceeded() bool

func (KeptnWorkloadInstance) IsPreDeploymentCompleted

func (i KeptnWorkloadInstance) IsPreDeploymentCompleted() bool

func (KeptnWorkloadInstance) IsPreDeploymentEvaluationCompleted

func (v KeptnWorkloadInstance) IsPreDeploymentEvaluationCompleted() bool

func (KeptnWorkloadInstance) IsPreDeploymentEvaluationFailed

func (v KeptnWorkloadInstance) IsPreDeploymentEvaluationFailed() bool

func (KeptnWorkloadInstance) IsPreDeploymentEvaluationSucceeded

func (v KeptnWorkloadInstance) IsPreDeploymentEvaluationSucceeded() bool

func (KeptnWorkloadInstance) IsPreDeploymentFailed

func (i KeptnWorkloadInstance) IsPreDeploymentFailed() bool

func (KeptnWorkloadInstance) IsPreDeploymentSucceeded

func (i KeptnWorkloadInstance) IsPreDeploymentSucceeded() bool

func (*KeptnWorkloadInstance) IsStartTimeSet

func (i *KeptnWorkloadInstance) IsStartTimeSet() bool

func (*KeptnWorkloadInstance) SetEndTime

func (i *KeptnWorkloadInstance) SetEndTime()

func (*KeptnWorkloadInstance) SetStartTime

func (i *KeptnWorkloadInstance) SetStartTime()

type KeptnWorkloadInstanceList

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

KeptnWorkloadInstanceList contains a list of KeptnWorkloadInstance

func (*KeptnWorkloadInstanceList) DeepCopy

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

func (*KeptnWorkloadInstanceList) DeepCopyInto

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

func (*KeptnWorkloadInstanceList) DeepCopyObject

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

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

type KeptnWorkloadInstanceSpec

type KeptnWorkloadInstanceSpec struct {
	KeptnWorkloadSpec `json:",inline"`
	WorkloadName      string            `json:"workloadName"`
	PreviousVersion   string            `json:"previousVersion,omitempty"`
	TraceId           map[string]string `json:"traceId,omitempty"`
}

KeptnWorkloadInstanceSpec defines the desired state of KeptnWorkloadInstance

func (*KeptnWorkloadInstanceSpec) DeepCopy

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

func (*KeptnWorkloadInstanceSpec) DeepCopyInto

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

type KeptnWorkloadInstanceStatus

type KeptnWorkloadInstanceStatus struct {
	// +kubebuilder:default:=Pending
	PreDeploymentStatus common.KeptnState `json:"preDeploymentStatus,omitempty"`
	// +kubebuilder:default:=Pending
	DeploymentStatus common.KeptnState `json:"deploymentStatus,omitempty"`
	// +kubebuilder:default:=Pending
	PreDeploymentEvaluationStatus common.KeptnState `json:"preDeploymentEvaluationStatus,omitempty"`
	// +kubebuilder:default:=Pending
	PostDeploymentEvaluationStatus common.KeptnState `json:"postDeploymentEvaluationStatus,omitempty"`
	// +kubebuilder:default:=Pending
	PostDeploymentStatus               common.KeptnState  `json:"postDeploymentStatus,omitempty"`
	PreDeploymentTaskStatus            []TaskStatus       `json:"preDeploymentTaskStatus,omitempty"`
	PostDeploymentTaskStatus           []TaskStatus       `json:"postDeploymentTaskStatus,omitempty"`
	PreDeploymentEvaluationTaskStatus  []EvaluationStatus `json:"preDeploymentEvaluationTaskStatus,omitempty"`
	PostDeploymentEvaluationTaskStatus []EvaluationStatus `json:"postDeploymentEvaluationTaskStatus,omitempty"`
	StartTime                          metav1.Time        `json:"startTime,omitempty"`
	EndTime                            metav1.Time        `json:"endTime,omitempty"`
	CurrentPhase                       string             `json:"currentPhase,omitempty"`
	// +kubebuilder:default:=Pending
	Status common.KeptnState `json:"status,omitempty"`
}

KeptnWorkloadInstanceStatus defines the observed state of KeptnWorkloadInstance

func (*KeptnWorkloadInstanceStatus) DeepCopy

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

func (*KeptnWorkloadInstanceStatus) DeepCopyInto

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

type KeptnWorkloadList

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

KeptnWorkloadList contains a list of KeptnWorkload

func (*KeptnWorkloadList) DeepCopy

func (in *KeptnWorkloadList) DeepCopy() *KeptnWorkloadList

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

func (*KeptnWorkloadList) DeepCopyInto

func (in *KeptnWorkloadList) DeepCopyInto(out *KeptnWorkloadList)

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

func (*KeptnWorkloadList) DeepCopyObject

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

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

type KeptnWorkloadSpec

type KeptnWorkloadSpec struct {
	AppName                   string            `json:"app"`
	Version                   string            `json:"version"`
	PreDeploymentTasks        []string          `json:"preDeploymentTasks,omitempty"`
	PostDeploymentTasks       []string          `json:"postDeploymentTasks,omitempty"`
	PreDeploymentEvaluations  []string          `json:"preDeploymentEvaluations,omitempty"`
	PostDeploymentEvaluations []string          `json:"postDeploymentEvaluations,omitempty"`
	ResourceReference         ResourceReference `json:"resourceReference"`
}

KeptnWorkloadSpec defines the desired state of KeptnWorkload

func (*KeptnWorkloadSpec) DeepCopy

func (in *KeptnWorkloadSpec) DeepCopy() *KeptnWorkloadSpec

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

func (*KeptnWorkloadSpec) DeepCopyInto

func (in *KeptnWorkloadSpec) DeepCopyInto(out *KeptnWorkloadSpec)

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

type KeptnWorkloadStatus

type KeptnWorkloadStatus struct {
	CurrentVersion string `json:"currentVersion,omitempty"`
}

KeptnWorkloadStatus defines the observed state of KeptnWorkload

func (*KeptnWorkloadStatus) DeepCopy

func (in *KeptnWorkloadStatus) DeepCopy() *KeptnWorkloadStatus

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

func (*KeptnWorkloadStatus) DeepCopyInto

func (in *KeptnWorkloadStatus) DeepCopyInto(out *KeptnWorkloadStatus)

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

type ResourceReference

type ResourceReference struct {
	UID  types.UID `json:"uid"`
	Kind string    `json:"kind"`
	Name string    `json:"name"`
}

func (*ResourceReference) DeepCopy

func (in *ResourceReference) DeepCopy() *ResourceReference

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

func (*ResourceReference) DeepCopyInto

func (in *ResourceReference) DeepCopyInto(out *ResourceReference)

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

type TaskStatus

type TaskStatus struct {
	TaskDefinitionName string `json:"taskDefinitionName,omitempty"`
	// +kubebuilder:default:=Pending
	Status    common.KeptnState `json:"status,omitempty"`
	TaskName  string            `json:"taskName,omitempty"`
	StartTime metav1.Time       `json:"startTime,omitempty"`
	EndTime   metav1.Time       `json:"endTime,omitempty"`
}

func (*TaskStatus) DeepCopy

func (in *TaskStatus) DeepCopy() *TaskStatus

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

func (*TaskStatus) DeepCopyInto

func (in *TaskStatus) DeepCopyInto(out *TaskStatus)

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

func (*TaskStatus) SetEndTime

func (i *TaskStatus) SetEndTime()

func (*TaskStatus) SetStartTime

func (i *TaskStatus) SetStartTime()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL