v1alpha3

package
v0.0.0-...-14494c5 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package v1alpha3 contains API Schema definitions for the lifecycle v1alpha3 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: "v1alpha3"}

	// 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 ConfigMapReference

type ConfigMapReference struct {
	// Name is the name of the referenced ConfigMap.
	Name string `json:"name,omitempty"`
}

func (*ConfigMapReference) DeepCopy

func (in *ConfigMapReference) DeepCopy() *ConfigMapReference

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

func (*ConfigMapReference) DeepCopyInto

func (in *ConfigMapReference) DeepCopyInto(out *ConfigMapReference)

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

type ContainerSpec

type ContainerSpec struct {
	*v1.Container `json:",inline"`
}

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 EvaluationStatusItem

type EvaluationStatusItem struct {
	// Value represents the value of the KeptnMetric being evaluated.
	Value string `json:"value"`
	// Status indicates the status of the objective being evaluated.
	Status common.KeptnState `json:"status"`
	// Message contains additional information about the evaluation of an objective.
	// This can include explanations about why an evaluation has failed (e.g. due to a missed objective),
	// or if there was any error during the evaluation of the objective.
	Message string `json:"message,omitempty"`
}

func (*EvaluationStatusItem) DeepCopy

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

func (*EvaluationStatusItem) DeepCopyInto

func (in *EvaluationStatusItem) DeepCopyInto(out *EvaluationStatusItem)

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

type FunctionReference

type FunctionReference struct {
	// Name is the name of the referenced KeptnTaksDefinition.
	Name string `json:"name,omitempty"`
}

func (*FunctionReference) DeepCopy

func (in *FunctionReference) DeepCopy() *FunctionReference

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

func (*FunctionReference) DeepCopyInto

func (in *FunctionReference) DeepCopyInto(out *FunctionReference)

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

type FunctionStatus

type FunctionStatus struct {
	// ConfigMap indicates the ConfigMap in which the function code is stored.
	ConfigMap string `json:"configMap,omitempty"`
}

func (*FunctionStatus) DeepCopy

func (in *FunctionStatus) DeepCopy() *FunctionStatus

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

func (*FunctionStatus) DeepCopyInto

func (in *FunctionStatus) DeepCopyInto(out *FunctionStatus)

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

type HttpReference

type HttpReference struct {
	// Url is the URL containing the code of the function.
	Url string `json:"url,omitempty"`
}

func (*HttpReference) DeepCopy

func (in *HttpReference) DeepCopy() *HttpReference

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

func (*HttpReference) DeepCopyInto

func (in *HttpReference) DeepCopyInto(out *HttpReference)

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

type Inline

type Inline struct {
	// Code contains the code of the function.
	Code string `json:"code,omitempty"`
}

func (*Inline) DeepCopy

func (in *Inline) DeepCopy() *Inline

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

func (*Inline) DeepCopyInto

func (in *Inline) DeepCopyInto(out *Inline)

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

type ItemStatus

type ItemStatus struct {
	// DefinitionName is the name of the EvaluationDefinition/TaskDefiniton
	DefinitionName string `json:"definitionName,omitempty"`
	// +kubebuilder:default:=Pending
	Status common.KeptnState `json:"status,omitempty"`
	// Name is the name of the Evaluation/Task
	Name string `json:"name,omitempty"`
	// StartTime represents the time at which the Item (Evaluation/Task) started.
	StartTime metav1.Time `json:"startTime,omitempty"`
	// EndTime represents the time at which the Item (Evaluation/Task) started.
	EndTime metav1.Time `json:"endTime,omitempty"`
}

func (*ItemStatus) DeepCopy

func (in *ItemStatus) DeepCopy() *ItemStatus

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

func (*ItemStatus) DeepCopyInto

func (in *ItemStatus) DeepCopyInto(out *ItemStatus)

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

func (*ItemStatus) SetEndTime

func (e *ItemStatus) SetEndTime()

func (*ItemStatus) SetStartTime

func (e *ItemStatus) SetStartTime()

type KeptnApp

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

	// Spec describes the desired state of the KeptnApp.
	Spec KeptnAppSpec `json:"spec,omitempty"`
	// Status describes the current state of the KeptnApp.
	Status KeptnAppStatus `json:"status,omitempty"`
}

KeptnApp is the Schema for the keptnapps API

func (*KeptnApp) DeepCopy

func (in *KeptnApp) DeepCopy() *KeptnApp

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

func (*KeptnApp) DeepCopyInto

func (in *KeptnApp) DeepCopyInto(out *KeptnApp)

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

func (*KeptnApp) DeepCopyObject

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

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

func (KeptnApp) GenerateAppVersion

func (a KeptnApp) GenerateAppVersion(previousVersion string, traceContextCarrier map[string]string) KeptnAppVersion

func (KeptnApp) GetAppVersionName

func (a KeptnApp) GetAppVersionName() string

func (KeptnApp) GetEventAnnotations

func (a KeptnApp) GetEventAnnotations() map[string]string

func (KeptnApp) GetSpanAttributes

func (a KeptnApp) GetSpanAttributes() []attribute.KeyValue

func (*KeptnApp) Hub

func (*KeptnApp) Hub()

Hub is the stub function to make the API conversion pattern with hub and spokes complete

func (KeptnApp) SetSpanAttributes

func (a KeptnApp) SetSpanAttributes(span trace.Span)

func (*KeptnApp) SetupWebhookWithManager

func (r *KeptnApp) SetupWebhookWithManager(mgr ctrl.Manager) error

type KeptnAppCreationRequest

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

	// Spec describes the desired state of the KeptnAppCreationRequest.
	Spec KeptnAppCreationRequestSpec `json:"spec,omitempty"`
	// Status describes the current state of the KeptnAppCreationRequest.
	Status KeptnAppCreationRequestStatus `json:"status,omitempty"`
}

KeptnAppCreationRequest is the Schema for the keptnappcreationrequests API

func (*KeptnAppCreationRequest) DeepCopy

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

func (*KeptnAppCreationRequest) DeepCopyInto

func (in *KeptnAppCreationRequest) DeepCopyInto(out *KeptnAppCreationRequest)

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

func (*KeptnAppCreationRequest) DeepCopyObject

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

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

func (KeptnAppCreationRequest) GetSpanAttributes

func (kacr KeptnAppCreationRequest) GetSpanAttributes() []attribute.KeyValue

func (KeptnAppCreationRequest) IsSingleService

func (kacr KeptnAppCreationRequest) IsSingleService() bool

func (KeptnAppCreationRequest) SetSpanAttributes

func (kacr KeptnAppCreationRequest) SetSpanAttributes(span trace.Span)

type KeptnAppCreationRequestList

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

KeptnAppCreationRequestList contains a list of KeptnAppCreationRequest

func (*KeptnAppCreationRequestList) DeepCopy

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

func (*KeptnAppCreationRequestList) DeepCopyInto

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

func (*KeptnAppCreationRequestList) DeepCopyObject

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

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

type KeptnAppCreationRequestSpec

type KeptnAppCreationRequestSpec struct {
	// AppName is the name of the KeptnApp the KeptnAppCreationRequest should create if no user-defined object with that name is found.
	AppName string `json:"appName"`
}

KeptnAppCreationRequestSpec defines the desired state of KeptnAppCreationRequest

func (*KeptnAppCreationRequestSpec) DeepCopy

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

func (*KeptnAppCreationRequestSpec) DeepCopyInto

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

type KeptnAppCreationRequestStatus

type KeptnAppCreationRequestStatus struct {
}

KeptnAppCreationRequestStatus defines the observed state of KeptnAppCreationRequest

func (*KeptnAppCreationRequestStatus) DeepCopy

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

func (*KeptnAppCreationRequestStatus) DeepCopyInto

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

type KeptnAppList

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

KeptnAppList contains a list of KeptnApp

func (*KeptnAppList) DeepCopy

func (in *KeptnAppList) DeepCopy() *KeptnAppList

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

func (*KeptnAppList) DeepCopyInto

func (in *KeptnAppList) DeepCopyInto(out *KeptnAppList)

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

func (*KeptnAppList) DeepCopyObject

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

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

type KeptnAppSpec

