v1

package
v0.0.0-...-67b0140 Latest Latest
Warning

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

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

Documentation

Overview

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

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

type AutomountServiceAccountTokenSpec struct {
	Type *bool `json:"type"`
}

func (*AutomountServiceAccountTokenSpec) DeepCopy

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

func (*AutomountServiceAccountTokenSpec) DeepCopyInto

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

type ConfigMapReference

type ConfigMapReference struct {
	// Name is the name of the referenced ConfigMap.
	// +optional
	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 DeploymentTaskSpec

type DeploymentTaskSpec struct {
	// 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 Keptn 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 Keptn 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 Keptn 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 Keptn namespace.
	PostDeploymentEvaluations []string `json:"postDeploymentEvaluations,omitempty"`
	// PromotionTasks is a list of all tasks to be performed during the promotion 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 Keptn namespace.
	PromotionTasks []string `json:"promotionTasks,omitempty"`
}

func (*DeploymentTaskSpec) DeepCopy

func (in *DeploymentTaskSpec) DeepCopy() *DeploymentTaskSpec

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

func (*DeploymentTaskSpec) DeepCopyInto

func (in *DeploymentTaskSpec) DeepCopyInto(out *DeploymentTaskSpec)

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.
	// +optional
	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 FailureConditions

type FailureConditions struct {
	// 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
	// +optional
	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.
	// +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"`
}

FailureConditions represent the failure conditions (number of retries and retry interval) for the evaluation to be considered as failed

func (*FailureConditions) DeepCopy

func (in *FailureConditions) DeepCopy() *FailureConditions

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

func (*FailureConditions) DeepCopyInto

func (in *FailureConditions) DeepCopyInto(out *FailureConditions)

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 KeptnTaskDefinition.
	// +optional
	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.
	// +optional
	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.
	// +optional
	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.
	// +optional
	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/TaskDefinition
	// +optional
	DefinitionName string `json:"definitionName,omitempty"`
	// +kubebuilder:default:=Pending
	// +optional
	Status common.KeptnState `json:"status,omitempty"`
	// Name is the name of the Evaluation/Task
	// +optional
	Name string `json:"name,omitempty"`
	// StartTime represents the time at which the Item (Evaluation/Task) started.
	// +optional
	StartTime metav1.Time `json:"startTime,omitempty"`
	// EndTime represents the time at which the Item (Evaluation/Task) started.
	// +optional
	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"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec describes the desired state of the KeptnApp.
	// +optional
	Spec KeptnAppSpec `json:"spec,omitempty"`
	// Status describes the current state of the KeptnApp.
	// +optional
	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) 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 KeptnAppContext

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

	Spec   KeptnAppContextSpec   `json:"spec,omitempty"`
	Status KeptnAppContextStatus `json:"status,omitempty"`
}

KeptnAppContext is the Schema for the keptnappcontexts API

func (*KeptnAppContext) DeepCopy

func (in *KeptnAppContext) DeepCopy() *KeptnAppContext

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

func (*KeptnAppContext) DeepCopyInto

func (in *KeptnAppContext) DeepCopyInto(out *KeptnAppContext)

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

func (*KeptnAppContext) DeepCopyObject

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

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

type KeptnAppContextList

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

KeptnAppContextList contains a list of KeptnAppContext

func (*KeptnAppContextList) DeepCopy

func (in *KeptnAppContextList) DeepCopy() *KeptnAppContextList

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

func (*KeptnAppContextList) DeepCopyInto

func (in *KeptnAppContextList) DeepCopyInto(out *KeptnAppContextList)

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

func (*KeptnAppContextList) DeepCopyObject

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

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

type KeptnAppContextSpec

type KeptnAppContextSpec struct {
	DeploymentTaskSpec `json:",inline"`

	// +optional
	// Metadata contains additional key-value pairs for contextual information.
	Metadata map[string]string `json:"metadata,omitempty"`

	// +optional
	// SpanLinks are links to OpenTelemetry span IDs for tracking. These links establish relationships between spans across different services, enabling distributed tracing.
	// For more information on OpenTelemetry span links, refer to the documentation: https://opentelemetry.io/docs/concepts/signals/traces/#span-links
	SpanLinks []string `json:"spanLinks,omitempty"`
}