type KeptnAppSpec struct {
	// Version defines the version of the application. For automatically created KeptnApps,
	// the version is a function of all KeptnWorkloads that are part of the KeptnApp.
	Version string `json:"version"`
	// Revision can be modified to trigger another deployment of a KeptnApp of the same version.
	// This can be used for restarting a KeptnApp which failed to deploy,
	// e.g. due to a failed preDeploymentEvaluation/preDeploymentTask.
	// +kubebuilder:default:=1
	Revision uint `json:"revision,omitempty"`
	// Workloads is a list of all KeptnWorkloads that are part of the KeptnApp.
	Workloads []KeptnWorkloadRef `json:"workloads,omitempty"`
	// PreDeploymentTasks is a list of all tasks to be performed during the pre-deployment phase of the KeptnApp.
	// The items of this list refer to the names of KeptnTaskDefinitions
	// located in the same namespace as the KeptnApp, or in the KLT namespace.
	PreDeploymentTasks []string `json:"preDeploymentTasks,omitempty"`
	// PostDeploymentTasks is a list of all tasks to be performed during the post-deployment phase of the KeptnApp.
	// The items of this list refer to the names of KeptnTaskDefinitions
	// located in the same namespace as the KeptnApp, or in the KLT namespace.
	PostDeploymentTasks []string `json:"postDeploymentTasks,omitempty"`
	// PreDeploymentEvaluations is a list of all evaluations to be performed
	// during the pre-deployment phase of the KeptnApp.
	// The items of this list refer to the names of KeptnEvaluationDefinitions
	// located in the same namespace as the KeptnApp, or in the KLT namespace.
	PreDeploymentEvaluations []string `json:"preDeploymentEvaluations,omitempty"`
	// PostDeploymentEvaluations is a list of all evaluations to be performed
	// during the post-deployment phase of the KeptnApp.
	// The items of this list refer to the names of KeptnEvaluationDefinitions
	// located in the same namespace as the KeptnApp, or in the KLT namespace.
	PostDeploymentEvaluations []string `json:"postDeploymentEvaluations,omitempty"`
}

KeptnAppSpec defines the desired state of KeptnApp

func (*KeptnAppSpec) DeepCopy

func (in *KeptnAppSpec) DeepCopy() *KeptnAppSpec

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

func (*KeptnAppSpec) DeepCopyInto

func (in *KeptnAppSpec) DeepCopyInto(out *KeptnAppSpec)

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

type KeptnAppStatus

type KeptnAppStatus struct {
	// CurrentVersion indicates the version that is currently deployed or being reconciled.
	CurrentVersion string `json:"currentVersion,omitempty"`
}

KeptnAppStatus defines the observed state of KeptnApp

func (*KeptnAppStatus) DeepCopy

func (in *KeptnAppStatus) DeepCopy() *KeptnAppStatus

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

func (*KeptnAppStatus) DeepCopyInto

func (in *KeptnAppStatus) DeepCopyInto(out *KeptnAppStatus)

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

type KeptnAppVersion

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

	// Spec describes the desired state of the KeptnAppVersion.
	Spec KeptnAppVersionSpec `json:"spec,omitempty"`
	// Status describes the current state of the KeptnAppVersion.
	Status KeptnAppVersionStatus `json:"status,omitempty"`
}

KeptnAppVersion is the Schema for the keptnappversions API

func (KeptnAppVersion) AreWorkloadsCompleted

func (a KeptnAppVersion) AreWorkloadsCompleted() bool

func (KeptnAppVersion) AreWorkloadsFailed

func (a KeptnAppVersion) AreWorkloadsFailed() bool

func (KeptnAppVersion) AreWorkloadsSucceeded

func (a KeptnAppVersion) AreWorkloadsSucceeded() bool

func (*KeptnAppVersion) Complete

func (a *KeptnAppVersion) Complete()

func (*KeptnAppVersion) DeepCopy

func (in *KeptnAppVersion) DeepCopy() *KeptnAppVersion

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

func (*KeptnAppVersion) DeepCopyInto

func (in *KeptnAppVersion) DeepCopyInto(out *KeptnAppVersion)

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

func (*KeptnAppVersion) DeepCopyObject

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

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

func (*KeptnAppVersion) DeprecateRemainingPhases

func (a *KeptnAppVersion) DeprecateRemainingPhases(phase common.KeptnPhaseType)

func (KeptnAppVersion) GenerateEvaluation

func (a KeptnAppVersion) GenerateEvaluation(evaluationDefinition KeptnEvaluationDefinition, checkType common.CheckType) KeptnEvaluation

func (KeptnAppVersion) GenerateTask

func (a KeptnAppVersion) GenerateTask(taskDefinition KeptnTaskDefinition, checkType common.CheckType) KeptnTask

func (KeptnAppVersion) GetActiveMetricsAttributes

func (a KeptnAppVersion) GetActiveMetricsAttributes() []attribute.KeyValue

func (KeptnAppVersion) GetAppName

func (a KeptnAppVersion) GetAppName() string

func (KeptnAppVersion) GetCurrentPhase

func (a KeptnAppVersion) GetCurrentPhase() string

func (KeptnAppVersion) GetDurationMetricsAttributes

func (a KeptnAppVersion) GetDurationMetricsAttributes() []attribute.KeyValue

func (KeptnAppVersion) GetEndTime

func (a KeptnAppVersion) GetEndTime() time.Time

func (KeptnAppVersion) GetEventAnnotations

func (a KeptnAppVersion) GetEventAnnotations() map[string]string

func (KeptnAppVersion) GetMetricsAttributes

func (a KeptnAppVersion) GetMetricsAttributes() []attribute.KeyValue

func (KeptnAppVersion) GetNamespace

func (a KeptnAppVersion) GetNamespace() string

func (KeptnAppVersion) GetParentName

func (a KeptnAppVersion) GetParentName() string

func (KeptnAppVersion) GetPostDeploymentEvaluationTaskStatus

func (a KeptnAppVersion) GetPostDeploymentEvaluationTaskStatus() []ItemStatus

func (KeptnAppVersion) GetPostDeploymentEvaluations

func (a KeptnAppVersion) GetPostDeploymentEvaluations() []string

func (KeptnAppVersion) GetPostDeploymentTaskStatus

func (a KeptnAppVersion) GetPostDeploymentTaskStatus() []ItemStatus

func (KeptnAppVersion) GetPostDeploymentTasks

func (a KeptnAppVersion) GetPostDeploymentTasks() []string

func (KeptnAppVersion) GetPreDeploymentEvaluationTaskStatus

func (a KeptnAppVersion) GetPreDeploymentEvaluationTaskStatus() []ItemStatus

func (KeptnAppVersion) GetPreDeploymentEvaluations

func (a KeptnAppVersion) GetPreDeploymentEvaluations() []string

func (KeptnAppVersion) GetPreDeploymentTaskStatus

func (a KeptnAppVersion) GetPreDeploymentTaskStatus() []ItemStatus

func (KeptnAppVersion) GetPreDeploymentTasks

func (a KeptnAppVersion) GetPreDeploymentTasks() []string

func (KeptnAppVersion) GetPreviousVersion

func (a KeptnAppVersion) GetPreviousVersion() string

func (KeptnAppVersion) GetSpanAttributes

func (a KeptnAppVersion) GetSpanAttributes() []attribute.KeyValue

func (KeptnAppVersion) GetSpanKey

func (a KeptnAppVersion) GetSpanKey(phase string) string

func (KeptnAppVersion) GetSpanName

func (a KeptnAppVersion) GetSpanName(phase string) string

func (KeptnAppVersion) GetStartTime

func (a KeptnAppVersion) GetStartTime() time.Time

func (KeptnAppVersion) GetState

func (a KeptnAppVersion) GetState() common.KeptnState

func (KeptnAppVersion) GetVersion

func (a KeptnAppVersion) GetVersion() string

func (KeptnAppVersion) GetWorkloadNameOfApp

func (v KeptnAppVersion) GetWorkloadNameOfApp(workloadName string) string

func (*KeptnAppVersion) Hub

func (*KeptnAppVersion) Hub()

Hub is the stub function to make the API conversion pattern with hub and spokes complete

func (*KeptnAppVersion) IsEndTimeSet

func (a *KeptnAppVersion) IsEndTimeSet() bool

func (KeptnAppVersion) IsPostDeploymentCompleted

func (a KeptnAppVersion) IsPostDeploymentCompleted() bool

func (KeptnAppVersion) IsPostDeploymentEvaluationCompleted

func (a KeptnAppVersion) IsPostDeploymentEvaluationCompleted() bool

func (KeptnAppVersion) IsPostDeploymentEvaluationFailed

func (a KeptnAppVersion) IsPostDeploymentEvaluationFailed() bool

func (KeptnAppVersion) IsPostDeploymentEvaluationSucceeded

func (a KeptnAppVersion) IsPostDeploymentEvaluationSucceeded() bool

func (KeptnAppVersion) IsPostDeploymentFailed

func (a KeptnAppVersion) IsPostDeploymentFailed() bool

func (KeptnAppVersion) IsPostDeploymentSucceeded

func (a KeptnAppVersion) IsPostDeploymentSucceeded() bool

func (KeptnAppVersion) IsPreDeploymentCompleted

func (a KeptnAppVersion) IsPreDeploymentCompleted() bool

func (KeptnAppVersion) IsPreDeploymentEvaluationCompleted

func (a KeptnAppVersion) IsPreDeploymentEvaluationCompleted() bool

func (KeptnAppVersion) IsPreDeploymentEvaluationFailed

func (a KeptnAppVersion) IsPreDeploymentEvaluationFailed() bool

func (KeptnAppVersion) IsPreDeploymentEvaluationSucceeded

func (a KeptnAppVersion) IsPreDeploymentEvaluationSucceeded() bool

func (KeptnAppVersion) IsPreDeploymentFailed

func (a KeptnAppVersion) IsPreDeploymentFailed() bool

func (KeptnAppVersion) IsPreDeploymentSucceeded

func (a KeptnAppVersion) IsPreDeploymentSucceeded() bool

func (*KeptnAppVersion) IsStartTimeSet

func (a *KeptnAppVersion) IsStartTimeSet() bool

func (*KeptnAppVersion) SetCurrentPhase

func (a *KeptnAppVersion) SetCurrentPhase(phase string)

func (*KeptnAppVersion) SetEndTime

func (a *KeptnAppVersion) SetEndTime()

func (*KeptnAppVersion) SetPhaseTraceID

func (a *KeptnAppVersion) SetPhaseTraceID(phase string, carrier propagation.MapCarrier)

func (KeptnAppVersion) SetSpanAttributes

func (a KeptnAppVersion) SetSpanAttributes(span trace.Span)

func (*KeptnAppVersion) SetStartTime

func (a *KeptnAppVersion) SetStartTime()

func (*KeptnAppVersion) SetState

func (a *KeptnAppVersion) SetState(state common.KeptnState)

func (*KeptnAppVersion) SetupWebhookWithManager

func (r *KeptnAppVersion) SetupWebhookWithManager(mgr ctrl.Manager) error

type KeptnAppVersionList

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

KeptnAppVersionList contains a list of KeptnAppVersion

func (*KeptnAppVersionList) DeepCopy

func (in *KeptnAppVersionList) DeepCopy() *KeptnAppVersionList

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

func (*KeptnAppVersionList) DeepCopyInto

func (in *KeptnAppVersionList) DeepCopyInto(out *KeptnAppVersionList)

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

func (*KeptnAppVersionList) DeepCopyObject

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

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

func (KeptnAppVersionList) GetItems

func (a KeptnAppVersionList) GetItems() []client.Object

func (*KeptnAppVersionList) RemoveDeprecated

func (a *KeptnAppVersionList) RemoveDeprecated()

type KeptnAppVersionSpec

type KeptnAppVersionSpec struct {
	KeptnAppSpec `json:",inline"`
	// AppName is the name of the KeptnApp.
	AppName string `json:"appName"`
	// PreviousVersion is the version of the KeptnApp that has been deployed prior to this version.
	PreviousVersion string `json:"previousVersion,omitempty"`
	// TraceId contains the OpenTelemetry trace ID.
	TraceId map[string]string `json:"traceId,omitempty"`
}

KeptnAppVersionSpec defines the desired state of KeptnAppVersion

func (*KeptnAppVersionSpec) DeepCopy

func (in *KeptnAppVersionSpec) DeepCopy() *KeptnAppVersionSpec

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

func (*KeptnAppVersionSpec) DeepCopyInto

func (in *KeptnAppVersionSpec) DeepCopyInto(out *KeptnAppVersionSpec)

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

type KeptnAppVersionStatus

type KeptnAppVersionStatus struct {
	// PreDeploymentStatus indicates the current status of the KeptnAppVersion's PreDeployment phase.
	// +kubebuilder:default:=Pending
	PreDeploymentStatus common.KeptnState `json:"preDeploymentStatus,omitempty"`
	// PostDeploymentStatus indicates the current status of the KeptnAppVersion's PostDeployment phase.
	// +kubebuilder:default:=Pending
	PostDeploymentStatus common.KeptnState `json:"postDeploymentStatus,omitempty"`
	// PreDeploymentEvaluationStatus indicates the current status of the KeptnAppVersion's PreDeploymentEvaluation phase.
	// +kubebuilder:default:=Pending
	PreDeploymentEvaluationStatus common.KeptnState `json:"preDeploymentEvaluationStatus,omitempty"`
	// PostDeploymentEvaluationStatus indicates the current status of the KeptnAppVersion's PostDeploymentEvaluation phase.
	// +kubebuilder:default:=Pending
	PostDeploymentEvaluationStatus common.KeptnState `json:"postDeploymentEvaluationStatus,omitempty"`
	// WorkloadOverallStatus indicates the current status of the KeptnAppVersion's Workload deployment phase.
	// +kubebuilder:default:=Pending
	WorkloadOverallStatus common.KeptnState `json:"workloadOverallStatus,omitempty"`
	// WorkloadStatus contains the current status of each KeptnWorkload that is part of the KeptnAppVersion.
	WorkloadStatus []WorkloadStatus `json:"workloadStatus,omitempty"`
	// CurrentPhase indicates the current phase of the KeptnAppVersion.
	CurrentPhase string `json:"currentPhase,omitempty"`
	// PreDeploymentTaskStatus indicates the current state of each preDeploymentTask of the KeptnAppVersion.
	PreDeploymentTaskStatus []ItemStatus `json:"preDeploymentTaskStatus,omitempty"`
	// PostDeploymentTaskStatus indicates the current state of each postDeploymentTask of the KeptnAppVersion.
	PostDeploymentTaskStatus []ItemStatus `json:"postDeploymentTaskStatus,omitempty"`
	// PreDeploymentEvaluationTaskStatus indicates the current state of each preDeploymentEvaluation of the KeptnAppVersion.
	PreDeploymentEvaluationTaskStatus []ItemStatus `json:"preDeploymentEvaluationTaskStatus,omitempty"`
	// PostDeploymentEvaluationTaskStatus indicates the current state of each postDeploymentEvaluation of the KeptnAppVersion.
	PostDeploymentEvaluationTaskStatus []ItemStatus `json:"postDeploymentEvaluationTaskStatus,omitempty"`
	// PhaseTraceIDs contains the trace IDs of the OpenTelemetry spans of each phase of the KeptnAppVersion.
	PhaseTraceIDs common.PhaseTraceID `json:"phaseTraceIDs,omitempty"`
	// Status represents the overall status of the KeptnAppVersion.
	// +kubebuilder:default:=Pending
	Status common.KeptnState `json:"status,omitempty"`

	// StartTime represents the time at which the deployment of the KeptnAppVersion started.
	StartTime metav1.Time `json:"startTime,omitempty"`
	// EndTime represents the time at which the deployment of the KeptnAppVersion finished.
	EndTime metav1.Time `json:"endTime,omitempty"`
}

KeptnAppVersionStatus defines the observed state of KeptnAppVersion

func (*KeptnAppVersionStatus) DeepCopy

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

func (*KeptnAppVersionStatus) DeepCopyInto

func (in *KeptnAppVersionStatus) DeepCopyInto(out *KeptnAppVersionStatus)

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

type KeptnEvaluation

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

	// Spec describes the desired state of the KeptnEvaluation.
	Spec KeptnEvaluationSpec `json:"spec,omitempty"`
	// Status describes the current state of the KeptnEvaluation.
	Status KeptnEvaluationStatus `json:"status,omitempty"`
}

KeptnEvaluation is the Schema for the keptnevaluations API

func (*KeptnEvaluation) AddEvaluationStatus

func (e *KeptnEvaluation) AddEvaluationStatus(objective Objective)

func (*KeptnEvaluation) DeepCopy