KeptnAppContextSpec defines the desired state of KeptnAppContext

func (*KeptnAppContextSpec) DeepCopy

func (in *KeptnAppContextSpec) DeepCopy() *KeptnAppContextSpec

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

func (*KeptnAppContextSpec) DeepCopyInto

func (in *KeptnAppContextSpec) DeepCopyInto(out *KeptnAppContextSpec)

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

type KeptnAppContextStatus

type KeptnAppContextStatus struct {
	// unused field
	// +optional
	Status string `json:"status,omitempty"`
}

KeptnAppContextStatus defines the observed state of KeptnAppContext

func (*KeptnAppContextStatus) DeepCopy

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

func (*KeptnAppContextStatus) DeepCopyInto

func (in *KeptnAppContextStatus) DeepCopyInto(out *KeptnAppContextStatus)

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

type KeptnAppCreationRequest

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

	// Spec describes the desired state of the KeptnAppCreationRequest.
	// +optional
	Spec KeptnAppCreationRequestSpec `json:"spec,omitempty"`
	// Status describes the current state of the KeptnAppCreationRequest.
	// +optional
	Status string `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"`
	// +optional
	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 KeptnAppList

type KeptnAppList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	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
	// +optional
	Revision uint `json:"revision,omitempty"`
	// Workloads is a list of all KeptnWorkloads that are part of the KeptnApp.
	// +optional
	Workloads []KeptnWorkloadRef `json:"workloads,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.
	// +optional
	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"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec describes the desired state of the KeptnAppVersion.
	// +optional
	Spec KeptnAppVersionSpec `json:"spec,omitempty"`
	// Status describes the current state of the KeptnAppVersion.
	// +optional
	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) GetPromotionTaskStatus

func (a KeptnAppVersion) GetPromotionTaskStatus() []ItemStatus

func (KeptnAppVersion) GetPromotionTasks

func (a KeptnAppVersion) GetPromotionTasks() []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(isBlocking bool) bool

func (KeptnAppVersion) IsPostDeploymentFailed

func (a KeptnAppVersion) IsPostDeploymentFailed() bool

func (KeptnAppVersion) IsPostDeploymentSucceeded

func (a KeptnAppVersion) IsPostDeploymentSucceeded(isBlocking bool) 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(isBlocking bool) bool

func (KeptnAppVersion) IsPreDeploymentFailed

func (a KeptnAppVersion) IsPreDeploymentFailed() bool

func (KeptnAppVersion) IsPreDeploymentSucceeded

func (a KeptnAppVersion) IsPreDeploymentSucceeded(isBlocking bool) bool

func (KeptnAppVersion) IsPromotionCompleted

func (a KeptnAppVersion) IsPromotionCompleted() bool

func (KeptnAppVersion) IsPromotionFailed

func (a KeptnAppVersion) IsPromotionFailed() bool

func (KeptnAppVersion) IsPromotionSucceeded

func (a KeptnAppVersion) IsPromotionSucceeded() 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"`
	// +optional
	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 {
	KeptnAppContextSpec `json:",inline"`
	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.
	// +optional
	PreviousVersion string `json:"previousVersion,omitempty"`
	// TraceId contains the OpenTelemetry trace ID.
	// +optional
	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
	// +optional
	PreDeploymentStatus common.KeptnState `json:"preDeploymentStatus,omitempty"`
	// PostDeploymentStatus indicates the current status of the KeptnAppVersion's PostDeployment phase.
	// +kubebuilder:default:=Pending
	// +optional
	PostDeploymentStatus common.KeptnState `json:"postDeploymentStatus,omitempty"`
	// PromotionStatus indicates the current status of the KeptnAppVersion's Promotion phase.
	// +kubebuilder:default:=Pending
	// +optional
	PromotionStatus common.KeptnState `json:"promotionStatus,omitempty"`
	// PreDeploymentEvaluationStatus indicates the current status of the KeptnAppVersion's PreDeploymentEvaluation phase.
	// +kubebuilder:default:=Pending
	// +optional
	PreDeploymentEvaluationStatus common.KeptnState `json:"preDeploymentEvaluationStatus,omitempty"`
	// PostDeploymentEvaluationStatus indicates the current status of the KeptnAppVersion's PostDeploymentEvaluation phase.
	// +kubebuilder:default:=Pending
	// +optional
	PostDeploymentEvaluationStatus common.KeptnState `json:"postDeploymentEvaluationStatus,omitempty"`
	// WorkloadOverallStatus indicates the current status of the KeptnAppVersion's Workload deployment phase.
	// +kubebuilder:default:=Pending
	// +optional
	WorkloadOverallStatus common.KeptnState `json:"workloadOverallStatus,omitempty"`
	// WorkloadStatus contains the current status of each KeptnWorkload that is part of the KeptnAppVersion.
	// +optional
	WorkloadStatus []WorkloadStatus `json:"workloadStatus,omitempty"`
	// CurrentPhase indicates the current phase of the KeptnAppVersion.
	// +optional
	CurrentPhase string `json:"currentPhase,omitempty"`
	// PreDeploymentTaskStatus indicates the current state of each preDeploymentTask of the KeptnAppVersion.
	// +optional
	PreDeploymentTaskStatus []ItemStatus `json:"preDeploymentTaskStatus,omitempty"`
	// PostDeploymentTaskStatus indicates the current state of each postDeploymentTask of the KeptnAppVersion.
	// +optional
	PostDeploymentTaskStatus []ItemStatus `json:"postDeploymentTaskStatus,omitempty"`
	// PromotionTaskStatus indicates the current state of each promotionTask of the KeptnAppVersion.
	// +optional
	PromotionTaskStatus []ItemStatus `json:"promotionTaskStatus,omitempty"`
	// PreDeploymentEvaluationTaskStatus indicates the current state of each preDeploymentEvaluation of the KeptnAppVersion.
	// +optional
	PreDeploymentEvaluationTaskStatus []ItemStatus `json:"preDeploymentEvaluationTaskStatus,omitempty"`
	// PostDeploymentEvaluationTaskStatus indicates the current state of each postDeploymentEvaluation of the KeptnAppVersion.
	// +optional
	PostDeploymentEvaluationTaskStatus []ItemStatus `json:"postDeploymentEvaluationTaskStatus,omitempty"`
	// PhaseTraceIDs contains the trace IDs of the OpenTelemetry spans of each phase of the KeptnAppVersion.
	// +optional
	PhaseTraceIDs common.PhaseTraceID `json:"phaseTraceIDs,omitempty"`
	// Status represents the overall status of the KeptnAppVersion.
	// +kubebuilder:default:=Pending
	// +optional
	Status common.KeptnState `json:"status,omitempty"`

	// StartTime represents the time at which the deployment of the KeptnAppVersion started.
	// +optional
	StartTime metav1.Time `json:"startTime,omitempty"`
	// EndTime represents the time at which the deployment of the KeptnAppVersion finished.
	// +optional
	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"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec describes the desired state of the KeptnEvaluation.
	// +optional
	Spec KeptnEvaluationSpec `json:"spec,omitempty"`
	// Status describes the current state of the KeptnEvaluation.
	// +optional
	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"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec describes the desired state of the KeptnEvaluationDefinition.
	// +optional
	Spec KeptnEvaluationDefinitionSpec `json:"spec,omitempty"`
	// unused field
	// +optional
	Status string `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"`
	// +optional
	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"`
	// FailureConditions represent the failure conditions (number of retries and retry interval)
	// for the evaluation to be considered as failed
	FailureConditions `json:",inline"`
}

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 KeptnEvaluationList