func (in *KeptnEvaluation) DeepCopy() *KeptnEvaluation

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

func (*KeptnEvaluation) DeepCopyInto

func (in *KeptnEvaluation) DeepCopyInto(out *KeptnEvaluation)

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

func (*KeptnEvaluation) DeepCopyObject

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

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

func (KeptnEvaluation) GetActiveMetricsAttributes

func (e KeptnEvaluation) GetActiveMetricsAttributes() []attribute.KeyValue

func (KeptnEvaluation) GetEventAnnotations

func (e KeptnEvaluation) GetEventAnnotations() map[string]string

func (KeptnEvaluation) GetMetricsAttributes

func (e KeptnEvaluation) GetMetricsAttributes() []attribute.KeyValue

func (KeptnEvaluation) GetSpanAttributes

func (e KeptnEvaluation) GetSpanAttributes() []attribute.KeyValue

func (KeptnEvaluation) GetSpanKey

func (e KeptnEvaluation) GetSpanKey(phase string) string

func (KeptnEvaluation) GetSpanName

func (e KeptnEvaluation) GetSpanName(phase string) string

func (*KeptnEvaluation) IsEndTimeSet

func (e *KeptnEvaluation) IsEndTimeSet() bool

func (*KeptnEvaluation) IsStartTimeSet

func (e *KeptnEvaluation) IsStartTimeSet() bool

func (*KeptnEvaluation) SetEndTime

func (e *KeptnEvaluation) SetEndTime()

func (*KeptnEvaluation) SetPhaseTraceID

func (e *KeptnEvaluation) SetPhaseTraceID(phase string, carrier propagation.MapCarrier)

func (KeptnEvaluation) SetSpanAttributes

func (e KeptnEvaluation) SetSpanAttributes(span trace.Span)

func (*KeptnEvaluation) SetStartTime

func (e *KeptnEvaluation) SetStartTime()

type KeptnEvaluationDefinition

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

	// Spec describes the desired state of the KeptnEvaluationDefinition.
	Spec KeptnEvaluationDefinitionSpec `json:"spec,omitempty"`
	// Status describes the current state of the KeptnEvaluationDefinition.
	Status KeptnEvaluationDefinitionStatus `json:"status,omitempty"`
}

KeptnEvaluationDefinition is the Schema for the keptnevaluationdefinitions API

func (*KeptnEvaluationDefinition) DeepCopy

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

func (*KeptnEvaluationDefinition) DeepCopyInto

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

func (*KeptnEvaluationDefinition) DeepCopyObject

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

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

type KeptnEvaluationDefinitionList

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

KeptnEvaluationDefinitionList contains a list of KeptnEvaluationDefinition

func (*KeptnEvaluationDefinitionList) DeepCopy

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

func (*KeptnEvaluationDefinitionList) DeepCopyInto

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

func (*KeptnEvaluationDefinitionList) DeepCopyObject

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

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

type KeptnEvaluationDefinitionSpec

type KeptnEvaluationDefinitionSpec struct {
	// Objectives is a list of objectives that have to be met for a KeptnEvaluation referencing this
	// KeptnEvaluationDefinition to be successful.
	Objectives []Objective `json:"objectives"`
}

KeptnEvaluationDefinitionSpec defines the desired state of KeptnEvaluationDefinition

func (*KeptnEvaluationDefinitionSpec) DeepCopy

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

func (*KeptnEvaluationDefinitionSpec) DeepCopyInto

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

type KeptnEvaluationDefinitionStatus

type KeptnEvaluationDefinitionStatus struct {
}

KeptnEvaluationDefinitionStatus defines the observed state of KeptnEvaluationDefinition.

func (*KeptnEvaluationDefinitionStatus) DeepCopy

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

func (*KeptnEvaluationDefinitionStatus) DeepCopyInto

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

type KeptnEvaluationList

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

KeptnEvaluationList contains a list of KeptnEvaluation

func (*KeptnEvaluationList) DeepCopy

func (in *KeptnEvaluationList) DeepCopy() *KeptnEvaluationList

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

func (*KeptnEvaluationList) DeepCopyInto

func (in *KeptnEvaluationList) DeepCopyInto(out *KeptnEvaluationList)

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

func (*KeptnEvaluationList) DeepCopyObject

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

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

func (KeptnEvaluationList) GetItems

func (e KeptnEvaluationList) GetItems() []client.Object

type KeptnEvaluationProvider

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

	Spec   KeptnEvaluationProviderSpec   `json:"spec,omitempty"`
	Status KeptnEvaluationProviderStatus `json:"status,omitempty"`
}

KeptnEvaluationProvider is the Schema for the keptnevaluationproviders API

func (*KeptnEvaluationProvider) DeepCopy

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

func (*KeptnEvaluationProvider) DeepCopyInto

func (in *KeptnEvaluationProvider) DeepCopyInto(out *KeptnEvaluationProvider)

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

func (*KeptnEvaluationProvider) DeepCopyObject

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

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

func (*KeptnEvaluationProvider) Hub

func (*KeptnEvaluationProvider) Hub()

Hub is the stub function to make the API conversion pattern with hub and spokes complete

func (*KeptnEvaluationProvider) SetupWebhookWithManager

func (r *KeptnEvaluationProvider) SetupWebhookWithManager(mgr ctrl.Manager) error

type KeptnEvaluationProviderList

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

KeptnEvaluationProviderList contains a list of KeptnEvaluationProvider

func (*KeptnEvaluationProviderList) DeepCopy

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

func (*KeptnEvaluationProviderList) DeepCopyInto

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

func (*KeptnEvaluationProviderList) DeepCopyObject

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

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

type KeptnEvaluationProviderSpec

type KeptnEvaluationProviderSpec struct {
	TargetServer string                   `json:"targetServer"`
	SecretKeyRef corev1.SecretKeySelector `json:"secretKeyRef,omitempty"`
}

KeptnEvaluationProviderSpec defines the desired state of KeptnEvaluationProvider

func (*KeptnEvaluationProviderSpec) DeepCopy

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

func (*KeptnEvaluationProviderSpec) DeepCopyInto

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

type KeptnEvaluationProviderStatus

type KeptnEvaluationProviderStatus struct {
}

KeptnEvaluationProviderStatus defines the observed state of KeptnEvaluationProvider

func (*KeptnEvaluationProviderStatus) DeepCopy

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

func (*KeptnEvaluationProviderStatus) DeepCopyInto

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

type KeptnEvaluationSpec

type KeptnEvaluationSpec struct {
	// Workload defines the KeptnWorkload for which the KeptnEvaluation is done.
	Workload string `json:"workload,omitempty"`
	// WorkloadVersion defines the version of the KeptnWorkload for which the KeptnEvaluation is done.
	WorkloadVersion string `json:"workloadVersion"`
	// AppName defines the KeptnApp for which the KeptnEvaluation is done.
	AppName string `json:"appName,omitempty"`
	// AppVersion defines the version of the KeptnApp for which the KeptnEvaluation is done.
	AppVersion string `json:"appVersion,omitempty"`
	// EvaluationDefinition refers to the name of the KeptnEvaluationDefinition
	// which includes the objectives for the KeptnEvaluation.
	// The KeptnEvaluationDefinition can be
	// located in the same namespace as the KeptnEvaluation, or in the KLT namespace.
	EvaluationDefinition string `json:"evaluationDefinition"`
	// Retries indicates how many times the KeptnEvaluation can be attempted in the case of an error or
	// missed evaluation objective, before considering the KeptnEvaluation to be failed.
	// +kubebuilder:default:=10
	Retries int `json:"retries,omitempty"`
	// RetryInterval specifies the interval at which the KeptnEvaluation is retried in the case of an error
	// or a missed objective.
	// +optional
	// +kubebuilder:default:="5s"
	// +kubebuilder:validation:Pattern="^0|([0-9]+(\\.[0-9]+)?(ns|us|µs|ms|s|m|h))+$"
	// +kubebuilder:validation:Type:=string
	// +optional
	RetryInterval metav1.Duration `json:"retryInterval,omitempty"`
	FailAction    string          `json:"failAction,omitempty"`
	// Type indicates whether the KeptnEvaluation is part of the pre- or postDeployment phase.
	Type common.CheckType `json:"checkType,omitempty"`
}

KeptnEvaluationSpec defines the desired state of KeptnEvaluation

func (*KeptnEvaluationSpec) DeepCopy

func (in *KeptnEvaluationSpec) DeepCopy() *KeptnEvaluationSpec

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

func (*KeptnEvaluationSpec) DeepCopyInto

func (in *KeptnEvaluationSpec) DeepCopyInto(out *KeptnEvaluationSpec)

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

type KeptnEvaluationStatus

type KeptnEvaluationStatus struct {
	// RetryCount indicates how many times the KeptnEvaluation has been attempted already.
	// +kubebuilder:default:=0
	RetryCount int `json:"retryCount"`
	// EvaluationStatus describes the status of each objective of the KeptnEvaluationDefinition
	// referenced by the KeptnEvaluation.
	EvaluationStatus map[string]EvaluationStatusItem `json:"evaluationStatus"`
	// OverallStatus describes the overall status of the KeptnEvaluation. The Overall status is derived
	// from the status of the individual objectives of the KeptnEvaluationDefinition
	// referenced by the KeptnEvaluation.
	// +kubebuilder:default:=Pending
	OverallStatus common.KeptnState `json:"overallStatus"`
	// StartTime represents the time at which the KeptnEvaluation started.
	StartTime metav1.Time `json:"startTime,omitempty"`
	// EndTime represents the time at which the KeptnEvaluation finished.
	EndTime metav1.Time `json:"endTime,omitempty"`
}

KeptnEvaluationStatus defines the observed state of KeptnEvaluation

func (*KeptnEvaluationStatus) DeepCopy

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

func (*KeptnEvaluationStatus) DeepCopyInto

func (in *KeptnEvaluationStatus) DeepCopyInto(out *KeptnEvaluationStatus)

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

type KeptnMetricReference

type KeptnMetricReference struct {
	// Name is the name of the referenced KeptnMetric.
	Name string `json:"name"`
	// Namespace is the namespace where the referenced KeptnMetric is located.
	Namespace string `json:"namespace,omitempty"`
}

func (*KeptnMetricReference) DeepCopy

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

func (*KeptnMetricReference) DeepCopyInto

func (in *KeptnMetricReference) DeepCopyInto(out *KeptnMetricReference)

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

type KeptnTask

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

	// Spec describes the desired state of the KeptnTask.
	Spec KeptnTaskSpec `json:"spec,omitempty"`
	// Status describes the current state of the KeptnTask.
	Status KeptnTaskStatus `json:"status,omitempty"`
}

KeptnTask is the Schema for the keptntasks API

func (KeptnTask) CreateKeptnAnnotations

func (t KeptnTask) CreateKeptnAnnotations() map[string]string

func (*KeptnTask) DeepCopy

func (in *KeptnTask) DeepCopy() *KeptnTask

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

func (*KeptnTask) DeepCopyInto

func (in *KeptnTask) DeepCopyInto(out *KeptnTask)

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

func (*KeptnTask) DeepCopyObject

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

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

func (KeptnTask) GetActiveDeadlineSeconds

func (t KeptnTask) GetActiveDeadlineSeconds() *int64

func (KeptnTask) GetActiveMetricsAttributes

func (t KeptnTask) GetActiveMetricsAttributes() []attribute.KeyValue

func (KeptnTask) GetEventAnnotations

func (t KeptnTask) GetEventAnnotations() map[string]string

func (KeptnTask) GetMetricsAttributes

func (t KeptnTask) GetMetricsAttributes() []attribute.KeyValue

func (KeptnTask) GetSpanAttributes

func (t KeptnTask) GetSpanAttributes() []attribute.KeyValue

func (KeptnTask) GetSpanKey

func (t KeptnTask) GetSpanKey(phase string) string

func (KeptnTask) GetSpanName

func (t KeptnTask) GetSpanName(phase string) string

func (*KeptnTask) IsEndTimeSet

func (t *KeptnTask) IsEndTimeSet() bool

func (*KeptnTask) IsStartTimeSet

func (t *KeptnTask) IsStartTimeSet() bool

func (*KeptnTask) SetEndTime

func (t *KeptnTask) SetEndTime()

func (*KeptnTask) SetPhaseTraceID

func (t *KeptnTask) SetPhaseTraceID(phase string, carrier propagation.MapCarrier)

func (KeptnTask) SetSpanAttributes

func (t KeptnTask) SetSpanAttributes(span trace.Span)

func (*KeptnTask) SetStartTime

func (t *KeptnTask) SetStartTime()

type KeptnTaskDefinition

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

	// Spec describes the desired state of the KeptnTaskDefinition.
	Spec KeptnTaskDefinitionSpec `json:"spec,omitempty"`
	// Status describes the current state of the KeptnTaskDefinition.
	Status KeptnTaskDefinitionStatus `json:"status,omitempty"`
}

KeptnTaskDefinition is the Schema for the keptntaskdefinitions API

func (*KeptnTaskDefinition) DeepCopy

func (in *KeptnTaskDefinition) DeepCopy() *KeptnTaskDefinition

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

func (*KeptnTaskDefinition) DeepCopyInto

func (in *KeptnTaskDefinition) DeepCopyInto(out *KeptnTaskDefinition)

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

func (*KeptnTaskDefinition) DeepCopyObject

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

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

func (*KeptnTaskDefinition) SetupWebhookWithManager

func (r *KeptnTaskDefinition) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*KeptnTaskDefinition) ValidateCreate

func (r *KeptnTaskDefinition) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*KeptnTaskDefinition) ValidateDelete

func (r *KeptnTaskDefinition) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*KeptnTaskDefinition) ValidateUpdate

func (r *KeptnTaskDefinition) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type KeptnTaskDefinitionList

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

KeptnTaskDefinitionList contains a list of KeptnTaskDefinition

func (*KeptnTaskDefinitionList) DeepCopy

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

func (*KeptnTaskDefinitionList) DeepCopyInto

func (in *KeptnTaskDefinitionList) DeepCopyInto(out *KeptnTaskDefinitionList)

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

func (*KeptnTaskDefinitionList) DeepCopyObject

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

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

type KeptnTaskDefinitionSpec

type KeptnTaskDefinitionSpec struct {
	// Deprecated
	// Function contains the definition for the function that is to be executed in KeptnTasks based on
	// the KeptnTaskDefinitions.
	// +optional
	Function *RuntimeSpec `json:"function,omitempty"`
	// Python contains the definition for the python function that is to be executed in KeptnTasks based on
	//	the KeptnTaskDefinitions.
	// +optional
	Python *RuntimeSpec `json:"python,omitempty"`
	// Deno contains the definition for the Deno function that is to be executed in KeptnTasks based on
	//	the KeptnTaskDefinitions.
	// +optional
	Deno *RuntimeSpec `json:"deno,omitempty"`
	// Container contains the definition for the container that is to be used in Job based on
	// the KeptnTaskDefinitions.
	// +optional
	Container *ContainerSpec `json:"container,omitempty"`
	// Retries specifies how many times a job executing the KeptnTaskDefinition should be restarted in the case
	// of an unsuccessful attempt.
	// +kubebuilder:default:=10
	Retries *int32 `json:"retries,omitempty"`
	// Timeout specifies the maximum time to wait for the task to be completed successfully.
	// If the task does not complete successfully within this time frame, it will be
	// considered to be failed.
	// +kubebuilder:default:="5m"
	// +kubebuilder:validation:Pattern="^0|([0-9]+(\\.[0-9]+)?(ns|us|µs|ms|s|m|h))+$"
	// +kubebuilder:validation:Type:=string
	// +optional
	Timeout metav1.Duration `json:"timeout,omitempty"`
}

KeptnTaskDefinitionSpec defines the desired state of KeptnTaskDefinition

func (*KeptnTaskDefinitionSpec) DeepCopy

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

func (*KeptnTaskDefinitionSpec) DeepCopyInto

func (in *KeptnTaskDefinitionSpec) DeepCopyInto(out *KeptnTaskDefinitionSpec)

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

type KeptnTaskDefinitionStatus

type KeptnTaskDefinitionStatus struct {
	// Function contains status information of the function definition for the task.
	Function FunctionStatus `json:"function,omitempty"`
}

KeptnTaskDefinitionStatus defines the observed state of KeptnTaskDefinition

func (*KeptnTaskDefinitionStatus) DeepCopy

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

func (*KeptnTaskDefinitionStatus) DeepCopyInto

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

type KeptnTaskList

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

KeptnTaskList contains a list of KeptnTask