type KeptnEvaluationList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	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 KeptnEvaluationSpec

type KeptnEvaluationSpec struct {
	// Workload defines the KeptnWorkload for which the KeptnEvaluation is done.
	// +optional
	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.
	// +optional
	AppName string `json:"appName,omitempty"`
	// AppVersion defines the version of the KeptnApp for which the KeptnEvaluation is done.
	// +optional
	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 Keptn namespace.
	EvaluationDefinition string `json:"evaluationDefinition"`
	// Type indicates whether the KeptnEvaluation is part of the pre- or postDeployment phase.
	// +optional
	Type common.CheckType `json:"checkType,omitempty"`
	// FailureConditions represent the failure conditions (number of retries and retry interval)
	// for the evaluation to be considered as failed
	FailureConditions `json:",inline"`
}

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.
	// +optional
	StartTime metav1.Time `json:"startTime,omitempty"`
	// EndTime represents the time at which the KeptnEvaluation finished.
	// +optional
	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.
	// +optional
	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"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec describes the desired state of the KeptnTask.
	// +optional
	Spec KeptnTaskSpec `json:"spec,omitempty"`
	// Status describes the current state of the KeptnTask.
	// +optional
	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"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec describes the desired state of the KeptnTaskDefinition.
	// +optional
	Spec KeptnTaskDefinitionSpec `json:"spec,omitempty"`
	// Status describes the current state of the KeptnTaskDefinition.
	// +optional
	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) GetAutomountServiceAccountToken