func (*KeptnTaskList) DeepCopy

func (in *KeptnTaskList) DeepCopy() *KeptnTaskList

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

func (*KeptnTaskList) DeepCopyInto

func (in *KeptnTaskList) DeepCopyInto(out *KeptnTaskList)

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

func (*KeptnTaskList) DeepCopyObject

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

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

func (KeptnTaskList) GetItems

func (t KeptnTaskList) GetItems() []client.Object

type KeptnTaskSpec

type KeptnTaskSpec struct {
	// Workload defines the KeptnWorkload for which the KeptnTask is executed.
	Workload string `json:"workload"`
	// WorkloadVersion defines the version of the KeptnWorkload for which the KeptnTask is executed.
	WorkloadVersion string `json:"workloadVersion"`
	// AppName defines the KeptnApp for which the KeptnTask is executed.
	AppName string `json:"app"`
	// AppVersion defines the version of the KeptnApp for which the KeptnTask is executed.
	AppVersion string `json:"appVersion"`
	// TaskDefinition refers to the name of the KeptnTaskDefinition
	// which includes the specification for the task to be performed.
	// The KeptnTaskDefinition can be
	// located in the same namespace as the KeptnTask, or in the KLT namespace.
	TaskDefinition string `json:"taskDefinition"`
	// Context contains contextual information about the task execution.
	Context TaskContext `json:"context"`
	// Parameters contains parameters that will be passed to the job that executes the task.
	Parameters TaskParameters `json:"parameters,omitempty"`
	// SecureParameters contains secure parameters that will be passed to the job that executes the task.
	// These will be stored and accessed as secrets in the cluster.
	SecureParameters SecureParameters `json:"secureParameters,omitempty"`
	// Type indicates whether the KeptnTask is part of the pre- or postDeployment phase.
	Type common.CheckType `json:"checkType,omitempty"`
	// Retries indicates how many times the KeptnTask can be attempted in the case of an error
	// before considering the KeptnTask to be failed.
	// +kubebuilder:default:=10
	Retries *int32 `json:"retries,omitempty"`
	// Timeout specifies the maximum time to wait for the task to be completed successfully.
	// If the task does not complete successfully within this time frame, it will be
	// considered to be failed.
	// +optional
	// +kubebuilder:default:="5m"
	// +kubebuilder:validation:Pattern="^0|([0-9]+(\\.[0-9]+)?(ns|us|µs|ms|s|m|h))+$"
	// +kubebuilder:validation:Type:=string
	// +optional
	Timeout metav1.Duration `json:"timeout,omitempty"`
}

KeptnTaskSpec defines the desired state of KeptnTask

func (*KeptnTaskSpec) DeepCopy

func (in *KeptnTaskSpec) DeepCopy() *KeptnTaskSpec

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

func (*KeptnTaskSpec) DeepCopyInto

func (in *KeptnTaskSpec) DeepCopyInto(out *KeptnTaskSpec)

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

type KeptnTaskStatus

type KeptnTaskStatus struct {
	// JobName is the name of the Job executing the Task.
	JobName string `json:"jobName,omitempty"`
	// Status represents the overall state of the KeptnTask.
	// +kubebuilder:default:=Pending
	Status common.KeptnState `json:"status,omitempty"`
	// Message contains information about unexpected errors encountered during the execution of the KeptnTask.
	Message string `json:"message,omitempty"`
	// StartTime represents the time at which the KeptnTask started.
	StartTime metav1.Time `json:"startTime,omitempty"`
	// EndTime represents the time at which the KeptnTask finished.
	EndTime metav1.Time `json:"endTime,omitempty"`
	// Reason contains more information about the reason for the last transition of the Job executing the KeptnTask.
	Reason string `json:"reason,omitempty"`
}

KeptnTaskStatus defines the observed state of KeptnTask

func (*KeptnTaskStatus) DeepCopy

func (in *KeptnTaskStatus) DeepCopy() *KeptnTaskStatus

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

func (*KeptnTaskStatus) DeepCopyInto

func (in *KeptnTaskStatus) DeepCopyInto(out *KeptnTaskStatus)

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

type KeptnWorkload

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

	// Spec describes the desired state of the KeptnWorkload.
	Spec KeptnWorkloadSpec `json:"spec,omitempty"`
	// Status describes the current state of the KeptnWorkload.
	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) GenerateWorkloadInstance

func (w KeptnWorkload) GenerateWorkloadInstance(previousVersion string, traceContextCarrier map[string]string) KeptnWorkloadInstance

func (KeptnWorkload) GetEventAnnotations

func (w KeptnWorkload) GetEventAnnotations() map[string]string

func (KeptnWorkload) GetNameWithoutAppPrefix

func (w KeptnWorkload) GetNameWithoutAppPrefix() string

func (KeptnWorkload) GetSpanAttributes

func (w KeptnWorkload) GetSpanAttributes() []attribute.KeyValue

func (KeptnWorkload) GetWorkloadInstanceName

func (w KeptnWorkload) GetWorkloadInstanceName() string

func (KeptnWorkload) SetSpanAttributes

func (w KeptnWorkload) SetSpanAttributes(span trace.Span)

type KeptnWorkloadInstance

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

	// Spec describes the desired state of the KeptnWorkloadInstance.
	Spec KeptnWorkloadInstanceSpec `json:"spec,omitempty"`
	// Status describes the current state of the KeptnWorkloadInstance.
	Status KeptnWorkloadInstanceStatus `json:"status,omitempty"`
}

KeptnWorkloadInstance is the Schema for the keptnworkloadinstances API

func (*KeptnWorkloadInstance) Complete

func (w *KeptnWorkloadInstance) Complete()

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) DeprecateRemainingPhases

func (w *KeptnWorkloadInstance) DeprecateRemainingPhases(phase common.KeptnPhaseType)

func (KeptnWorkloadInstance) GenerateEvaluation

func (w KeptnWorkloadInstance) GenerateEvaluation(evaluationDefinition KeptnEvaluationDefinition, checkType common.CheckType) KeptnEvaluation

func (KeptnWorkloadInstance) GenerateTask

func (w KeptnWorkloadInstance) GenerateTask(taskDefinition KeptnTaskDefinition, checkType common.CheckType) KeptnTask

func (KeptnWorkloadInstance) GetActiveMetricsAttributes

func (w KeptnWorkloadInstance) GetActiveMetricsAttributes() []attribute.KeyValue

func (KeptnWorkloadInstance) GetAppName

func (w KeptnWorkloadInstance) GetAppName() string

func (KeptnWorkloadInstance) GetCurrentPhase

func (w KeptnWorkloadInstance) GetCurrentPhase() string

func (KeptnWorkloadInstance) GetDurationMetricsAttributes

func (w KeptnWorkloadInstance) GetDurationMetricsAttributes() []attribute.KeyValue

func (KeptnWorkloadInstance) GetEndTime

func (w KeptnWorkloadInstance) GetEndTime() time.Time

func (KeptnWorkloadInstance) GetEventAnnotations

func (w KeptnWorkloadInstance) GetEventAnnotations() map[string]string

func (KeptnWorkloadInstance) GetMetricsAttributes

func (w KeptnWorkloadInstance) GetMetricsAttributes() []attribute.KeyValue

func (KeptnWorkloadInstance) GetNamespace

func (w KeptnWorkloadInstance) GetNamespace() string

func (KeptnWorkloadInstance) GetParentName

func (w KeptnWorkloadInstance) GetParentName() string

func (KeptnWorkloadInstance) GetPostDeploymentEvaluationTaskStatus

func (w KeptnWorkloadInstance) GetPostDeploymentEvaluationTaskStatus() []ItemStatus

func (KeptnWorkloadInstance) GetPostDeploymentEvaluations

func (w KeptnWorkloadInstance) GetPostDeploymentEvaluations() []string

func (KeptnWorkloadInstance) GetPostDeploymentTaskStatus

func (w KeptnWorkloadInstance) GetPostDeploymentTaskStatus() []ItemStatus

func (KeptnWorkloadInstance) GetPostDeploymentTasks

func (w KeptnWorkloadInstance) GetPostDeploymentTasks() []string

func (KeptnWorkloadInstance) GetPreDeploymentEvaluationTaskStatus

func (w KeptnWorkloadInstance) GetPreDeploymentEvaluationTaskStatus() []ItemStatus