func (d *KeptnTaskDefinition) GetAutomountServiceAccountToken() *bool

func (*KeptnTaskDefinition) GetServiceAccount

func (d *KeptnTaskDefinition) GetServiceAccount() string

func (*KeptnTaskDefinition) SetupWebhookWithManager

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

func (*KeptnTaskDefinition) ValidateCreate

func (r *KeptnTaskDefinition) ValidateCreate() (admission.Warnings, error)

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

func (*KeptnTaskDefinition) ValidateDelete

func (r *KeptnTaskDefinition) ValidateDelete() (admission.Warnings, error)

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

func (*KeptnTaskDefinition) ValidateUpdate

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

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

type KeptnTaskDefinitionList

type KeptnTaskDefinitionList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	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 {
	// Python contains the definition for the python function that is to be executed in KeptnTasks.
	// +optional
	Python *RuntimeSpec `json:"python,omitempty"`
	// Deno contains the definition for the Deno function that is to be executed in KeptnTasks.
	// +optional
	Deno *RuntimeSpec `json:"deno,omitempty"`
	// Container contains the definition for the container that is to be used in Job.
	// +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
	// +optional
	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"`
	// ServiceAccount specifies the service account to be used in jobs to authenticate with the Kubernetes API and access cluster resources.
	// +optional
	ServiceAccount *ServiceAccountSpec `json:"serviceAccount,omitempty"`
	// AutomountServiceAccountToken allows to enable K8s to assign cluster API credentials to a pod, if set to false
	// the pod will decline the service account
	// +optional
	AutomountServiceAccountToken *AutomountServiceAccountTokenSpec `json:"automountServiceAccountToken,omitempty"`
	// TTLSecondsAfterFinished controller makes a job eligible to be cleaned up after it is finished.
	// The timer starts when the status shows up to be Complete or Failed.
	// +kubebuilder:default:=300
	// +optional
	TTLSecondsAfterFinished *int32 `json:"ttlSecondsAfterFinished,omitempty"`
	// ImagePullSecrets is an optional field to specify the names of secrets to use for pulling container images
	// +optional
	ImagePullSecrets []v1.LocalObjectReference `json:"imagePullSecrets,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.
	// +optional
	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"`
	// +optional
	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 {
	// 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 Keptn namespace.
	TaskDefinition string `json:"taskDefinition"`
	// Context contains contextual information about the task execution.
	// +optional
	Context TaskContext `json:"context"`
	// Parameters contains parameters that will be passed to the job that executes the task.
	// +optional
	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.
	// +optional
	SecureParameters SecureParameters `json:"secureParameters,omitempty"`
	// Type indicates whether the KeptnTask is part of the pre- or postDeployment phase.
	// +optional
	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
	// +optional
	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"`
}

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.
	// +optional
	JobName string `json:"jobName,omitempty"`
	// Status represents the overall state of the KeptnTask.
	// +kubebuilder:default:=Pending
	// +optional
	Status common.KeptnState `json:"status,omitempty"`
	// Message contains information about unexpected errors encountered during the execution of the KeptnTask.
	// +optional
	Message string `json:"message,omitempty"`
	// StartTime represents the time at which the KeptnTask started.
	// +optional
	StartTime metav1.Time `json:"startTime,omitempty"`
	// EndTime represents the time at which the KeptnTask finished.
	// +optional
	EndTime metav1.Time `json:"endTime,omitempty"`
	// Reason contains more information about the reason for the last transition of the Job executing the KeptnTask.
	// +optional
	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"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

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

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

type KeptnWorkloadList

type KeptnWorkloadList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	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 Keptn namespace.
	// +optional
	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 Keptn namespace.
	// +optional
	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 Keptn namespace.
	// +optional
	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 Keptn namespace.
	// +optional
	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"`
	// +optional
	// Metadata contains additional key-value pairs for contextual information.
	Metadata map[string]string `json:"metadata,omitempty"`
}

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.
	// +optional
	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 KeptnWorkloadVersion

type KeptnWorkloadVersion struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec describes the desired state of the KeptnWorkloadVersion.
	// +optional
	Spec KeptnWorkloadVersionSpec `json:"spec,omitempty"`
	// Status describes the current state of the KeptnWorkloadVersion.
	// +optional
	Status KeptnWorkloadVersionStatus `json:"status,omitempty"`
}

KeptnWorkloadVersion is the Schema for the keptnworkloadversions API

func (*KeptnWorkloadVersion) Complete

func (w *KeptnWorkloadVersion) Complete()

func (*KeptnWorkloadVersion) DeepCopy

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

func (*KeptnWorkloadVersion) DeepCopyInto

func (in *KeptnWorkloadVersion) DeepCopyInto(out *KeptnWorkloadVersion)

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

func (*KeptnWorkloadVersion) DeepCopyObject

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

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

func (*KeptnWorkloadVersion) DeprecateRemainingPhases

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

func (KeptnWorkloadVersion) GenerateEvaluation

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

func (KeptnWorkloadVersion) GenerateTask

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

func (KeptnWorkloadVersion) GetActiveMetricsAttributes

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

func (KeptnWorkloadVersion) GetAppName

func (w KeptnWorkloadVersion) GetAppName() string

func (KeptnWorkloadVersion) GetCurrentPhase

func (w KeptnWorkloadVersion) GetCurrentPhase() string

func (KeptnWorkloadVersion) GetDurationMetricsAttributes

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

func (KeptnWorkloadVersion) GetEndTime

func (w KeptnWorkloadVersion) GetEndTime() time.Time

func (KeptnWorkloadVersion) GetEventAnnotations

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

func (KeptnWorkloadVersion) GetMetricsAttributes

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

func (KeptnWorkloadVersion) GetNamespace

func (w KeptnWorkloadVersion) GetNamespace() string

func (KeptnWorkloadVersion) GetParentName

func (w KeptnWorkloadVersion) GetParentName() string

func (KeptnWorkloadVersion) GetPostDeploymentEvaluationTaskStatus

func (w KeptnWorkloadVersion) GetPostDeploymentEvaluationTaskStatus() []ItemStatus

func (KeptnWorkloadVersion) GetPostDeploymentEvaluations

func (w KeptnWorkloadVersion) GetPostDeploymentEvaluations() []string

func (KeptnWorkloadVersion) GetPostDeploymentTaskStatus

func (w KeptnWorkloadVersion) GetPostDeploymentTaskStatus() []ItemStatus

func (KeptnWorkloadVersion) GetPostDeploymentTasks

func (w KeptnWorkloadVersion) GetPostDeploymentTasks() []string

func (KeptnWorkloadVersion) GetPreDeploymentEvaluationTaskStatus

func (w KeptnWorkloadVersion) GetPreDeploymentEvaluationTaskStatus() []ItemStatus

func (KeptnWorkloadVersion) GetPreDeploymentEvaluations

func (w KeptnWorkloadVersion) GetPreDeploymentEvaluations() []string

func (KeptnWorkloadVersion) GetPreDeploymentTaskStatus

func (w KeptnWorkloadVersion) GetPreDeploymentTaskStatus() []ItemStatus

func (KeptnWorkloadVersion) GetPreDeploymentTasks

func (w KeptnWorkloadVersion) GetPreDeploymentTasks() []string

func (KeptnWorkloadVersion) GetPreviousVersion

func (w KeptnWorkloadVersion) GetPreviousVersion() string

func (KeptnWorkloadVersion) GetPromotionTaskStatus

func (w KeptnWorkloadVersion) GetPromotionTaskStatus() []ItemStatus

func (KeptnWorkloadVersion) GetPromotionTasks

func (w KeptnWorkloadVersion) GetPromotionTasks() []string