func (KeptnWorkloadInstance) GetPreDeploymentEvaluations

func (w KeptnWorkloadInstance) GetPreDeploymentEvaluations() []string

func (KeptnWorkloadInstance) GetPreDeploymentTaskStatus

func (w KeptnWorkloadInstance) GetPreDeploymentTaskStatus() []ItemStatus

func (KeptnWorkloadInstance) GetPreDeploymentTasks

func (w KeptnWorkloadInstance) GetPreDeploymentTasks() []string

func (KeptnWorkloadInstance) GetPreviousVersion

func (w KeptnWorkloadInstance) GetPreviousVersion() string

func (KeptnWorkloadInstance) GetSpanAttributes

func (w KeptnWorkloadInstance) GetSpanAttributes() []attribute.KeyValue

func (KeptnWorkloadInstance) GetSpanKey

func (w KeptnWorkloadInstance) GetSpanKey(phase string) string

func (KeptnWorkloadInstance) GetSpanName

func (w KeptnWorkloadInstance) GetSpanName(phase string) string

func (KeptnWorkloadInstance) GetStartTime

func (w KeptnWorkloadInstance) GetStartTime() time.Time

func (KeptnWorkloadInstance) GetState

func (KeptnWorkloadInstance) GetVersion

func (w KeptnWorkloadInstance) GetVersion() string

func (*KeptnWorkloadInstance) Hub

func (*KeptnWorkloadInstance) Hub()

Hub is the stub function to make the API conversion pattern with hub and spokes complete

func (KeptnWorkloadInstance) IsDeploymentCompleted

func (w KeptnWorkloadInstance) IsDeploymentCompleted() bool

func (KeptnWorkloadInstance) IsDeploymentFailed

func (w KeptnWorkloadInstance) IsDeploymentFailed() bool

func (KeptnWorkloadInstance) IsDeploymentSucceeded

func (w KeptnWorkloadInstance) IsDeploymentSucceeded() bool

func (*KeptnWorkloadInstance) IsEndTimeSet

func (w *KeptnWorkloadInstance) IsEndTimeSet() bool

func (KeptnWorkloadInstance) IsPostDeploymentCompleted

func (w KeptnWorkloadInstance) IsPostDeploymentCompleted() bool

func (KeptnWorkloadInstance) IsPostDeploymentEvaluationCompleted

func (w KeptnWorkloadInstance) IsPostDeploymentEvaluationCompleted() bool

func (KeptnWorkloadInstance) IsPostDeploymentEvaluationFailed

func (w KeptnWorkloadInstance) IsPostDeploymentEvaluationFailed() bool

func (KeptnWorkloadInstance) IsPostDeploymentEvaluationSucceeded

func (w KeptnWorkloadInstance) IsPostDeploymentEvaluationSucceeded() bool

func (KeptnWorkloadInstance) IsPostDeploymentFailed

func (w KeptnWorkloadInstance) IsPostDeploymentFailed() bool

func (KeptnWorkloadInstance) IsPostDeploymentSucceeded

func (w KeptnWorkloadInstance) IsPostDeploymentSucceeded() bool

func (KeptnWorkloadInstance) IsPreDeploymentCompleted

func (w KeptnWorkloadInstance) IsPreDeploymentCompleted() bool

func (KeptnWorkloadInstance) IsPreDeploymentEvaluationCompleted

func (w KeptnWorkloadInstance) IsPreDeploymentEvaluationCompleted() bool

func (KeptnWorkloadInstance) IsPreDeploymentEvaluationFailed

func (w KeptnWorkloadInstance) IsPreDeploymentEvaluationFailed() bool

func (KeptnWorkloadInstance) IsPreDeploymentEvaluationSucceeded

func (w KeptnWorkloadInstance) IsPreDeploymentEvaluationSucceeded() bool

func (KeptnWorkloadInstance) IsPreDeploymentFailed

func (w KeptnWorkloadInstance) IsPreDeploymentFailed() bool

func (KeptnWorkloadInstance) IsPreDeploymentSucceeded

func (w KeptnWorkloadInstance) IsPreDeploymentSucceeded() bool

func (*KeptnWorkloadInstance) IsStartTimeSet

func (w *KeptnWorkloadInstance) IsStartTimeSet() bool

func (*KeptnWorkloadInstance) SetCurrentPhase

func (w *KeptnWorkloadInstance) SetCurrentPhase(phase string)

func (*KeptnWorkloadInstance) SetEndTime

func (w *KeptnWorkloadInstance) SetEndTime()

func (*KeptnWorkloadInstance) SetPhaseTraceID

func (w *KeptnWorkloadInstance) SetPhaseTraceID(phase string, carrier propagation.MapCarrier)

func (KeptnWorkloadInstance) SetSpanAttributes

func (w KeptnWorkloadInstance) SetSpanAttributes(span trace.Span)

func (*KeptnWorkloadInstance) SetStartTime

func (w *KeptnWorkloadInstance) SetStartTime()

func (*KeptnWorkloadInstance) SetState

func (w *KeptnWorkloadInstance) SetState(state common.KeptnState)

func (*KeptnWorkloadInstance) SetupWebhookWithManager

func (r *KeptnWorkloadInstance) SetupWebhookWithManager(mgr ctrl.Manager) error

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.

func (KeptnWorkloadInstanceList) GetItems

func (w KeptnWorkloadInstanceList) GetItems() []client.Object

type KeptnWorkloadInstanceSpec