func (KeptnWorkloadVersion) GetSpanAttributes

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

func (KeptnWorkloadVersion) GetSpanKey

func (w KeptnWorkloadVersion) GetSpanKey(phase string) string

func (KeptnWorkloadVersion) GetSpanName

func (w KeptnWorkloadVersion) GetSpanName(phase string) string

func (KeptnWorkloadVersion) GetStartTime

func (w KeptnWorkloadVersion) GetStartTime() time.Time

func (KeptnWorkloadVersion) GetState

func (w KeptnWorkloadVersion) GetState() common.KeptnState

func (KeptnWorkloadVersion) GetVersion

func (w KeptnWorkloadVersion) GetVersion() string

func (KeptnWorkloadVersion) IsDeploymentCompleted

func (w KeptnWorkloadVersion) IsDeploymentCompleted() bool

func (KeptnWorkloadVersion) IsDeploymentFailed

func (w KeptnWorkloadVersion) IsDeploymentFailed() bool

func (*KeptnWorkloadVersion) IsDeploymentStartTimeSet

func (w *KeptnWorkloadVersion) IsDeploymentStartTimeSet() bool

func (KeptnWorkloadVersion) IsDeploymentSucceeded

func (w KeptnWorkloadVersion) IsDeploymentSucceeded() bool

func (*KeptnWorkloadVersion) IsEndTimeSet

func (w *KeptnWorkloadVersion) IsEndTimeSet() bool

func (KeptnWorkloadVersion) IsPostDeploymentCompleted

func (w KeptnWorkloadVersion) IsPostDeploymentCompleted() bool

func (KeptnWorkloadVersion) IsPostDeploymentEvaluationCompleted

func (w KeptnWorkloadVersion) IsPostDeploymentEvaluationCompleted() bool

func (KeptnWorkloadVersion) IsPostDeploymentEvaluationFailed

func (w KeptnWorkloadVersion) IsPostDeploymentEvaluationFailed() bool

func (KeptnWorkloadVersion) IsPostDeploymentEvaluationSucceeded

func (w KeptnWorkloadVersion) IsPostDeploymentEvaluationSucceeded(isBlocking bool) bool

func (KeptnWorkloadVersion) IsPostDeploymentFailed

func (w KeptnWorkloadVersion) IsPostDeploymentFailed() bool

func (KeptnWorkloadVersion) IsPostDeploymentSucceeded

func (w KeptnWorkloadVersion) IsPostDeploymentSucceeded(isBlocking bool) bool

func (KeptnWorkloadVersion) IsPreDeploymentCompleted

func (w KeptnWorkloadVersion) IsPreDeploymentCompleted() bool

func (KeptnWorkloadVersion) IsPreDeploymentEvaluationCompleted

func (w KeptnWorkloadVersion) IsPreDeploymentEvaluationCompleted() bool

func (KeptnWorkloadVersion) IsPreDeploymentEvaluationFailed

func (w KeptnWorkloadVersion) IsPreDeploymentEvaluationFailed() bool

func (KeptnWorkloadVersion) IsPreDeploymentEvaluationSucceeded

func (w KeptnWorkloadVersion) IsPreDeploymentEvaluationSucceeded(isBlocking bool) bool

func (KeptnWorkloadVersion) IsPreDeploymentFailed

func (w KeptnWorkloadVersion) IsPreDeploymentFailed() bool

func (KeptnWorkloadVersion) IsPreDeploymentSucceeded

func (w KeptnWorkloadVersion) IsPreDeploymentSucceeded(isBlocking bool) bool

func (*KeptnWorkloadVersion) IsStartTimeSet

func (w *KeptnWorkloadVersion) IsStartTimeSet() bool

func (*KeptnWorkloadVersion) SetCurrentPhase

func (w *KeptnWorkloadVersion) SetCurrentPhase(phase string)

func (*KeptnWorkloadVersion) SetDeploymentStartTime

func (w *KeptnWorkloadVersion) SetDeploymentStartTime()

func (*KeptnWorkloadVersion) SetEndTime

func (w *KeptnWorkloadVersion) SetEndTime()

func (*KeptnWorkloadVersion) SetPhaseTraceID

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

func (KeptnWorkloadVersion) SetSpanAttributes

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

func (*KeptnWorkloadVersion) SetStartTime

func (w *KeptnWorkloadVersion) SetStartTime()

func (*KeptnWorkloadVersion) SetState

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

type KeptnWorkloadVersionList

type KeptnWorkloadVersionList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []KeptnWorkloadVersion `json:"items"`
}

KeptnWorkloadVersionList contains a list of KeptnWorkloadVersion

func (*KeptnWorkloadVersionList) DeepCopy

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

func (*KeptnWorkloadVersionList) DeepCopyInto

func (in *KeptnWorkloadVersionList) DeepCopyInto(out *KeptnWorkloadVersionList)

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

func (*KeptnWorkloadVersionList) DeepCopyObject

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

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

func (KeptnWorkloadVersionList) GetItems

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

type KeptnWorkloadVersionSpec

type KeptnWorkloadVersionSpec 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.
	// +optional
	PreviousVersion string `json:"previousVersion,omitempty"`
	// TraceId contains the OpenTelemetry trace ID.
	// +optional
	TraceId map[string]string `json:"traceId,omitempty"`
}

KeptnWorkloadVersionSpec defines the desired state of KeptnWorkloadVersion

func (*KeptnWorkloadVersionSpec) DeepCopy

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

func (*KeptnWorkloadVersionSpec) DeepCopyInto

func (in *KeptnWorkloadVersionSpec) DeepCopyInto(out *KeptnWorkloadVersionSpec)

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

type KeptnWorkloadVersionStatus

type KeptnWorkloadVersionStatus struct {
	// PreDeploymentStatus indicates the current status of the KeptnWorkloadVersion's PreDeployment phase.
	// +kubebuilder:default:=Pending
	// +optional
	PreDeploymentStatus common.KeptnState `json:"preDeploymentStatus,omitempty"`
	// DeploymentStatus indicates the current status of the KeptnWorkloadVersion's Deployment phase.
	// +kubebuilder:default:=Pending
	// +optional
	DeploymentStatus common.KeptnState `json:"deploymentStatus,omitempty"`
	// PreDeploymentEvaluationStatus indicates the current status of the KeptnWorkloadVersion's PreDeploymentEvaluation phase.
	// +kubebuilder:default:=Pending
	// +optional
	PreDeploymentEvaluationStatus common.KeptnState `json:"preDeploymentEvaluationStatus,omitempty"`
	// PostDeploymentEvaluationStatus indicates the current status of the KeptnWorkloadVersion's PostDeploymentEvaluation phase.
	// +kubebuilder:default:=Pending
	// +optional
	PostDeploymentEvaluationStatus common.KeptnState `json:"postDeploymentEvaluationStatus,omitempty"`
	// PostDeploymentStatus indicates the current status of the KeptnWorkloadVersion's PostDeployment phase.
	// +kubebuilder:default:=Pending
	// +optional
	PostDeploymentStatus common.KeptnState `json:"postDeploymentStatus,omitempty"`
	// PreDeploymentTaskStatus indicates the current state of each preDeploymentTask of the KeptnWorkloadVersion.
	// +optional
	PreDeploymentTaskStatus []ItemStatus `json:"preDeploymentTaskStatus,omitempty"`
	// PostDeploymentTaskStatus indicates the current state of each postDeploymentTask of the KeptnWorkloadVersion.
	// +optional
	PostDeploymentTaskStatus []ItemStatus `json:"postDeploymentTaskStatus,omitempty"`
	// PreDeploymentEvaluationTaskStatus indicates the current state of each preDeploymentEvaluation of the KeptnWorkloadVersion.
	// +optional
	PreDeploymentEvaluationTaskStatus []ItemStatus `json:"preDeploymentEvaluationTaskStatus,omitempty"`
	// PostDeploymentEvaluationTaskStatus indicates the current state of each postDeploymentEvaluation of the KeptnWorkloadVersion.
	// +optional
	PostDeploymentEvaluationTaskStatus []ItemStatus `json:"postDeploymentEvaluationTaskStatus,omitempty"`
	// StartTime represents the time at which the deployment of the KeptnWorkloadVersion started.
	// +optional
	StartTime metav1.Time `json:"startTime,omitempty"`
	// EndTime represents the time at which the deployment of the KeptnWorkloadVersion finished.
	// +optional
	EndTime metav1.Time `json:"endTime,omitempty"`
	// CurrentPhase indicates the current phase of the KeptnWorkloadVersion. This can be:
	// - PreDeploymentTasks
	// - PreDeploymentEvaluations
	// - Deployment
	// - PostDeploymentTasks
	// - PostDeploymentEvaluations
	// +optional
	CurrentPhase string `json:"currentPhase,omitempty"`
	// PhaseTraceIDs contains the trace IDs of the OpenTelemetry spans of each phase of the KeptnWorkloadVersion
	// +optional
	PhaseTraceIDs common.PhaseTraceID `json:"phaseTraceIDs,omitempty"`
	// Status represents the overall status of the KeptnWorkloadVersion.
	// +kubebuilder:default:=Pending
	// +optional
	Status common.KeptnState `json:"status,omitempty"`
	// AppContextMetadata contains metadata from the related KeptnAppVersion.
	// +optional
	AppContextMetadata map[string]string `json:"appContextMetadata,omitempty"`
	// DeploymentStartTime represents the start time of the deployment phase
	// +optional
	DeploymentStartTime metav1.Time `json:"deploymentStartTime,omitempty"`
}