type KeptnWorkloadInstanceSpec struct {
	KeptnWorkloadSpec `json:",inline"`
	// WorkloadName is the name of the KeptnWorkload.
	WorkloadName string `json:"workloadName"`
	// PreviousVersion is the version of the KeptnWorkload that has been deployed prior to this version.
	PreviousVersion string `json:"previousVersion,omitempty"`
	// TraceId contains the OpenTelemetry trace ID.
	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 {
	// PreDeploymentStatus indicates the current status of the KeptnWorkloadInstance's PreDeployment phase.
	// +kubebuilder:default:=Pending
	PreDeploymentStatus common.KeptnState `json:"preDeploymentStatus,omitempty"`
	// DeploymentStatus indicates the current status of the KeptnWorkloadInstance's Deployment phase.
	// +kubebuilder:default:=Pending
	DeploymentStatus common.KeptnState `json:"deploymentStatus,omitempty"`
	// PreDeploymentEvaluationStatus indicates the current status of the KeptnWorkloadInstance's PreDeploymentEvaluation phase.
	// +kubebuilder:default:=Pending
	PreDeploymentEvaluationStatus common.KeptnState `json:"preDeploymentEvaluationStatus,omitempty"`
	// PostDeploymentEvaluationStatus indicates the current status of the KeptnWorkloadInstance's PostDeploymentEvaluation phase.
	// +kubebuilder:default:=Pending
	PostDeploymentEvaluationStatus common.KeptnState `json:"postDeploymentEvaluationStatus,omitempty"`
	// PostDeploymentStatus indicates the current status of the KeptnWorkloadInstance's PostDeployment phase.
	// +kubebuilder:default:=Pending
	PostDeploymentStatus common.KeptnState `json:"postDeploymentStatus,omitempty"`
	// PreDeploymentTaskStatus indicates the current state of each preDeploymentTask of the KeptnWorkloadInstance.
	PreDeploymentTaskStatus []ItemStatus `json:"preDeploymentTaskStatus,omitempty"`
	// PostDeploymentTaskStatus indicates the current state of each postDeploymentTask of the KeptnWorkloadInstance.
	PostDeploymentTaskStatus []ItemStatus `json:"postDeploymentTaskStatus,omitempty"`
	// PreDeploymentEvaluationTaskStatus indicates the current state of each preDeploymentEvaluation of the KeptnWorkloadInstance.
	PreDeploymentEvaluationTaskStatus []ItemStatus `json:"preDeploymentEvaluationTaskStatus,omitempty"`
	// PostDeploymentEvaluationTaskStatus indicates the current state of each postDeploymentEvaluation of the KeptnWorkloadInstance.
	PostDeploymentEvaluationTaskStatus []ItemStatus `json:"postDeploymentEvaluationTaskStatus,omitempty"`
	// StartTime represents the time at which the deployment of the KeptnWorkloadInstance started.
	StartTime metav1.Time `json:"startTime,omitempty"`
	// EndTime represents the time at which the deployment of the KeptnWorkloadInstance finished.
	EndTime metav1.Time `json:"endTime,omitempty"`
	// CurrentPhase indicates the current phase of the KeptnWorkloadInstance. This can be:
	// - PreDeploymentTasks
	// - PreDeploymentEvaluations
	// - Deployment
	// - PostDeploymentTasks
	// - PostDeploymentEvaluations
	CurrentPhase string `json:"currentPhase,omitempty"`
	// PhaseTraceIDs contains the trace IDs of the OpenTelemetry spans of each phase of the KeptnWorkloadInstance
	PhaseTraceIDs common.PhaseTraceID `json:"phaseTraceIDs,omitempty"`
	// Status represents the overall status of the KeptnWorkloadInstance.
	// +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 KeptnWorkloadRef

type KeptnWorkloadRef struct {
	// Name is the name of the KeptnWorkload.
	Name string `json:"name"`
	// Version is the version of the KeptnWorkload.
	Version string `json:"version"`
}

KeptnWorkloadRef refers to a KeptnWorkload that is part of a KeptnApp

func (*KeptnWorkloadRef) DeepCopy

func (in *KeptnWorkloadRef) DeepCopy() *KeptnWorkloadRef

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

func (*KeptnWorkloadRef) DeepCopyInto

func (in *KeptnWorkloadRef) DeepCopyInto(out *KeptnWorkloadRef)

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

type KeptnWorkloadSpec

type KeptnWorkloadSpec struct {
	// AppName is the name of the KeptnApp containing the KeptnWorkload.
	AppName string `json:"app"`
	// Version defines the version of the KeptnWorkload.
	Version string `json:"version"`
	// PreDeploymentTasks is a list of all tasks to be performed during the pre-deployment phase of the KeptnWorkload.
	// The items of this list refer to the names of KeptnTaskDefinitions
	// located in the same namespace as the KeptnApp, or in the KLT namespace.
	PreDeploymentTasks []string `json:"preDeploymentTasks,omitempty"`
	// PostDeploymentTasks is a list of all tasks to be performed during the post-deployment phase of the KeptnWorkload.
	// The items of this list refer to the names of KeptnTaskDefinitions
	// located in the same namespace as the KeptnWorkload, or in the KLT namespace.
	PostDeploymentTasks []string `json:"postDeploymentTasks,omitempty"`
	// PreDeploymentEvaluations is a list of all evaluations to be performed
	// during the pre-deployment phase of the KeptnWorkload.
	// The items of this list refer to the names of KeptnEvaluationDefinitions
	// located in the same namespace as the KeptnWorkload, or in the KLT namespace.
	PreDeploymentEvaluations []string `json:"preDeploymentEvaluations,omitempty"`
	// PostDeploymentEvaluations is a list of all evaluations to be performed
	// during the post-deployment phase of the KeptnWorkload.
	// The items of this list refer to the names of KeptnEvaluationDefinitions
	// located in the same namespace as the KeptnWorkload, or in the KLT namespace.
	PostDeploymentEvaluations []string `json:"postDeploymentEvaluations,omitempty"`
	// ResourceReference is a reference to the Kubernetes resource
	// (Deployment, DaemonSet, StatefulSet or ReplicaSet) the KeptnWorkload is representing.
	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 indicates the version that is currently deployed or being reconciled.
	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 Objective

type Objective struct {
	// KeptnMetricRef references the KeptnMetric that should be evaluated.
	KeptnMetricRef KeptnMetricReference `json:"keptnMetricRef"`
	// EvaluationTarget specifies the target value for the references KeptnMetric.
	// Needs to start with either '<' or '>', followed by the target value (e.g. '<10').
	EvaluationTarget string `json:"evaluationTarget"`
}

func (*Objective) DeepCopy

func (in *Objective) DeepCopy() *Objective

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

func (*Objective) DeepCopyInto

func (in *Objective) DeepCopyInto(out *Objective)

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 RuntimeSpec

type RuntimeSpec struct {
	// FunctionReference allows to reference another KeptnTaskDefinition which contains the source code of the
	// function to be executes for KeptnTasks based on this KeptnTaskDefinition. This can be useful when you have
	// multiple KeptnTaskDefinitions that should execute the same logic, but each with different parameters.
	FunctionReference FunctionReference `json:"functionRef,omitempty"`
	// Inline allows to specify the code that should be executed directly in the KeptnTaskDefinition, as a multi-line
	// string.
	Inline Inline `json:"inline,omitempty"`
	// HttpReference allows to point to an HTTP URL containing the code of the function.
	HttpReference HttpReference `json:"httpRef,omitempty"`
	// ConfigMapReference allows to reference a ConfigMap containing the code of the function.
	// When referencing a ConfigMap, the code of the function must be available as a value of the 'code' key
	// of the referenced ConfigMap.
	ConfigMapReference ConfigMapReference `json:"configMapRef,omitempty"`
	// Parameters contains parameters that will be passed to the job that executes the task as env variables.
	Parameters TaskParameters `json:"parameters,omitempty"`
	// SecureParameters contains secure parameters that will be passed to the job that executes the task.
	// These will be stored and accessed as secrets in the cluster.
	SecureParameters SecureParameters `json:"secureParameters,omitempty"`
	// CmdParameters contains parameters that will be passed to the command
	CmdParameters string `json:"cmdParameters,omitempty"`
}

func (*RuntimeSpec) DeepCopy

func (in *RuntimeSpec) DeepCopy() *RuntimeSpec

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

func (*RuntimeSpec) DeepCopyInto

func (in *RuntimeSpec) DeepCopyInto(out *RuntimeSpec)

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

type SecureParameters

type SecureParameters struct {
	// Secret contains the parameters that will be made available to the job
	// executing the KeptnTask via the 'SECRET_DATA' environment variable.
	// The 'SECRET_DATA'  environment variable's content will the same as value of the 'SECRET_DATA'
	// key of the referenced secret.
	Secret string `json:"secret,omitempty"`
}

func (*SecureParameters) DeepCopy

func (in *SecureParameters) DeepCopy() *SecureParameters

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

func (*SecureParameters) DeepCopyInto

func (in *SecureParameters) DeepCopyInto(out *SecureParameters)

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

type TaskContext

type TaskContext struct {
	// WorkloadName the name of the KeptnWorkload the KeptnTask is being executed for.
	WorkloadName string `json:"workloadName"`
	// AppName the name of the KeptnApp the KeptnTask is being executed for.
	AppName string `json:"appName"`
	// AppVersion the version of the KeptnApp the KeptnTask is being executed for.
	AppVersion string `json:"appVersion"`
	// WorkloadVersion the version of the KeptnWorkload the KeptnTask is being executed for.
	WorkloadVersion string `json:"workloadVersion"`
	// TaskType indicates whether the KeptnTask is part of the pre- or postDeployment phase.
	TaskType string `json:"taskType"`
	// ObjectType indicates whether the KeptnTask is being executed for a KeptnApp or KeptnWorkload.
	ObjectType string `json:"objectType"`
}

func (*TaskContext) DeepCopy

func (in *TaskContext) DeepCopy() *TaskContext

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

func (*TaskContext) DeepCopyInto

func (in *TaskContext) DeepCopyInto(out *TaskContext)

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

type TaskParameters

type TaskParameters struct {
	// Inline contains the parameters that will be made available to the job
	// executing the KeptnTask via the 'DATA' environment variable.
	// The 'DATA'  environment variable's content will be a json
	// encoded string containing all properties of the map provided.
	Inline map[string]string `json:"map,omitempty"`
}

func (*TaskParameters) DeepCopy

func (in *TaskParameters) DeepCopy() *TaskParameters

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

func (*TaskParameters) DeepCopyInto

func (in *TaskParameters) DeepCopyInto(out *TaskParameters)

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

type WorkloadStatus

type WorkloadStatus struct {
	// Workload refers to a KeptnWorkload that is part of the KeptnAppVersion.
	Workload KeptnWorkloadRef `json:"workload,omitempty"`
	// Status indicates the current status of the KeptnWorkload.
	// +kubebuilder:default:=Pending
	Status common.KeptnState `json:"status,omitempty"`
}

func (*WorkloadStatus) DeepCopy

func (in *WorkloadStatus) DeepCopy() *WorkloadStatus

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

func (*WorkloadStatus) DeepCopyInto

func (in *WorkloadStatus) DeepCopyInto(out *WorkloadStatus)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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