KeptnWorkloadVersionStatus defines the observed state of KeptnWorkloadVersion

func (*KeptnWorkloadVersionStatus) DeepCopy

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

func (*KeptnWorkloadVersionStatus) DeepCopyInto

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"`
}

ResourceReference represents the parent resource of Workload

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.
	// +optional
	FunctionReference FunctionReference `json:"functionRef,omitempty"`
	// Inline allows to specify the code that should be executed directly in the KeptnTaskDefinition, as a multi-line
	// string.
	// +optional
	Inline Inline `json:"inline,omitempty"`
	// HttpReference allows to point to an HTTP URL containing the code of the function.
	// +optional
	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.
	// +optional
	ConfigMapReference ConfigMapReference `json:"configMapRef,omitempty"`
	// Parameters contains parameters that will be passed to the job that executes the task as env variables.
	// +optional
	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.
	// +optional
	SecureParameters SecureParameters `json:"secureParameters,omitempty"`
	// CmdParameters contains parameters that will be passed to the command
	// +optional
	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.
	// +optional
	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 ServiceAccountSpec

type ServiceAccountSpec struct {
	Name string `json:"name"`
}

func (*ServiceAccountSpec) DeepCopy

func (in *ServiceAccountSpec) DeepCopy() *ServiceAccountSpec

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

func (*ServiceAccountSpec) DeepCopyInto

func (in *ServiceAccountSpec) DeepCopyInto(out *ServiceAccountSpec)

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.
	// +optional
	WorkloadName string `json:"workloadName"`
	// AppName the name of the KeptnApp the KeptnTask is being executed for.
	// +optional
	AppName string `json:"appName"`
	// AppVersion the version of the KeptnApp the KeptnTask is being executed for.
	// +optional
	AppVersion string `json:"appVersion"`
	// WorkloadVersion the version of the KeptnWorkload the KeptnTask is being executed for.
	// +optional
	WorkloadVersion string `json:"workloadVersion"`
	// TaskType indicates whether the KeptnTask is part of the pre- or postDeployment phase.
	// +optional
	TaskType string `json:"taskType"`
	// ObjectType indicates whether the KeptnTask is being executed for a KeptnApp or KeptnWorkload.
	// +optional
	ObjectType string `json:"objectType"`
	// +optional
	// Metadata contains additional key-value pairs for contextual information.
	Metadata map[string]string `json:"metadata,omitempty"`
}

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.
	// +optional
	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.
	// +optional
	Workload KeptnWorkloadRef `json:"workload,omitempty"`
	// Status indicates the current status of the KeptnWorkload.
	// +kubebuilder:default:=Pending
	// +optional
	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
Package v1 contains API Schema definitions for the lifecycle v1 API group +groupName=lifecycle.keptn.sh +versionName=v1
Package v1 contains API Schema definitions for the lifecycle v1 API group +groupName=lifecycle.keptn.sh +versionName=v1

Jump to

Keyboard shortcuts

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