v1

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: Apache-2.0 Imports: 12 Imported by: 80

Documentation

Overview

Package v1 contains API Schema definitions for the camel v1 API group +kubebuilder:object:generate=true +groupName=camel.apache.org

Package v1 contains API Schema definitions for the camel v1 API group +kubebuilder:object:generate=true +groupName=camel.apache.org

Index

Constants

View Source
const (
	// BuildKind --
	BuildKind string = "Build"

	// BuildPhaseNone --
	BuildPhaseNone BuildPhase = ""
	// BuildPhaseInitialization --
	BuildPhaseInitialization BuildPhase = "Initialization"
	// BuildPhaseScheduling --
	BuildPhaseScheduling BuildPhase = "Scheduling"
	// BuildPhasePending --
	BuildPhasePending BuildPhase = "Pending"
	// BuildPhaseRunning --
	BuildPhaseRunning BuildPhase = "Running"
	// BuildPhaseSucceeded --
	BuildPhaseSucceeded BuildPhase = "Succeeded"
	// BuildPhaseFailed --
	BuildPhaseFailed BuildPhase = "Failed"
	// BuildPhaseInterrupted --
	BuildPhaseInterrupted = "Interrupted"
	// BuildPhaseError --
	BuildPhaseError BuildPhase = "Error"
)
View Source
const (
	// TraitAnnotationPrefix represents the prefix used for traits annotations
	TraitAnnotationPrefix = "trait.camel.apache.org/"
	// OperatorIDAnnotation operator id annotation label
	OperatorIDAnnotation = "camel.apache.org/operator.id"
	// SecondaryPlatformAnnotation secondary platform annotation label
	SecondaryPlatformAnnotation = "camel.apache.org/secondary.platform"
	// PlatformSelectorAnnotation platform id annotation label
	PlatformSelectorAnnotation = "camel.apache.org/platform.id"
)
View Source
const (
	// ServiceTypeUser service user type label marker
	ServiceTypeUser = "user"

	// CapabilityRest defines the REST API service exposure capability
	CapabilityRest = "rest"
	// CapabilityHealth defines the health monitoring capability
	CapabilityHealth = "health"
	// CapabilityCron defines the cron execution capability
	CapabilityCron = "cron"
	// CapabilityPlatformHTTP defines the http service exposure capability
	CapabilityPlatformHTTP = "platform-http"
	// CapabilityCircuitBreaker defines the circuit breaker capability
	CapabilityCircuitBreaker = "circuit-breaker"
	// CapabilityTracing defines the tracing (opentracing) capability
	CapabilityTracing = "tracing"
	// CapabilityTelemetry defines the telemetry (opentelemetry) capability
	CapabilityTelemetry = "telemetry"
	// CapabilityMaster defines the master capability
	CapabilityMaster = "master"
	// CapabilityResumeKafka defines the resume capability
	CapabilityResumeKafka = "resume-kafka"
	// CapabilityAwsSecretsManager defines the aws secrets manager capability
	CapabilityAwsSecretsManager = "aws-secrets-manager"
	// CapabilityGcpSecretManager defines the gcp secret manager capability
	CapabilityGcpSecretManager = "gcp-secret-manager"
	// CapabilityAzureKeyVault defines the azure key vault capability
	CapabilityAzureKeyVault = "azure-key-vault"
	// CapabilityHashicorpVault defines the Hashicorp Vault capability
	CapabilityHashicorpVault = "hashicorp-vault"
)
View Source
const (
	// IntegrationKind --
	IntegrationKind string = "Integration"

	// IntegrationPhaseNone --
	IntegrationPhaseNone IntegrationPhase = ""
	// IntegrationPhaseWaitingForPlatform --
	IntegrationPhaseWaitingForPlatform IntegrationPhase = "Waiting For Platform"
	// IntegrationPhaseInitialization --
	IntegrationPhaseInitialization IntegrationPhase = "Initialization"
	// IntegrationPhaseBuildingKit --
	IntegrationPhaseBuildingKit IntegrationPhase = "Building Kit"
	// IntegrationPhaseDeploying --
	IntegrationPhaseDeploying IntegrationPhase = "Deploying"
	// IntegrationPhaseRunning --
	IntegrationPhaseRunning IntegrationPhase = "Running"
	// IntegrationPhaseError --
	IntegrationPhaseError IntegrationPhase = "Error"

	// IntegrationConditionKitAvailable --
	IntegrationConditionKitAvailable IntegrationConditionType = "IntegrationKitAvailable"
	// IntegrationConditionPlatformAvailable --
	IntegrationConditionPlatformAvailable IntegrationConditionType = "IntegrationPlatformAvailable"
	// IntegrationConditionDeploymentAvailable --
	IntegrationConditionDeploymentAvailable IntegrationConditionType = "DeploymentAvailable"
	// IntegrationConditionServiceAvailable --
	IntegrationConditionServiceAvailable IntegrationConditionType = "ServiceAvailable"
	// IntegrationConditionKnativeServiceAvailable --
	IntegrationConditionKnativeServiceAvailable IntegrationConditionType = "KnativeServiceAvailable"
	// IntegrationConditionKnativeAvailable --
	IntegrationConditionKnativeAvailable IntegrationConditionType = "KnativeAvailable"
	// IntegrationConditionCronJobAvailable --
	IntegrationConditionCronJobAvailable IntegrationConditionType = "CronJobAvailable"
	// IntegrationConditionExposureAvailable --
	IntegrationConditionExposureAvailable IntegrationConditionType = "ExposureAvailable"
	// IntegrationConditionPrometheusAvailable --
	IntegrationConditionPrometheusAvailable IntegrationConditionType = "PrometheusAvailable"
	// IntegrationConditionJolokiaAvailable --
	IntegrationConditionJolokiaAvailable IntegrationConditionType = "JolokiaAvailable"
	// IntegrationConditionProbesAvailable --
	IntegrationConditionProbesAvailable IntegrationConditionType = "ProbesAvailable"
	// IntegrationConditionReady --
	IntegrationConditionReady IntegrationConditionType = "Ready"

	// IntegrationConditionKitAvailableReason --
	IntegrationConditionKitAvailableReason string = "IntegrationKitAvailable"
	// IntegrationConditionPlatformAvailableReason --
	IntegrationConditionPlatformAvailableReason string = "IntegrationPlatformAvailable"
	// IntegrationConditionDeploymentAvailableReason --
	IntegrationConditionDeploymentAvailableReason string = "DeploymentAvailable"
	// IntegrationConditionDeploymentNotAvailableReason --
	IntegrationConditionDeploymentNotAvailableReason string = "DeploymentNotAvailable"
	// IntegrationConditionServiceAvailableReason --
	IntegrationConditionServiceAvailableReason string = "ServiceAvailable"
	// IntegrationConditionServiceNotAvailableReason --
	IntegrationConditionServiceNotAvailableReason string = "ServiceNotAvailable"
	// IntegrationConditionContainerNotAvailableReason --
	IntegrationConditionContainerNotAvailableReason string = "ContainerNotAvailable"
	// IntegrationConditionRouteAvailableReason --
	IntegrationConditionRouteAvailableReason string = "RouteAvailable"
	// IntegrationConditionRouteNotAvailableReason --
	IntegrationConditionRouteNotAvailableReason string = "RouteNotAvailable"
	// IntegrationConditionIngressAvailableReason --
	IntegrationConditionIngressAvailableReason string = "IngressAvailable"
	// IntegrationConditionIngressNotAvailableReason --
	IntegrationConditionIngressNotAvailableReason string = "IngressNotAvailable"
	// IntegrationConditionKnativeServiceAvailableReason --
	IntegrationConditionKnativeServiceAvailableReason string = "KnativeServiceAvailable"
	// IntegrationConditionKnativeServiceNotAvailableReason --
	IntegrationConditionKnativeServiceNotAvailableReason string = "KnativeServiceNotAvailable"
	// IntegrationConditionKnativeNotInstalledReason --
	IntegrationConditionKnativeNotInstalledReason string = "KnativeNotInstalled"
	// IntegrationConditionCronJobAvailableReason --
	IntegrationConditionCronJobAvailableReason string = "CronJobAvailableReason"
	// IntegrationConditionCronJobNotAvailableReason --
	IntegrationConditionCronJobNotAvailableReason string = "CronJobNotAvailableReason"
	// IntegrationConditionPrometheusAvailableReason --
	IntegrationConditionPrometheusAvailableReason string = "PrometheusAvailable"
	// IntegrationConditionJolokiaAvailableReason --
	IntegrationConditionJolokiaAvailableReason string = "JolokiaAvailable"
	// IntegrationConditionProbesAvailableReason --
	IntegrationConditionProbesAvailableReason string = "ProbesAvailable"

	// IntegrationConditionKnativeServiceReadyReason --
	IntegrationConditionKnativeServiceReadyReason string = "KnativeServiceReady"
	// IntegrationConditionDeploymentReadyReason --
	IntegrationConditionDeploymentReadyReason string = "DeploymentReady"
	// IntegrationConditionDeploymentProgressingReason --
	IntegrationConditionDeploymentProgressingReason string = "DeploymentProgressing"
	// IntegrationConditionCronJobCreatedReason --
	IntegrationConditionCronJobCreatedReason string = "CronJobCreated"
	// IntegrationConditionCronJobActiveReason --
	IntegrationConditionCronJobActiveReason string = "CronJobActive"
	// IntegrationConditionLastJobSucceededReason --
	IntegrationConditionLastJobSucceededReason string = "LastJobSucceeded"
	// IntegrationConditionLastJobFailedReason --
	IntegrationConditionLastJobFailedReason string = "LastJobFailed"
	// IntegrationConditionRuntimeNotReadyReason --
	IntegrationConditionRuntimeNotReadyReason string = "RuntimeNotReady"
	// IntegrationConditionErrorReason --
	IntegrationConditionErrorReason string = "Error"

	// IntegrationConditionInitializationFailedReason --
	IntegrationConditionInitializationFailedReason string = "InitializationFailed"
	// IntegrationConditionUnsupportedLanguageReason --
	IntegrationConditionUnsupportedLanguageReason string = "UnsupportedLanguage"

	// IntegrationConditionKameletsAvailable --
	IntegrationConditionKameletsAvailable IntegrationConditionType = "KameletsAvailable"
	// IntegrationConditionKameletsAvailableReason --
	IntegrationConditionKameletsAvailableReason string = "KameletsAvailable"
	// IntegrationConditionKameletsNotAvailableReason --
	IntegrationConditionKameletsNotAvailableReason string = "KameletsNotAvailable"
)
View Source
const (
	// IntegrationKitKind --
	IntegrationKitKind string = "IntegrationKit"

	// IntegrationKitTypeLabel labels the kit type
	IntegrationKitTypeLabel = "camel.apache.org/kit.type"

	// IntegrationKitTypePlatform identifies a kit created by the platform
	IntegrationKitTypePlatform = "platform"
	// IntegrationKitTypeUser identifies a kit created by the user
	IntegrationKitTypeUser = "user"
	// IntegrationKitTypeExternal identifies a kit created by any third party
	IntegrationKitTypeExternal = "external"

	// IntegrationKitLayoutLabel labels the kit layout
	IntegrationKitLayoutLabel = "camel.apache.org/kit.layout"

	// IntegrationKitLayoutFastJar labels a kit using the Quarkus fast-jar packaging
	IntegrationKitLayoutFastJar = "fast-jar"
	// IntegrationKitLayoutNative labels a kit using the Quarkus native packaging
	IntegrationKitLayoutNative = "native"

	// IntegrationKitPriorityLabel labels the kit priority
	IntegrationKitPriorityLabel = "camel.apache.org/kit.priority"

	// IntegrationKitPhaseNone --
	IntegrationKitPhaseNone IntegrationKitPhase = ""
	// IntegrationKitPhaseInitialization --
	IntegrationKitPhaseInitialization IntegrationKitPhase = "Initialization"
	// IntegrationKitPhaseWaitingForPlatform --
	IntegrationKitPhaseWaitingForPlatform IntegrationKitPhase = "Waiting For Platform"
	// IntegrationKitPhaseBuildSubmitted --
	IntegrationKitPhaseBuildSubmitted IntegrationKitPhase = "Build Submitted"
	// IntegrationKitPhaseBuildRunning --
	IntegrationKitPhaseBuildRunning IntegrationKitPhase = "Build Running"
	// IntegrationKitPhaseReady --
	IntegrationKitPhaseReady IntegrationKitPhase = "Ready"
	// IntegrationKitPhaseError --
	IntegrationKitPhaseError IntegrationKitPhase = "Error"

	// IntegrationKitConditionPlatformAvailable --
	IntegrationKitConditionPlatformAvailable IntegrationKitConditionType = "IntegrationPlatformAvailable"
	// IntegrationKitConditionPlatformAvailableReason --
	IntegrationKitConditionPlatformAvailableReason string = "IntegrationPlatformAvailable"
)
View Source
const (
	// IntegrationPlatformKind is the Kind name of the IntegrationPlatform CR
	IntegrationPlatformKind string = "IntegrationPlatform"

	// IntegrationPlatformPhaseNone when the IntegrationPlatform does not exist
	IntegrationPlatformPhaseNone IntegrationPlatformPhase = ""
	// IntegrationPlatformPhaseCreating when the IntegrationPlatform is under creation process
	IntegrationPlatformPhaseCreating IntegrationPlatformPhase = "Creating"
	// IntegrationPlatformPhaseWarming when the IntegrationPlatform is warming (ie, creating Kaniko cache)
	IntegrationPlatformPhaseWarming IntegrationPlatformPhase = "Warming"
	// IntegrationPlatformPhaseReady when the IntegrationPlatform is ready
	IntegrationPlatformPhaseReady IntegrationPlatformPhase = "Ready"
	// IntegrationPlatformPhaseError when the IntegrationPlatform had some error (see Conditions)
	IntegrationPlatformPhaseError IntegrationPlatformPhase = "Error"
	// IntegrationPlatformPhaseDuplicate when the IntegrationPlatform is duplicated
	IntegrationPlatformPhaseDuplicate IntegrationPlatformPhase = "Duplicate"

	// IntegrationPlatformConditionReady is the condition if the IntegrationPlatform is ready.
	IntegrationPlatformConditionReady = "Ready"

	// IntegrationPlatformConditionCreatedReason represents the reason that the IntegrationPlatform is created.
	IntegrationPlatformConditionCreatedReason = "IntegrationPlatformCreated"
)
View Source
const (
	// CamelCatalogKind --
	CamelCatalogKind string = "CamelCatalog"
)
View Source
const IntegrationLabel = "camel.apache.org/integration"

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "camel.apache.org", Version: "v1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)

	// AddToScheme is a shortcut to SchemeBuilder.AddToScheme
	AddToScheme = SchemeBuilder.AddToScheme
)

AllIntegrationPlatformClusters --

AllTraitProfiles contains all allowed profiles

BuildStrategies is a list of strategies allowed for the build

IntegrationPlatformBuildPublishStrategies the list of all available publish strategies

Languages is the list of all supported languages

Functions

func GetOperatorIDAnnotation added in v1.10.0

func GetOperatorIDAnnotation(obj metav1.Object) string

GetOperatorIDAnnotation to safely get the operator id annotation value.

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

func SetAnnotation added in v1.10.0

func SetAnnotation(obj *metav1.ObjectMeta, name string, value string)

SetAnnotation safely sets the annotation on the given runtime object.

Types

type AddonTrait added in v1.10.0

type AddonTrait struct {
	// Generic raw message, typically a map containing the keys (trait parameters) and the values (either single text or array)
	RawMessage `json:",inline"`
}

AddonTrait represents the configuration of an addon trait

func (*AddonTrait) DeepCopy added in v1.10.0

func (in *AddonTrait) DeepCopy() *AddonTrait

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

func (*AddonTrait) DeepCopyInto added in v1.10.0

func (in *AddonTrait) DeepCopyInto(out *AddonTrait)

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

type Artifact

type Artifact struct {
	// the identification (GAV for maven dependencies or file name for other file types)
	ID string `json:"id" yaml:"id"`
	// where it is located in the builder `Pod`
	Location string `json:"location,omitempty" yaml:"location,omitempty"`
	// the expected location in the runtime
	Target string `json:"target,omitempty" yaml:"target,omitempty"`
	// a checksum (SHA1) of the content
	Checksum string `json:"checksum,omitempty" yaml:"checksum,omitempty"`
}

Artifact represents a materialized artifact (a jar dependency or in general a file used by the build)

func (*Artifact) DeepCopy

func (in *Artifact) DeepCopy() *Artifact

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

func (*Artifact) DeepCopyInto

func (in *Artifact) DeepCopyInto(out *Artifact)

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

func (*Artifact) String

func (in *Artifact) String() string

type BaseTask

type BaseTask struct {
	// name of the task
	Name string `json:"name,omitempty"`
}

BaseTask is a base for the struct hierarchy

func (*BaseTask) DeepCopy

func (in *BaseTask) DeepCopy() *BaseTask

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

func (*BaseTask) DeepCopyInto

func (in *BaseTask) DeepCopyInto(out *BaseTask)

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

type Build

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

	Spec   BuildSpec   `json:"spec,omitempty"`
	Status BuildStatus `json:"status,omitempty"`
}

Build is the Schema for the builds API

func NewBuild

func NewBuild(namespace string, name string) *Build

func (*Build) DeepCopy

func (in *Build) DeepCopy() *Build

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

func (*Build) DeepCopyInto

func (in *Build) DeepCopyInto(out *Build)

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

func (*Build) DeepCopyObject

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

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

type BuildCondition

type BuildCondition struct {
	// Type of integration condition.
	Type BuildConditionType `json:"type"`
	// Status of the condition, one of True, False, Unknown.
	Status corev1.ConditionStatus `json:"status"`
	// The last time this condition was updated.
	LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"`
	// Last time the condition transitioned from one status to another.
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
	// The reason for the condition's last transition.
	Reason string `json:"reason,omitempty"`
	// A human-readable message indicating details about the transition.
	Message string `json:"message,omitempty"`
}

BuildCondition describes the state of a resource at a certain point.

func (*BuildCondition) DeepCopy

func (in *BuildCondition) DeepCopy() *BuildCondition

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

func (*BuildCondition) DeepCopyInto

func (in *BuildCondition) DeepCopyInto(out *BuildCondition)

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

func (BuildCondition) GetLastTransitionTime

func (c BuildCondition) GetLastTransitionTime() metav1.Time

func (BuildCondition) GetLastUpdateTime

func (c BuildCondition) GetLastUpdateTime() metav1.Time

func (BuildCondition) GetMessage

func (c BuildCondition) GetMessage() string

func (BuildCondition) GetReason

func (c BuildCondition) GetReason() string

func (BuildCondition) GetStatus

func (c BuildCondition) GetStatus() corev1.ConditionStatus

func (BuildCondition) GetType

func (c BuildCondition) GetType() string

type BuildConditionType

type BuildConditionType string

BuildConditionType --

type BuildList

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

BuildList contains a list of Build

func NewBuildList

func NewBuildList() BuildList

func (*BuildList) DeepCopy

func (in *BuildList) DeepCopy() *BuildList

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

func (*BuildList) DeepCopyInto

func (in *BuildList) DeepCopyInto(out *BuildList)

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

func (*BuildList) DeepCopyObject

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

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

type BuildPhase

type BuildPhase string

BuildPhase --

func (*BuildPhase) String added in v1.3.0

func (buildPhase *BuildPhase) String() string

type BuildSpec

type BuildSpec struct {
	// The sequence of Build tasks to be performed as part of the Build execution.
	Tasks []Task `json:"tasks,omitempty"`
	// The strategy that should be used to perform the Build.
	Strategy BuildStrategy `json:"strategy,omitempty"`
	// Timeout defines the Build maximum execution duration.
	// The Build deadline is set to the Build start time plus the Timeout duration.
	// If the Build deadline is exceeded, the Build context is canceled,
	// and its phase set to BuildPhaseFailed.
	// +kubebuilder:validation:Format=duration
	Timeout metav1.Duration `json:"timeout,omitempty"`
	// the maximum amount of parallel running builds started by this operator instance
	MaxRunningBuilds int32 `json:"maxRunningBuilds,omitempty"`
}

BuildSpec defines the Build operation to be executed

func (*BuildSpec) DeepCopy

func (in *BuildSpec) DeepCopy() *BuildSpec

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

func (*BuildSpec) DeepCopyInto

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

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

type BuildStatus

type BuildStatus struct {
	// ObservedGeneration is the most recent generation observed for this Build.
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// describes the phase
	Phase BuildPhase `json:"phase,omitempty"`
	// the image name built
	Image string `json:"image,omitempty"`
	// the digest from image
	Digest string `json:"digest,omitempty"`
	// the base image used for this build
	BaseImage string `json:"baseImage,omitempty"`
	// a list of artifacts contained in the build
	Artifacts []Artifact `json:"artifacts,omitempty"`
	// the error description (if any)
	Error string `json:"error,omitempty"`
	// the reason of the failure (if any)
	Failure *Failure `json:"failure,omitempty"`
	// the time when it started
	StartedAt *metav1.Time `json:"startedAt,omitempty"`
	// a list of conditions occurred during the build
	Conditions []BuildCondition `json:"conditions,omitempty"`
	// how long it took for the build
	// Change to Duration / ISO 8601 when CRD uses OpenAPI spec v3
	// https://github.com/OAI/OpenAPI-Specification/issues/845
	Duration string `json:"duration,omitempty"`
}

BuildStatus defines the observed state of Build

func (*BuildStatus) DeepCopy

func (in *BuildStatus) DeepCopy() *BuildStatus

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

func (*BuildStatus) DeepCopyInto

func (in *BuildStatus) DeepCopyInto(out *BuildStatus)

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

func (*BuildStatus) Failed added in v1.4.0

func (in *BuildStatus) Failed(err error) BuildStatus

func (*BuildStatus) GetCondition

func (in *BuildStatus) GetCondition(condType BuildConditionType) *BuildCondition

GetCondition returns the condition with the provided type.

func (*BuildStatus) GetConditions

func (in *BuildStatus) GetConditions() []ResourceCondition

func (*BuildStatus) RemoveCondition

func (in *BuildStatus) RemoveCondition(condType BuildConditionType)

RemoveCondition removes the resource condition with the provided type.

func (*BuildStatus) SetCondition

func (in *BuildStatus) SetCondition(condType BuildConditionType, status corev1.ConditionStatus, reason string, message string)

func (*BuildStatus) SetConditions

func (in *BuildStatus) SetConditions(conditions ...BuildCondition)

SetConditions updates the resource to include the provided conditions.

If a condition that we are about to add already exists and has the same status and reason then we are not going to update.

func (*BuildStatus) SetErrorCondition

func (in *BuildStatus) SetErrorCondition(condType BuildConditionType, reason string, err error)

type BuildStrategy added in v1.6.1

type BuildStrategy string

BuildStrategy specifies how the Build should be executed. It will trigger a Maven process that will take care of producing the expected Camel/Camel-Quarkus runtime. +kubebuilder:validation:Enum=routine;pod

const (
	// BuildStrategyRoutine performs the build in a routine (will be executed as a process inside the same Camel K operator `Pod`).
	// A routine may be preferred to a `pod` strategy since it reuse the Maven repository dependency cached locally. It is executed as
	// a parallel process, so you may need to consider the quantity of concurrent build process running simultaneously.
	BuildStrategyRoutine BuildStrategy = "routine"
	// BuildStrategyPod performs the build in a `Pod` (will schedule a new builder ephemeral `Pod` which will take care of the build action).
	// This strategy has the limitation that every build will have to download all the dependencies required by the Maven build.
	BuildStrategyPod BuildStrategy = "pod"
)

type BuildahTask added in v1.4.0

type BuildahTask struct {
	BaseTask    `json:",inline"`
	PublishTask `json:",inline"`
	// The platform of build image
	Platform string `json:"platform,omitempty"`
	// log more information
	Verbose *bool `json:"verbose,omitempty"`
	// docker image to use
	ExecutorImage string `json:"executorImage,omitempty"`
}

BuildahTask is used to configure Buildah

func (*BuildahTask) DeepCopy added in v1.4.0

func (in *BuildahTask) DeepCopy() *BuildahTask

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

func (*BuildahTask) DeepCopyInto added in v1.4.0

func (in *BuildahTask) DeepCopyInto(out *BuildahTask)

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

type BuilderTask

type BuilderTask struct {
	BaseTask `json:",inline"`
	// the base image layer
	BaseImage string `json:"baseImage,omitempty"`
	// the configuration required for the runtime application
	Runtime RuntimeSpec `json:"runtime,omitempty"`
	// the list of dependencies to use for this build
	Dependencies []string `json:"dependencies,omitempty"`
	// the list of steps to execute (see pkg/builder/)
	Steps []string `json:"steps,omitempty"`
	// the configuration required by Maven for the application build phase
	Maven MavenBuildSpec `json:"maven,omitempty"`
	// workspace directory to use
	BuildDir string `json:"buildDir,omitempty"`
	// the sources to add at build time
	Sources []SourceSpec `json:"sources,omitempty"`
}

BuilderTask is the generic task in charge of building the application image

func (*BuilderTask) DeepCopy

func (in *BuilderTask) DeepCopy() *BuilderTask

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

func (*BuilderTask) DeepCopyInto

func (in *BuilderTask) DeepCopyInto(out *BuilderTask)

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

type CamelArtifact

type CamelArtifact struct {
	// Base Camel Artifact dependency
	CamelArtifactDependency `json:",inline" yaml:",inline"`
	// accepted URI schemes
	Schemes []CamelScheme `json:"schemes,omitempty" yaml:"schemes,omitempty"`
	// accepted languages
	Languages []string `json:"languages,omitempty" yaml:"languages,omitempty"`
	// accepted data formats
	DataFormats []string `json:"dataformats,omitempty" yaml:"dataformats,omitempty"`
	// required dependencies
	Dependencies []CamelArtifactDependency `json:"dependencies,omitempty" yaml:"dependencies,omitempty"`
	// the Java types used by the artifact feature (ie, component, data format, ...)
	JavaTypes []string `json:"javaTypes,omitempty" yaml:"javaTypes,omitempty"`
}

CamelArtifact represent the configuration for a feature offered by Camel

func (*CamelArtifact) DeepCopy

func (in *CamelArtifact) DeepCopy() *CamelArtifact

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

func (*CamelArtifact) DeepCopyInto

func (in *CamelArtifact) DeepCopyInto(out *CamelArtifact)

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

func (*CamelArtifact) GetConsumerDependencies added in v1.3.0

func (in *CamelArtifact) GetConsumerDependencies(schemeID string) []CamelArtifactDependency

func (*CamelArtifact) GetConsumerDependencyIDs added in v1.3.0

func (in *CamelArtifact) GetConsumerDependencyIDs(schemeID string) []string

func (*CamelArtifact) GetDependencyID

func (in *CamelArtifact) GetDependencyID() string

GetDependencyID returns a Camel K recognizable maven dependency for the artifact

func (*CamelArtifact) GetProducerDependencies added in v1.3.0

func (in *CamelArtifact) GetProducerDependencies(schemeID string) []CamelArtifactDependency

func (*CamelArtifact) GetProducerDependencyIDs added in v1.3.0

func (in *CamelArtifact) GetProducerDependencyIDs(schemeID string) []string

func (*CamelArtifact) GetScheme added in v1.3.0

func (in *CamelArtifact) GetScheme(schemeID string) *CamelScheme

type CamelArtifactDependency

type CamelArtifactDependency struct {
	// the maven dependency
	MavenArtifact `json:",inline" yaml:",inline"`
	// provide a list of artifacts to exclude for this dependency
	Exclusions []CamelArtifactExclusion `json:"exclusions,omitempty" yaml:"exclusions,omitempty"`
}

CamelArtifactDependency represent a maven's dependency

func (*CamelArtifactDependency) DeepCopy

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

func (*CamelArtifactDependency) DeepCopyInto

func (in *CamelArtifactDependency) DeepCopyInto(out *CamelArtifactDependency)

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

type CamelArtifactExclusion

type CamelArtifactExclusion struct {
	// Maven Group
	GroupID string `json:"groupId" yaml:"groupId"`
	// Maven Artifact
	ArtifactID string `json:"artifactId" yaml:"artifactId"`
}

CamelArtifactExclusion represents an exclusion clause

func (*CamelArtifactExclusion) DeepCopy

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

func (*CamelArtifactExclusion) DeepCopyInto

func (in *CamelArtifactExclusion) DeepCopyInto(out *CamelArtifactExclusion)

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

type CamelCatalog

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

	// the actual state of the catalog
	Status CamelCatalogStatus `json:"status,omitempty" yaml:"status,omitempty"`
	// the desired state of the catalog
	Spec CamelCatalogSpec `json:"spec,omitempty" yaml:"spec,omitempty"`
}

CamelCatalog represents the languages, components, data formats and capabilities enabled on a given runtime provider. The catalog may be statically generated.

func NewCamelCatalog

func NewCamelCatalog(namespace string, name string) CamelCatalog

NewCamelCatalog --

func NewCamelCatalogWithSpecs

func NewCamelCatalogWithSpecs(namespace string, name string, spec CamelCatalogSpec) CamelCatalog

NewCamelCatalogWithSpecs --

func (*CamelCatalog) DeepCopy

func (in *CamelCatalog) DeepCopy() *CamelCatalog

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

func (*CamelCatalog) DeepCopyInto

func (in *CamelCatalog) DeepCopyInto(out *CamelCatalog)

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

func (*CamelCatalog) DeepCopyObject

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

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

type CamelCatalogList

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

CamelCatalogList contains a list of CamelCatalog

func NewCamelCatalogList

func NewCamelCatalogList() CamelCatalogList

NewCamelCatalogList --

func (*CamelCatalogList) DeepCopy

func (in *CamelCatalogList) DeepCopy() *CamelCatalogList

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

func (*CamelCatalogList) DeepCopyInto

func (in *CamelCatalogList) DeepCopyInto(out *CamelCatalogList)

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

func (*CamelCatalogList) DeepCopyObject

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

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

type CamelCatalogSpec

type CamelCatalogSpec struct {
	// the runtime targeted for the catalog
	Runtime RuntimeSpec `json:"runtime" yaml:"runtime"`
	// artifacts required by this catalog
	Artifacts map[string]CamelArtifact `json:"artifacts" yaml:"artifacts"`
	// loaders required by this catalog
	Loaders map[string]CamelLoader `json:"loaders" yaml:"loaders"`
}

CamelCatalogSpec specify what features a Camel runtime provides

func (*CamelCatalogSpec) DeepCopy

func (in *CamelCatalogSpec) DeepCopy() *CamelCatalogSpec

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

func (*CamelCatalogSpec) DeepCopyInto

func (in *CamelCatalogSpec) DeepCopyInto(out *CamelCatalogSpec)

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

func (*CamelCatalogSpec) GetCamelQuarkusVersion added in v1.11.0

func (c *CamelCatalogSpec) GetCamelQuarkusVersion() string

GetCamelQuarkusVersion returns the Camel Quarkus version the runtime is based on.

func (*CamelCatalogSpec) GetCamelVersion added in v1.11.0

func (c *CamelCatalogSpec) GetCamelVersion() string

GetCamelVersion returns the Camel version the runtime is based on.

func (*CamelCatalogSpec) GetQuarkusVersion added in v1.11.0

func (c *CamelCatalogSpec) GetQuarkusVersion() string

GetQuarkusVersion returns the Quarkus version the runtime is based on.

func (*CamelCatalogSpec) GetRuntimeVersion added in v1.11.0

func (c *CamelCatalogSpec) GetRuntimeVersion() string

GetRuntimeVersion returns the Camel K runtime version of the catalog.

func (*CamelCatalogSpec) HasCapability added in v1.11.0

func (c *CamelCatalogSpec) HasCapability(capability string) bool

HasCapability checks if the given capability is present in the catalog.

type CamelCatalogStatus

type CamelCatalogStatus struct {
}

CamelCatalogStatus defines the observed state of CamelCatalog. As the catalog is a static resource, we expect it to be empty.

func (*CamelCatalogStatus) DeepCopy

func (in *CamelCatalogStatus) DeepCopy() *CamelCatalogStatus

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

func (*CamelCatalogStatus) DeepCopyInto

func (in *CamelCatalogStatus) DeepCopyInto(out *CamelCatalogStatus)

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

type CamelLoader

type CamelLoader struct {
	// the base Maven artifact required
	MavenArtifact `json:",inline" yaml:",inline"`
	// a list of DSLs supported
	Languages []string `json:"languages,omitempty" yaml:"languages,omitempty"`
	// a list of additional dependencies required beside the base one
	Dependencies []MavenArtifact `json:"dependencies,omitempty" yaml:"dependencies,omitempty"`
	// the metadata of the loader
	Metadata map[string]string `json:"metadata,omitempty" yaml:"metadata,omitempty"`
}

CamelLoader represents the configuration required to load a DSL

func (*CamelLoader) DeepCopy

func (in *CamelLoader) DeepCopy() *CamelLoader

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

func (*CamelLoader) DeepCopyInto

func (in *CamelLoader) DeepCopyInto(out *CamelLoader)

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

type CamelScheme

type CamelScheme struct {
	// the ID (ie, timer in a timer:xyz URI)
	ID string `json:"id" yaml:"id"`
	// is a passive scheme
	Passive bool `json:"passive" yaml:"passive"`
	// is a HTTP based scheme
	HTTP bool `json:"http" yaml:"http"`
	// required scope for consumer
	Consumer CamelSchemeScope `json:"consumer,omitempty" yaml:"consumer,omitempty"`
	// required scope for producers
	Producer CamelSchemeScope `json:"producer,omitempty" yaml:"producer,omitempty"`
}

CamelScheme represents the scheme used to identify a component in a URI (ie, timer in a timer:xyz endpoint URI)

func (*CamelScheme) DeepCopy

func (in *CamelScheme) DeepCopy() *CamelScheme

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

func (*CamelScheme) DeepCopyInto

func (in *CamelScheme) DeepCopyInto(out *CamelScheme)

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

type CamelSchemeScope added in v1.3.0

type CamelSchemeScope struct {
	// list of dependencies needed for this scope
	Dependencies []CamelArtifactDependency `json:"dependencies,omitempty" yaml:"dependencies,omitempty"`
}

CamelSchemeScope contains scoped information about a scheme

func (*CamelSchemeScope) DeepCopy added in v1.3.0

func (in *CamelSchemeScope) DeepCopy() *CamelSchemeScope

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

func (*CamelSchemeScope) DeepCopyInto added in v1.3.0

func (in *CamelSchemeScope) DeepCopyInto(out *CamelSchemeScope)

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

type Capability

type Capability struct {
	Dependencies []MavenArtifact `json:"dependencies" yaml:"dependencies"`
}

Capability is a particular feature which requires a well known set of dependencies

func (*Capability) DeepCopy

func (in *Capability) DeepCopy() *Capability

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

func (*Capability) DeepCopyInto

func (in *Capability) DeepCopyInto(out *Capability)

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

type Configurable

type Configurable interface {
	Configurations() []ConfigurationSpec
}

Configurable --

type ConfigurationSpec

type ConfigurationSpec struct {
	// represents the type of configuration, ie: property, configmap, secret, ...
	Type string `json:"type"`
	// the value to assign to the configuration (syntax may vary depending on the `Type`)
	Value string `json:"value"`
}

ConfigurationSpec represents a generic configuration specification

func (*ConfigurationSpec) DeepCopy

func (in *ConfigurationSpec) DeepCopy() *ConfigurationSpec

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

func (*ConfigurationSpec) DeepCopyInto

func (in *ConfigurationSpec) DeepCopyInto(out *ConfigurationSpec)

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

func (*ConfigurationSpec) String

func (in *ConfigurationSpec) String() string

type DataSpec

type DataSpec struct {
	// the name of the specification
	Name string `json:"name,omitempty"`
	// the path where the file is stored
	Path string `json:"path,omitempty"`
	// the source code (plain text)
	Content string `json:"content,omitempty"`
	// the source code (binary)
	RawContent []byte `json:"rawContent,omitempty"`
	// the confimap reference holding the source content
	ContentRef string `json:"contentRef,omitempty"`
	// the confimap key holding the source content
	ContentKey string `json:"contentKey,omitempty"`
	// the content type (tipically text or binary)
	ContentType string `json:"contentType,omitempty"`
	// if the content is compressed (base64 encrypted)
	Compression bool `json:"compression,omitempty"`
}

DataSpec represents the way the source is materialized in the running `Pod`

func (*DataSpec) DeepCopy

func (in *DataSpec) DeepCopy() *DataSpec

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

func (*DataSpec) DeepCopyInto

func (in *DataSpec) DeepCopyInto(out *DataSpec)

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

type Failure

type Failure struct {
	// a short text specifying the reason
	Reason string `json:"reason"`
	// the time when the failure has happened
	Time metav1.Time `json:"time"`
	// the recovery attempted for this failure
	Recovery FailureRecovery `json:"recovery"`
}

Failure represent a message specifying the reason and the time of an event failure

func (*Failure) DeepCopy

func (in *Failure) DeepCopy() *Failure

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

func (*Failure) DeepCopyInto

func (in *Failure) DeepCopyInto(out *Failure)

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

type FailureRecovery

type FailureRecovery struct {
	// attempt number
	Attempt int `json:"attempt"`
	// maximum number of attempts
	AttemptMax int `json:"attemptMax"`
	// time of the attempt execution
	// +optional
	AttemptTime metav1.Time `json:"attemptTime"`
}

FailureRecovery defines the attempts to recover a failure

func (*FailureRecovery) DeepCopy

func (in *FailureRecovery) DeepCopy() *FailureRecovery

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

func (*FailureRecovery) DeepCopyInto

func (in *FailureRecovery) DeepCopyInto(out *FailureRecovery)

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

type Flow

type Flow struct {
	RawMessage `json:",inline"`
}

Flow is an unstructured object representing a Camel Flow in YAML/JSON DSL

func (*Flow) DeepCopy

func (in *Flow) DeepCopy() *Flow

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

func (*Flow) DeepCopyInto

func (in *Flow) DeepCopyInto(out *Flow)

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

type HealthCheck added in v1.12.0

type HealthCheck struct {
	Status HealthCheckStatus     `json:"status,omitempty" yaml:"status,omitempty"`
	Checks []HealthCheckResponse `json:"checks,omitempty" yaml:"checks,omitempty"`
}

func (*HealthCheck) DeepCopy added in v1.12.0

func (in *HealthCheck) DeepCopy() *HealthCheck

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

func (*HealthCheck) DeepCopyInto added in v1.12.0

func (in *HealthCheck) DeepCopyInto(out *HealthCheck)

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

type HealthCheckResponse added in v1.12.0

type HealthCheckResponse struct {
	Name   string            `json:"name,omitempty" yaml:"name,omitempty"`
	Status HealthCheckStatus `json:"status,omitempty" yaml:"status,omitempty"`
	Data   RawMessage        `json:"data,omitempty" yaml:"data,omitempty"`
}

func (*HealthCheckResponse) DeepCopy added in v1.12.0

func (in *HealthCheckResponse) DeepCopy() *HealthCheckResponse

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

func (*HealthCheckResponse) DeepCopyInto added in v1.12.0

func (in *HealthCheckResponse) DeepCopyInto(out *HealthCheckResponse)

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

type HealthCheckStatus added in v1.12.0

type HealthCheckStatus string
const (
	HealthCheckStatusDown HealthCheckStatus = "DOWN"
	HealthCheckStatusUp   HealthCheckStatus = "UP"
)

type Integration

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

	// the desired Integration specification
	Spec IntegrationSpec `json:"spec,omitempty"`
	// the status of the Integration
	Status IntegrationStatus `json:"status,omitempty"`
}

Integration is the Schema for the integrations API

func NewIntegration

func NewIntegration(namespace string, name string) Integration

func (*Integration) Configurations

func (in *Integration) Configurations() []ConfigurationSpec

func (*Integration) DeepCopy

func (in *Integration) DeepCopy() *Integration

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

func (*Integration) DeepCopyInto

func (in *Integration) DeepCopyInto(out *Integration)

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

func (*Integration) DeepCopyObject

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

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

func (*Integration) GetIntegrationKitNamespace added in v1.4.0

func (in *Integration) GetIntegrationKitNamespace(p *IntegrationPlatform) string

func (*Integration) Initialize added in v1.3.0

func (in *Integration) Initialize()

func (*Integration) IsConditionTrue added in v1.11.0

func (in *Integration) IsConditionTrue(conditionType IntegrationConditionType) bool

IsConditionTrue checks if the condition with the given type is true.

func (*Integration) SetIntegrationKit

func (in *Integration) SetIntegrationKit(kit *IntegrationKit)

func (*Integration) SetIntegrationPlatform

func (in *Integration) SetIntegrationPlatform(platform *IntegrationPlatform)

func (*Integration) SetOperatorID added in v1.10.0

func (in *Integration) SetOperatorID(operatorID string)

SetOperatorID sets the given operator id as an annotation

func (*Integration) SetReadyCondition added in v1.11.0

func (in *Integration) SetReadyCondition(status corev1.ConditionStatus, reason, message string)

SetReadyCondition sets Ready condition with the given status, reason, and message.

func (*Integration) SetReadyConditionError added in v1.11.0

func (in *Integration) SetReadyConditionError(err string)

SetReadyConditionError sets Ready condition to False with the given error message.

func (*Integration) Sources

func (in *Integration) Sources() []SourceSpec

Sources return a new slice containing all the sources associated to the integration

type IntegrationCondition

type IntegrationCondition struct {
	// Type of integration condition.
	Type IntegrationConditionType `json:"type"`
	// Status of the condition, one of True, False, Unknown.
	Status corev1.ConditionStatus `json:"status"`
	// The last time this condition was updated.
	LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"`
	// Last time the condition transitioned from one status to another.
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
	// First time the condition status transitioned to True.
	FirstTruthyTime *metav1.Time `json:"firstTruthyTime,omitempty"`
	// The reason for the condition's last transition.
	Reason string `json:"reason,omitempty"`
	// A human-readable message indicating details about the transition.
	Message string `json:"message,omitempty"`
	// Pods collect health and conditions information from the owned PODs
	Pods []PodCondition `json:"pods,omitempty"`
}

IntegrationCondition describes the state of a resource at a certain point.

func (*IntegrationCondition) DeepCopy

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

func (*IntegrationCondition) DeepCopyInto

func (in *IntegrationCondition) DeepCopyInto(out *IntegrationCondition)

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

func (IntegrationCondition) GetLastTransitionTime

func (c IntegrationCondition) GetLastTransitionTime() metav1.Time

func (IntegrationCondition) GetLastUpdateTime

func (c IntegrationCondition) GetLastUpdateTime() metav1.Time

func (IntegrationCondition) GetMessage

func (c IntegrationCondition) GetMessage() string

func (IntegrationCondition) GetReason

func (c IntegrationCondition) GetReason() string

func (IntegrationCondition) GetStatus

func (IntegrationCondition) GetType

func (c IntegrationCondition) GetType() string

type IntegrationConditionType

type IntegrationConditionType string

IntegrationConditionType --

type IntegrationKit

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

	// the desired configuration
	Spec IntegrationKitSpec `json:"spec,omitempty"`
	// the actual status
	Status IntegrationKitStatus `json:"status,omitempty"`
}

IntegrationKit defines a container image and additional configuration needed to run an `Integration`. An `IntegrationKit` is a generic image generally built from the requirements of an `Integration`, but agnostic to it, in order to be reused by any other `Integration` which has the same required set of capabilities. An `IntegrationKit` may be used for other kits as a base container layer, when the `incremental` build option is enabled.

func NewIntegrationKit

func NewIntegrationKit(namespace string, name string) *IntegrationKit

func (*IntegrationKit) Configurations

func (in *IntegrationKit) Configurations() []ConfigurationSpec

func (*IntegrationKit) DeepCopy

func (in *IntegrationKit) DeepCopy() *IntegrationKit

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

func (*IntegrationKit) DeepCopyInto

func (in *IntegrationKit) DeepCopyInto(out *IntegrationKit)

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

func (*IntegrationKit) DeepCopyObject

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

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

func (*IntegrationKit) HasHigherPriorityThan added in v1.7.0

func (in *IntegrationKit) HasHigherPriorityThan(kit *IntegrationKit) bool

func (*IntegrationKit) SetIntegrationPlatform

func (in *IntegrationKit) SetIntegrationPlatform(platform *IntegrationPlatform)

func (*IntegrationKit) SetOperatorID added in v1.10.0

func (in *IntegrationKit) SetOperatorID(operatorID string)

SetOperatorID sets the given operator id as an annotation

type IntegrationKitCondition

type IntegrationKitCondition struct {
	// Type of integration condition.
	Type IntegrationKitConditionType `json:"type"`
	// Status of the condition, one of True, False, Unknown.
	Status corev1.ConditionStatus `json:"status"`
	// The last time this condition was updated.
	LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"`
	// Last time the condition transitioned from one status to another.
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
	// The reason for the condition's last transition.
	Reason string `json:"reason,omitempty"`
	// A human-readable message indicating details about the transition.
	Message string `json:"message,omitempty"`
}

IntegrationKitCondition describes the state of a resource at a certain point.

func (*IntegrationKitCondition) DeepCopy

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

func (*IntegrationKitCondition) DeepCopyInto

func (in *IntegrationKitCondition) DeepCopyInto(out *IntegrationKitCondition)

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

func (IntegrationKitCondition) GetLastTransitionTime

func (c IntegrationKitCondition) GetLastTransitionTime() metav1.Time

func (IntegrationKitCondition) GetLastUpdateTime

func (c IntegrationKitCondition) GetLastUpdateTime() metav1.Time

func (IntegrationKitCondition) GetMessage

func (c IntegrationKitCondition) GetMessage() string

func (IntegrationKitCondition) GetReason

func (c IntegrationKitCondition) GetReason() string

func (IntegrationKitCondition) GetStatus

func (IntegrationKitCondition) GetType

func (c IntegrationKitCondition) GetType() string

type IntegrationKitConditionType

type IntegrationKitConditionType string

IntegrationKitConditionType --

type IntegrationKitList

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

IntegrationKitList contains a list of IntegrationKit

func NewIntegrationKitList

func NewIntegrationKitList() IntegrationKitList

func (*IntegrationKitList) DeepCopy

func (in *IntegrationKitList) DeepCopy() *IntegrationKitList

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

func (*IntegrationKitList) DeepCopyInto

func (in *IntegrationKitList) DeepCopyInto(out *IntegrationKitList)

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

func (*IntegrationKitList) DeepCopyObject

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

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

type IntegrationKitPhase

type IntegrationKitPhase string

IntegrationKitPhase --

type IntegrationKitSpec

type IntegrationKitSpec struct {
	// the container image as identified in the container registry
	Image string `json:"image,omitempty"`
	// a list of Camel dependecies used by this kit
	Dependencies []string `json:"dependencies,omitempty"`
	// the profile which is expected by this kit
	Profile TraitProfile `json:"profile,omitempty"`
	// traits that the kit will execute
	Traits IntegrationKitTraits `json:"traits,omitempty"`
	// Deprecated:
	// Use camel trait (camel.properties) to manage properties
	// Use mount trait (mount.configs) to manage configs
	// Use mount trait (mount.resources) to manage resources
	// Use mount trait (mount.volumes) to manage volumes
	// configuration used by the kit
	Configuration []ConfigurationSpec `json:"configuration,omitempty"`
	// Maven repositories that can be used by the kit
	Repositories []string `json:"repositories,omitempty"`
	// the sources to add at build time
	Sources []SourceSpec `json:"sources,omitempty"`
}

IntegrationKitSpec defines a container image and additional configurations required to kick off an `Integration` with certain features

func (*IntegrationKitSpec) Configurations

func (in *IntegrationKitSpec) Configurations() []ConfigurationSpec

func (*IntegrationKitSpec) DeepCopy

func (in *IntegrationKitSpec) DeepCopy() *IntegrationKitSpec

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

func (*IntegrationKitSpec) DeepCopyInto

func (in *IntegrationKitSpec) DeepCopyInto(out *IntegrationKitSpec)

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

type IntegrationKitStatus

type IntegrationKitStatus struct {
	// ObservedGeneration is the most recent generation observed for this IntegrationKit.
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// phase of the kit
	Phase IntegrationKitPhase `json:"phase,omitempty"`
	// base image used by the kit
	BaseImage string `json:"baseImage,omitempty"`
	// actual image name of the kit
	Image string `json:"image,omitempty"`
	// actual image digest of the kit
	Digest string `json:"digest,omitempty"`
	// list of artifacts used by the kit
	Artifacts []Artifact `json:"artifacts,omitempty"`
	// failure reason (if any)
	Failure *Failure `json:"failure,omitempty"`
	// the runtime version for which this kit was configured
	RuntimeVersion string `json:"runtimeVersion,omitempty"`
	// the runtime provider for which this kit was configured
	RuntimeProvider RuntimeProvider `json:"runtimeProvider,omitempty"`
	// the platform for which this kit was configured
	Platform string `json:"platform,omitempty"`
	// the Camel K operator version for which this kit was configured
	Version string `json:"version,omitempty"`
	// a list of conditions which happened for the events related the kit
	Conditions []IntegrationKitCondition `json:"conditions,omitempty"`
}

IntegrationKitStatus defines the observed state of IntegrationKit

func (*IntegrationKitStatus) DeepCopy

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

func (*IntegrationKitStatus) DeepCopyInto

func (in *IntegrationKitStatus) DeepCopyInto(out *IntegrationKitStatus)

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

func (*IntegrationKitStatus) GetCondition

GetCondition returns the condition with the provided type.

func (*IntegrationKitStatus) GetConditions

func (in *IntegrationKitStatus) GetConditions() []ResourceCondition

func (*IntegrationKitStatus) RemoveCondition

func (in *IntegrationKitStatus) RemoveCondition(condType IntegrationKitConditionType)

RemoveCondition removes the resource condition with the provided type.

func (*IntegrationKitStatus) SetCondition

func (in *IntegrationKitStatus) SetCondition(condType IntegrationKitConditionType, status corev1.ConditionStatus, reason string, message string)

func (*IntegrationKitStatus) SetConditions

func (in *IntegrationKitStatus) SetConditions(conditions ...IntegrationKitCondition)

SetConditions updates the resource to include the provided conditions.

If a condition that we are about to add already exists and has the same status and reason then we are not going to update.

func (*IntegrationKitStatus) SetErrorCondition

func (in *IntegrationKitStatus) SetErrorCondition(condType IntegrationKitConditionType, reason string, err error)

type IntegrationKitTraits added in v1.10.0

type IntegrationKitTraits struct {
	// The builder trait is internally used to determine the best strategy to build and configure IntegrationKits.
	Builder *trait.BuilderTrait `property:"builder" json:"builder,omitempty"`
	// The Camel trait sets up Camel configuration.
	Camel *trait.CamelTrait `property:"camel" json:"camel,omitempty"`
	// The Quarkus trait configures the Quarkus runtime.
	// It's enabled by default.
	// NOTE: Compiling to a native executable, i.e. when using `package-type=native`, is only supported for kamelets, as well as YAML and XML integrations. It also requires at least 4GiB of memory, so the Pod running the native build, that is either the operator Pod, or the build Pod (depending on the build strategy configured for the platform), must have enough memory available.
	Quarkus *trait.QuarkusTrait `property:"quarkus" json:"quarkus,omitempty"`
	// The Registry trait sets up Maven to use the Image registry as a Maven repository.
	Registry *trait.RegistryTrait `property:"registry" json:"registry,omitempty"`
	// The collection of addon trait configurations
	Addons map[string]AddonTrait `json:"addons,omitempty"`
}

IntegrationKitTraits defines traits assigned to an `IntegrationKit`

func (*IntegrationKitTraits) DeepCopy added in v1.10.0

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

func (*IntegrationKitTraits) DeepCopyInto added in v1.10.0

func (in *IntegrationKitTraits) DeepCopyInto(out *IntegrationKitTraits)

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

type IntegrationList

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

IntegrationList contains a list of Integration

func NewIntegrationList

func NewIntegrationList() IntegrationList

func (*IntegrationList) DeepCopy

func (in *IntegrationList) DeepCopy() *IntegrationList

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

func (*IntegrationList) DeepCopyInto

func (in *IntegrationList) DeepCopyInto(out *IntegrationList)

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

func (*IntegrationList) DeepCopyObject

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

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

type IntegrationPhase

type IntegrationPhase string

IntegrationPhase --

type IntegrationPlatform

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

	Spec   IntegrationPlatformSpec   `json:"spec,omitempty"`
	Status IntegrationPlatformStatus `json:"status,omitempty"`
}

IntegrationPlatform is the resource used to drive the Camel K operator behavior. It defines the behavior of all Custom Resources (`IntegrationKit`, `Integration`, `Kamelet`) in the given namespace. When the Camel K operator is installed in `global` mode, you will need to specify an `IntegrationPlatform` in each namespace where you want the Camel K operator to be executed

func NewIntegrationPlatform

func NewIntegrationPlatform(namespace string, name string) IntegrationPlatform

NewIntegrationPlatform --

func (*IntegrationPlatform) AddConfiguration

func (in *IntegrationPlatform) AddConfiguration(confType string, confValue string)

AddConfiguration --

func (*IntegrationPlatform) Configurations

func (in *IntegrationPlatform) Configurations() []ConfigurationSpec

Configurations --

func (*IntegrationPlatform) DeepCopy

func (in *IntegrationPlatform) DeepCopy() *IntegrationPlatform

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

func (*IntegrationPlatform) DeepCopyInto

func (in *IntegrationPlatform) DeepCopyInto(out *IntegrationPlatform)

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

func (*IntegrationPlatform) DeepCopyObject

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

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

func (*IntegrationPlatform) GetActualValue

func (in *IntegrationPlatform) GetActualValue(extractor func(spec IntegrationPlatformSpec) string) string

GetActualValue can be used to extract information the platform spec or its derived config in the status

func (*IntegrationPlatform) ResyncStatusFullConfig

func (in *IntegrationPlatform) ResyncStatusFullConfig()

ResyncStatusFullConfig copies the spec configuration into the status field.

func (*IntegrationPlatform) SetOperatorID added in v1.10.0

func (in *IntegrationPlatform) SetOperatorID(operatorID string)

SetOperatorID sets the given operator id as an annotation

type IntegrationPlatformBuildPublishStrategy

type IntegrationPlatformBuildPublishStrategy string

IntegrationPlatformBuildPublishStrategy defines the strategy used to package and publish an Integration base image

const (
	// IntegrationPlatformBuildPublishStrategyBuildah uses Buildah project (https://buildah.io/)
	// in order to push the incremental images to the image repository. It can be used with `pod` BuildStrategy.
	IntegrationPlatformBuildPublishStrategyBuildah IntegrationPlatformBuildPublishStrategy = "Buildah"
	// IntegrationPlatformBuildPublishStrategyKaniko uses Kaniko project (https://github.com/GoogleContainerTools/kaniko)
	// in order to push the incremental images to the image repository. It can be used with `pod` BuildStrategy.
	IntegrationPlatformBuildPublishStrategyKaniko IntegrationPlatformBuildPublishStrategy = "Kaniko"
	// IntegrationPlatformBuildPublishStrategyS2I uses the Source to Images (S2I) feature
	// (https://docs.openshift.com/container-platform/4.9/openshift_images/create-images.html#images-create-s2i_create-images)
	// provided by an OpenShift cluster in order to create and push the images to the registry. It is the default choice on OpenShift cluster
	IntegrationPlatformBuildPublishStrategyS2I IntegrationPlatformBuildPublishStrategy = "S2I"
	// IntegrationPlatformBuildPublishStrategySpectrum uses Spectrum project (https://github.com/container-tools/spectrum)
	// in order to push the incremental images to the image repository. It is the default choice on vanilla Kubernetes cluster
	IntegrationPlatformBuildPublishStrategySpectrum IntegrationPlatformBuildPublishStrategy = "Spectrum"
)

type IntegrationPlatformBuildSpec

type IntegrationPlatformBuildSpec struct {
	// the strategy to adopt for building an Integration base image
	BuildStrategy BuildStrategy `json:"buildStrategy,omitempty"`
	// the strategy to adopt for publishing an Integration base image
	PublishStrategy IntegrationPlatformBuildPublishStrategy `json:"publishStrategy,omitempty"`
	// the Camel K Runtime dependency version
	RuntimeVersion string `json:"runtimeVersion,omitempty"`
	// the runtime used. Likely Camel Quarkus (we used to have main runtime which has been discontinued since version 1.5)
	RuntimeProvider RuntimeProvider `json:"runtimeProvider,omitempty"`
	// a base image that can be used as base layer for all images.
	// It can be useful if you want to provide some custom base image with further utility softwares
	BaseImage string `json:"baseImage,omitempty"`
	// the image registry used to push/pull Integration images
	Registry RegistrySpec `json:"registry,omitempty"`
	// how much time to wait before time out the build process
	Timeout *metav1.Duration `json:"timeout,omitempty"`
	// Maven configuration used to build the Camel/Camel-Quarkus applications
	Maven MavenSpec `json:"maven,omitempty"`
	// Generic options that can used by each publish strategy
	PublishStrategyOptions map[string]string `json:"PublishStrategyOptions,omitempty"`
	// the maximum amount of parallel running builds started by this operator instance
	MaxRunningBuilds int32 `json:"maxRunningBuilds,omitempty"`
}

IntegrationPlatformBuildSpec contains platform related build information. This configuration can be used to tune the behavior of the Integration/IntegrationKit image builds. You can define the build strategy, the image registry to use and the Maven configuration to adopt.

func (*IntegrationPlatformBuildSpec) AddOption added in v1.11.0

func (b *IntegrationPlatformBuildSpec) AddOption(option string, value string)

Add a publish strategy option

func (*IntegrationPlatformBuildSpec) DeepCopy

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

func (*IntegrationPlatformBuildSpec) DeepCopyInto

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

func (IntegrationPlatformBuildSpec) GetTimeout

GetTimeout returns the specified duration or a default one

func (IntegrationPlatformBuildSpec) IsOptionEnabled added in v1.9.0

func (b IntegrationPlatformBuildSpec) IsOptionEnabled(option string) bool

IsOptionEnabled tells if provided option key is present in PublishStrategyOptions and enabled

type IntegrationPlatformCluster

type IntegrationPlatformCluster string

IntegrationPlatformCluster is the kind of orchestration cluster the platform is installed into

const (
	// IntegrationPlatformClusterOpenShift is used when targeting an OpenShift cluster
	IntegrationPlatformClusterOpenShift IntegrationPlatformCluster = "OpenShift"
	// IntegrationPlatformClusterKubernetes is used when targeting a Kubernetes cluster
	IntegrationPlatformClusterKubernetes IntegrationPlatformCluster = "Kubernetes"
)

type IntegrationPlatformCondition

type IntegrationPlatformCondition struct {
	// Type of integration condition.
	Type IntegrationPlatformConditionType `json:"type"`
	// Status of the condition, one of True, False, Unknown.
	Status corev1.ConditionStatus `json:"status"`
	// The last time this condition was updated.
	LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"`
	// Last time the condition transitioned from one status to another.
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
	// The reason for the condition's last transition.
	Reason string `json:"reason,omitempty"`
	// A human-readable message indicating details about the transition.
	Message string `json:"message,omitempty"`
}

IntegrationPlatformCondition describes the state of a resource at a certain point.

func (*IntegrationPlatformCondition) DeepCopy

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

func (*IntegrationPlatformCondition) DeepCopyInto

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

func (IntegrationPlatformCondition) GetLastTransitionTime

func (c IntegrationPlatformCondition) GetLastTransitionTime() metav1.Time

GetLastTransitionTime --

func (IntegrationPlatformCondition) GetLastUpdateTime

func (c IntegrationPlatformCondition) GetLastUpdateTime() metav1.Time

GetLastUpdateTime --

func (IntegrationPlatformCondition) GetMessage

func (c IntegrationPlatformCondition) GetMessage() string

GetMessage --

func (IntegrationPlatformCondition) GetReason

func (c IntegrationPlatformCondition) GetReason() string

GetReason --

func (IntegrationPlatformCondition) GetStatus

GetStatus --

func (IntegrationPlatformCondition) GetType

GetType --

type IntegrationPlatformConditionType

type IntegrationPlatformConditionType string

IntegrationPlatformConditionType defines the type of condition

type IntegrationPlatformKameletRepositorySpec added in v1.3.0

type IntegrationPlatformKameletRepositorySpec struct {
	// the remote repository in the format github:ORG/REPO/PATH_TO_KAMELETS_FOLDER
	URI string `json:"uri,omitempty"`
}

IntegrationPlatformKameletRepositorySpec defines the location of the Kamelet catalog to use

func (*IntegrationPlatformKameletRepositorySpec) DeepCopy added in v1.3.0

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

func (*IntegrationPlatformKameletRepositorySpec) DeepCopyInto added in v1.3.0

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

type IntegrationPlatformKameletSpec added in v1.3.0

type IntegrationPlatformKameletSpec struct {
	// remote repository used to retrieve Kamelet catalog
	Repositories []IntegrationPlatformKameletRepositorySpec `json:"repositories,omitempty"`
}

IntegrationPlatformKameletSpec define the behavior for all the Kamelets controller by the IntegrationPlatform

func (*IntegrationPlatformKameletSpec) DeepCopy added in v1.3.0

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

func (*IntegrationPlatformKameletSpec) DeepCopyInto added in v1.3.0

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

type IntegrationPlatformList

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

IntegrationPlatformList contains a list of IntegrationPlatform

func NewIntegrationPlatformList

func NewIntegrationPlatformList() IntegrationPlatformList

NewIntegrationPlatformList --

func (*IntegrationPlatformList) DeepCopy

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

func (*IntegrationPlatformList) DeepCopyInto

func (in *IntegrationPlatformList) DeepCopyInto(out *IntegrationPlatformList)

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

func (*IntegrationPlatformList) DeepCopyObject

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

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

type IntegrationPlatformPhase

type IntegrationPlatformPhase string

IntegrationPlatformPhase is the phase of an IntegrationPlatform

type IntegrationPlatformSpec

type IntegrationPlatformSpec struct {
	// what kind of cluster you're running (ie, plain Kubernetes or OpenShift)
	Cluster IntegrationPlatformCluster `json:"cluster,omitempty"`
	// the profile you wish to use. It will apply certain traits which are required by the specific profile chosen.
	// It usually relates the Cluster with the optional definition of special profiles (ie, Knative)
	Profile TraitProfile `json:"profile,omitempty"`
	// specify how to build the Integration/IntegrationKits
	Build IntegrationPlatformBuildSpec `json:"build,omitempty"`
	// list of traits to be executed for all the Integration/IntegrationKits built from this IntegrationPlatform
	Traits Traits `json:"traits,omitempty"`
	// Deprecated:
	// Use camel trait (camel.properties) to manage properties
	// Use mount trait (mount.configs) to manage configs
	// Use mount trait (mount.resources) to manage resources
	// Use mount trait (mount.volumes) to manage volumes
	// list of configuration properties to be attached to all the Integration/IntegrationKits built from this IntegrationPlatform
	Configuration []ConfigurationSpec `json:"configuration,omitempty"`
	// configuration to be executed to all Kamelets controlled by this IntegrationPlatform
	Kamelet IntegrationPlatformKameletSpec `json:"kamelet,omitempty"`
}

IntegrationPlatformSpec defines the desired state of IntegrationPlatform

func (*IntegrationPlatformSpec) Configurations

func (in *IntegrationPlatformSpec) Configurations() []ConfigurationSpec

Configurations --

func (*IntegrationPlatformSpec) DeepCopy

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

func (*IntegrationPlatformSpec) DeepCopyInto

func (in *IntegrationPlatformSpec) DeepCopyInto(out *IntegrationPlatformSpec)

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

type IntegrationPlatformStatus

type IntegrationPlatformStatus struct {
	IntegrationPlatformSpec `json:",inline"`
	// ObservedGeneration is the most recent generation observed for this IntegrationPlatform.
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// defines in what phase the IntegrationPlatform is found
	Phase IntegrationPlatformPhase `json:"phase,omitempty"`
	// which are the conditions met (particularly useful when in ERROR phase)
	Conditions []IntegrationPlatformCondition `json:"conditions,omitempty"`
	// the Camel K operator version controlling this IntegrationPlatform
	Version string `json:"version,omitempty"`
	// generic information related to the build of Camel K operator software
	Info map[string]string `json:"info,omitempty"`
}

IntegrationPlatformStatus defines the observed state of IntegrationPlatform

func (*IntegrationPlatformStatus) DeepCopy

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

func (*IntegrationPlatformStatus) DeepCopyInto

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

func (*IntegrationPlatformStatus) GetCondition

GetCondition returns the condition with the provided type.

func (*IntegrationPlatformStatus) GetConditions

func (in *IntegrationPlatformStatus) GetConditions() []ResourceCondition

GetConditions --

func (*IntegrationPlatformStatus) RemoveCondition

func (in *IntegrationPlatformStatus) RemoveCondition(condType IntegrationPlatformConditionType)

RemoveCondition removes the resource condition with the provided type.

func (*IntegrationPlatformStatus) SetCondition

func (in *IntegrationPlatformStatus) SetCondition(condType IntegrationPlatformConditionType, status corev1.ConditionStatus, reason string, message string)

SetCondition sets the condition with the given status, reason, and message.

func (*IntegrationPlatformStatus) SetConditions

func (in *IntegrationPlatformStatus) SetConditions(conditions ...IntegrationPlatformCondition)

SetConditions updates the resource to include the provided conditions.

If a condition that we are about to add already exists and has the same status and reason then we are not going to update.

func (*IntegrationPlatformStatus) SetErrorCondition

func (in *IntegrationPlatformStatus) SetErrorCondition(condType IntegrationPlatformConditionType, reason string, err error)

SetErrorCondition sets the condition with the given reason and error message.

type IntegrationSpec

type IntegrationSpec struct {
	// the number of `Pods` needed for the running Integration
	Replicas *int32 `json:"replicas,omitempty"`
	// the sources which contain the Camel routes to run
	Sources []SourceSpec `json:"sources,omitempty"`
	// a source in YAML DSL language which contain the routes to run
	Flows []Flow `json:"flows,omitempty"`
	// the reference of the `IntegrationKit` which is used for this Integration
	IntegrationKit *corev1.ObjectReference `json:"integrationKit,omitempty"`
	// the list of Camel or Maven dependencies required by the Integration
	Dependencies []string `json:"dependencies,omitempty"`
	// the profile needed to run this Integration
	Profile TraitProfile `json:"profile,omitempty"`
	// the traits needed to run this Integration
	Traits Traits `json:"traits,omitempty"`
	// Pod template customization
	PodTemplate *PodSpecTemplate `json:"template,omitempty"`
	// Deprecated:
	// Use camel trait (camel.properties) to manage properties
	// Use mount trait (mount.configs) to manage configs
	// Use mount trait (mount.resources) to manage resources
	// Use mount trait (mount.volumes) to manage volumes
	Configuration []ConfigurationSpec `json:"configuration,omitempty"`
	// additional Maven repositories to be used
	Repositories []string `json:"repositories,omitempty"`
	// custom SA to use for the Integration
	ServiceAccountName string `json:"serviceAccountName,omitempty"`
}

IntegrationSpec specifies the configuration of an Integration. The Integration will be watched by the operator which will be in charge to run the related application, according to the configuration specified.

func (*IntegrationSpec) AddConfiguration

func (in *IntegrationSpec) AddConfiguration(confType string, confValue string)

func (*IntegrationSpec) AddDependency

func (in *IntegrationSpec) AddDependency(dependency string)

func (*IntegrationSpec) AddFlows

func (in *IntegrationSpec) AddFlows(flows ...Flow)

func (*IntegrationSpec) AddSource

func (in *IntegrationSpec) AddSource(name string, content string, language Language)

func (*IntegrationSpec) AddSources

func (in *IntegrationSpec) AddSources(sources ...SourceSpec)

func (*IntegrationSpec) Configurations

func (in *IntegrationSpec) Configurations() []ConfigurationSpec

func (*IntegrationSpec) DeepCopy

func (in *IntegrationSpec) DeepCopy() *IntegrationSpec

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

func (*IntegrationSpec) DeepCopyInto

func (in *IntegrationSpec) DeepCopyInto(out *IntegrationSpec)

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

func (*IntegrationSpec) GetConfigurationProperty added in v1.4.1

func (in *IntegrationSpec) GetConfigurationProperty(property string) string

GetConfigurationProperty returns a configuration property

type IntegrationStatus

type IntegrationStatus struct {
	// ObservedGeneration is the most recent generation observed for this Integration.
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// the actual phase
	Phase IntegrationPhase `json:"phase,omitempty"`
	// the digest calculated for this Integration
	Digest string `json:"digest,omitempty"`
	// the container image used
	Image string `json:"image,omitempty"`
	// a list of dependencies needed by the application
	Dependencies []string `json:"dependencies,omitempty"`
	// the profile needed to run this Integration
	Profile TraitProfile `json:"profile,omitempty"`
	// the reference of the `IntegrationKit` which is used for this Integration
	IntegrationKit *corev1.ObjectReference `json:"integrationKit,omitempty"`
	// The IntegrationPlatform watching this Integration
	Platform string `json:"platform,omitempty"`
	// a list of sources generated for this Integration
	GeneratedSources []SourceSpec `json:"generatedSources,omitempty"`
	// the runtime version targeted for this Integration
	RuntimeVersion string `json:"runtimeVersion,omitempty"`
	// the runtime provider targeted for this Integration
	RuntimeProvider RuntimeProvider `json:"runtimeProvider,omitempty"`
	// Deprecated:
	// a list of configuration specification
	Configuration []ConfigurationSpec `json:"configuration,omitempty"`
	// a list of events happened for the Integration
	Conditions []IntegrationCondition `json:"conditions,omitempty"`
	// the operator version
	Version string `json:"version,omitempty"`
	// the number of replicas
	Replicas *int32 `json:"replicas,omitempty"`
	// label selector
	Selector string `json:"selector,omitempty"`
	// features offered by the Integration
	Capabilities []string `json:"capabilities,omitempty"`
	// the timestamp representing the last time when this integration was initialized.
	InitializationTimestamp *metav1.Time `json:"lastInitTimestamp,omitempty"`
}

IntegrationStatus defines the observed state of Integration

func (*IntegrationStatus) AddConfigurationsIfMissing added in v1.2.0

func (in *IntegrationStatus) AddConfigurationsIfMissing(configurations ...ConfigurationSpec)

func (*IntegrationStatus) AddOrReplaceGeneratedSources

func (in *IntegrationStatus) AddOrReplaceGeneratedSources(sources ...SourceSpec)

func (*IntegrationStatus) Configurations

func (in *IntegrationStatus) Configurations() []ConfigurationSpec

func (*IntegrationStatus) DeepCopy

func (in *IntegrationStatus) DeepCopy() *IntegrationStatus

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

func (*IntegrationStatus) DeepCopyInto

func (in *IntegrationStatus) DeepCopyInto(out *IntegrationStatus)

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

func (*IntegrationStatus) GetCondition

GetCondition returns the condition with the provided type.

func (*IntegrationStatus) GetConditions

func (in *IntegrationStatus) GetConditions() []ResourceCondition

func (*IntegrationStatus) RemoveCondition

func (in *IntegrationStatus) RemoveCondition(condType IntegrationConditionType)

RemoveCondition removes the resource condition with the provided type.

func (*IntegrationStatus) SetCondition

func (in *IntegrationStatus) SetCondition(condType IntegrationConditionType, status corev1.ConditionStatus, reason string, message string)

func (*IntegrationStatus) SetConditions

func (in *IntegrationStatus) SetConditions(conditions ...IntegrationCondition)

SetConditions updates the resource to include the provided conditions.

If a condition that we are about to add already exists and has the same status and reason then we are not going to update.

func (*IntegrationStatus) SetErrorCondition

func (in *IntegrationStatus) SetErrorCondition(condType IntegrationConditionType, reason string, err error)

type KanikoTask added in v1.4.0

type KanikoTask struct {
	BaseTask    `json:",inline"`
	PublishTask `json:",inline"`
	// log more information
	Verbose *bool `json:"verbose,omitempty"`
	// use a cache
	Cache KanikoTaskCache `json:"cache,omitempty"`
	// docker image to use
	ExecutorImage string `json:"executorImage,omitempty"`
}

KanikoTask is used to configure Kaniko

func (*KanikoTask) DeepCopy added in v1.4.0

func (in *KanikoTask) DeepCopy() *KanikoTask

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

func (*KanikoTask) DeepCopyInto added in v1.4.0

func (in *KanikoTask) DeepCopyInto(out *KanikoTask)

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

type KanikoTaskCache added in v1.4.0

type KanikoTaskCache struct {
	// true if a cache is enabled
	Enabled *bool `json:"enabled,omitempty"`
	// the PVC used to store the cache
	PersistentVolumeClaim string `json:"persistentVolumeClaim,omitempty"`
}

KanikoTaskCache is used to configure Kaniko cache

func (*KanikoTaskCache) DeepCopy added in v1.4.0

func (in *KanikoTaskCache) DeepCopy() *KanikoTaskCache

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

func (*KanikoTaskCache) DeepCopyInto added in v1.4.0

func (in *KanikoTaskCache) DeepCopyInto(out *KanikoTaskCache)

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

type Language

type Language string

Language represents a supported language (Camel DSL)

const (
	// LanguageJavaSource used for Java
	LanguageJavaSource Language = "java"
	// LanguageGroovy used for Groovy
	LanguageGroovy Language = "groovy"
	// LanguageJavaScript  used for Javascript
	LanguageJavaScript Language = "js"
	// LanguageXML used for XML
	LanguageXML Language = "xml"
	// LanguageKotlin used for Kotlin
	LanguageKotlin Language = "kts"
	// LanguageYaml used for YAML
	LanguageYaml Language = "yaml"
	// LanguageKamelet used for Kamelets
	LanguageKamelet Language = "kamelet"
	// LanguageJavaShell used for Java Shell
	LanguageJavaShell Language = "jsh"
)

type MavenArtifact

type MavenArtifact struct {
	// Maven Group
	GroupID string `json:"groupId" yaml:"groupId" xml:"groupId"`
	// Maven Artifact
	ArtifactID string `json:"artifactId" yaml:"artifactId" xml:"artifactId"`
	// Maven Version
	Version string `json:"version,omitempty" yaml:"version,omitempty" xml:"version,omitempty"`
}

MavenArtifact defines a GAV (Group:Artifact:Version) Maven artifact

func (*MavenArtifact) DeepCopy

func (in *MavenArtifact) DeepCopy() *MavenArtifact

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

func (*MavenArtifact) DeepCopyInto

func (in *MavenArtifact) DeepCopyInto(out *MavenArtifact)

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

func (*MavenArtifact) GetDependencyID added in v1.4.0

func (in *MavenArtifact) GetDependencyID() string

type MavenBuildSpec added in v1.8.0

type MavenBuildSpec struct {
	// base Maven specification
	MavenSpec `json:",inline"`
	// additional repositories
	Repositories []Repository `json:"repositories,omitempty"`
	// Servers (auth)
	Servers []Server `json:"servers,omitempty"`
}

MavenBuildSpec defines the Maven configuration plus additional repositories to use

func (*MavenBuildSpec) DeepCopy added in v1.8.0

func (in *MavenBuildSpec) DeepCopy() *MavenBuildSpec

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

func (*MavenBuildSpec) DeepCopyInto added in v1.8.0

func (in *MavenBuildSpec) DeepCopyInto(out *MavenBuildSpec)

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

type MavenSpec

type MavenSpec struct {
	// The path of the local Maven repository.
	LocalRepository string `json:"localRepository,omitempty"`
	// The Maven properties.
	Properties map[string]string `json:"properties,omitempty"`
	// A reference to the ConfigMap or Secret key that contains
	// the Maven settings.
	Settings ValueSource `json:"settings,omitempty"`
	// A reference to the ConfigMap or Secret key that contains
	// the security of the Maven settings.
	SettingsSecurity ValueSource `json:"settingsSecurity,omitempty"`
	// The Secrets name and key, containing the CA certificate(s) used to connect
	// to remote Maven repositories.
	// It can contain X.509 certificates, and PKCS#7 formatted certificate chains.
	// A JKS formatted keystore is automatically created to store the CA certificate(s),
	// and configured to be used as a trusted certificate(s) by the Maven commands.
	// Note that the root CA certificates are also imported into the created keystore.
	CASecrets []corev1.SecretKeySelector `json:"caSecrets,omitempty"`
	// The Maven build extensions.
	// See https://maven.apache.org/guides/mini/guide-using-extensions.html.
	Extension []MavenArtifact `json:"extension,omitempty"`
	// The CLI options that are appended to the list of arguments for Maven commands,
	// e.g., `-V,--no-transfer-progress,-Dstyle.color=never`.
	// See https://maven.apache.org/ref/3.8.4/maven-embedder/cli.html.
	CLIOptions []string `json:"cliOptions,omitempty"`
}

MavenSpec --

func (*MavenSpec) DeepCopy

func (in *MavenSpec) DeepCopy() *MavenSpec

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

func (*MavenSpec) DeepCopyInto

func (in *MavenSpec) DeepCopyInto(out *MavenSpec)

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

type PluginProperties added in v1.12.0

type PluginProperties map[string]StringOrProperties

func (PluginProperties) Add added in v1.12.0

func (m PluginProperties) Add(key string, value string)

func (PluginProperties) AddAll added in v1.12.0

func (m PluginProperties) AddAll(properties map[string]string)

func (PluginProperties) AddProperties added in v1.12.0

func (m PluginProperties) AddProperties(key string, properties map[string]string)

func (PluginProperties) DeepCopy added in v1.12.0

func (in PluginProperties) DeepCopy() PluginProperties

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

func (PluginProperties) DeepCopyInto added in v1.12.0

func (in PluginProperties) DeepCopyInto(out *PluginProperties)

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

func (PluginProperties) MarshalXML added in v1.12.0

func (m PluginProperties) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type PodCondition added in v1.12.0

type PodCondition struct {
	Name      string                `json:"name,omitempty" yaml:"name,omitempty"`
	Condition corev1.PodCondition   `json:"condition" yaml:"condition"`
	Health    []HealthCheckResponse `json:"health,omitempty" yaml:"health,omitempty"`
}

func (*PodCondition) DeepCopy added in v1.12.0

func (in *PodCondition) DeepCopy() *PodCondition

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

func (*PodCondition) DeepCopyInto added in v1.12.0

func (in *PodCondition) DeepCopyInto(out *PodCondition)

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

type PodSpec added in v1.5.0

type PodSpec struct {
	// Volumes
	Volumes []corev1.Volume `json:"volumes,omitempty" patchStrategy:"merge,retainKeys" patchMergeKey:"name" protobuf:"bytes,1,rep,name=volumes"`
	// InitContainers
	InitContainers []corev1.Container `json:"initContainers,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,20,rep,name=initContainers"`
	// Containers
	Containers []corev1.Container `json:"containers" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,2,rep,name=containers"`
	// EphemeralContainers
	EphemeralContainers []corev1.EphemeralContainer `` /* 128-byte string literal not displayed */
	// RestartPolicy
	RestartPolicy corev1.RestartPolicy `json:"restartPolicy,omitempty" protobuf:"bytes,3,opt,name=restartPolicy,casttype=RestartPolicy"`
	// TerminationGracePeriodSeconds
	TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty" protobuf:"varint,4,opt,name=terminationGracePeriodSeconds"`
	// ActiveDeadlineSeconds
	ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty" protobuf:"varint,5,opt,name=activeDeadlineSeconds"`
	// DNSPolicy
	DNSPolicy corev1.DNSPolicy `json:"dnsPolicy,omitempty" protobuf:"bytes,6,opt,name=dnsPolicy,casttype=DNSPolicy"`
	// NodeSelector
	NodeSelector map[string]string `json:"nodeSelector,omitempty" protobuf:"bytes,7,rep,name=nodeSelector"`
	// TopologySpreadConstraints
	TopologySpreadConstraints []corev1.TopologySpreadConstraint `` /* 147-byte string literal not displayed */
	// PodSecurityContext
	SecurityContext corev1.PodSecurityContext `json:"securityContext,omitempty" protobuf:"bytes,34,opt,name=securityContext"`
}

PodSpec defines a group of Kubernetes resources

func (*PodSpec) DeepCopy added in v1.5.0

func (in *PodSpec) DeepCopy() *PodSpec

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

func (*PodSpec) DeepCopyInto added in v1.5.0

func (in *PodSpec) DeepCopyInto(out *PodSpec)

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

type PodSpecTemplate added in v1.5.0

type PodSpecTemplate struct {
	// the specification
	Spec PodSpec `json:"spec,omitempty"`
}

PodSpecTemplate represent a template used to deploy an Integration `Pod`

func (*PodSpecTemplate) DeepCopy added in v1.5.0

func (in *PodSpecTemplate) DeepCopy() *PodSpecTemplate

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

func (*PodSpecTemplate) DeepCopyInto added in v1.5.0

func (in *PodSpecTemplate) DeepCopyInto(out *PodSpecTemplate)

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

type Properties added in v1.9.0

type Properties map[string]string

func (Properties) Add added in v1.12.0

func (m Properties) Add(key string, value string)

func (Properties) AddAll added in v1.9.0

func (m Properties) AddAll(properties map[string]string)

func (Properties) DeepCopy added in v1.9.0

func (in Properties) DeepCopy() Properties

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

func (Properties) DeepCopyInto added in v1.9.0

func (in Properties) DeepCopyInto(out *Properties)

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

func (Properties) MarshalXML added in v1.9.0

func (m Properties) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type PublishTask added in v1.4.0

type PublishTask struct {
	// can be useful to share info with other tasks
	ContextDir string `json:"contextDir,omitempty"`
	// base image layer
	BaseImage string `json:"baseImage,omitempty"`
	// final image name
	Image string `json:"image,omitempty"`
	// where to publish the final image
	Registry RegistrySpec `json:"registry,omitempty"`
}

PublishTask image publish configuration

func (*PublishTask) DeepCopy added in v1.4.0

func (in *PublishTask) DeepCopy() *PublishTask

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

func (*PublishTask) DeepCopyInto added in v1.4.0

func (in *PublishTask) DeepCopyInto(out *PublishTask)

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

type RawMessage added in v1.3.0

type RawMessage []byte

RawMessage is a raw encoded JSON value. It implements Marshaler and Unmarshaler and can be used to delay JSON decoding or precompute a JSON encoding. +kubebuilder:validation:Type=object +kubebuilder:validation:Format="" +kubebuilder:pruning:PreserveUnknownFields

func (RawMessage) DeepCopy added in v1.3.0

func (in RawMessage) DeepCopy() RawMessage

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

func (RawMessage) DeepCopyInto added in v1.3.0

func (in RawMessage) DeepCopyInto(out *RawMessage)

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

func (RawMessage) MarshalJSON added in v1.3.0

func (m RawMessage) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

func (*RawMessage) UnmarshalJSON added in v1.3.0

func (m *RawMessage) UnmarshalJSON(data []byte) error

UnmarshalJSON sets *m to a copy of data.

type RegistrySpec added in v1.6.1

type RegistrySpec struct {
	// if the container registry is insecure (ie, http only)
	Insecure bool `json:"insecure,omitempty"`
	// the URI to access
	Address string `json:"address,omitempty"`
	// the secret where credentials are stored
	Secret string `json:"secret,omitempty"`
	// the configmap which stores the Certificate Authority
	CA string `json:"ca,omitempty"`
	// the registry organization
	Organization string `json:"organization,omitempty"`
}

RegistrySpec provides the configuration for the container registry

func (*RegistrySpec) DeepCopy added in v1.6.1

func (in *RegistrySpec) DeepCopy() *RegistrySpec

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

func (*RegistrySpec) DeepCopyInto added in v1.6.1

func (in *RegistrySpec) DeepCopyInto(out *RegistrySpec)

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

type Repository added in v1.5.0

type Repository struct {
	// identifies the repository
	ID string `xml:"id" json:"id"`
	// name of the repository
	Name string `xml:"name,omitempty" json:"name,omitempty"`
	// location of the repository
	URL string `xml:"url" json:"url"`
	// can use snapshot
	Snapshots RepositoryPolicy `xml:"snapshots,omitempty" json:"snapshots,omitempty"`
	// can use stable releases
	Releases RepositoryPolicy `xml:"releases,omitempty" json:"releases,omitempty"`
}

Repository defines a Maven repository

func (*Repository) DeepCopy added in v1.5.0

func (in *Repository) DeepCopy() *Repository

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

func (*Repository) DeepCopyInto added in v1.5.0

func (in *Repository) DeepCopyInto(out *Repository)

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

type RepositoryPolicy added in v1.5.0

type RepositoryPolicy struct {
	// is the policy activated or not
	Enabled bool `xml:"enabled" json:"enabled"`
	// This element specifies how often updates should attempt to occur.
	// Maven will compare the local POM's timestamp (stored in a repository's maven-metadata file) to the remote.
	// The choices are: `always`, `daily` (default), `interval:X` (where X is an integer in minutes) or `never`
	UpdatePolicy string `xml:"updatePolicy,omitempty" json:"updatePolicy,omitempty"`
	// When Maven deploys files to the repository, it also deploys corresponding checksum files.
	// Your options are to `ignore`, `fail`, or `warn` on missing or incorrect checksums.
	ChecksumPolicy string `xml:"checksumPolicy,omitempty" json:"checksumPolicy,omitempty"`
}

RepositoryPolicy defines the policy associated to a Maven repository

func (*RepositoryPolicy) DeepCopy added in v1.5.0

func (in *RepositoryPolicy) DeepCopy() *RepositoryPolicy

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

func (*RepositoryPolicy) DeepCopyInto added in v1.5.0

func (in *RepositoryPolicy) DeepCopyInto(out *RepositoryPolicy)

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

type ResourceCondition

type ResourceCondition interface {
	GetType() string
	GetStatus() corev1.ConditionStatus
	GetLastUpdateTime() metav1.Time
	GetLastTransitionTime() metav1.Time
	GetReason() string
	GetMessage() string
}

ResourceCondition is a common type for all conditions

type ResourceSpec

type ResourceSpec struct {
	// the content of the resource
	DataSpec `json:",inline"`
	// the kind of data to expect
	Type ResourceType `json:"type,omitempty"`
	// the mount path on destination `Pod`
	MountPath string `json:"mountPath,omitempty"`
}

ResourceSpec represent an attached resource which will be materialized as a file on the running `Pod` TODO: we should deprecate in future releases in favour of mount, openapi or camel traits

func NewResourceSpec

func NewResourceSpec(name string, content string, destination string, resourceType ResourceType) ResourceSpec

func (*ResourceSpec) DeepCopy

func (in *ResourceSpec) DeepCopy() *ResourceSpec

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

func (*ResourceSpec) DeepCopyInto

func (in *ResourceSpec) DeepCopyInto(out *ResourceSpec)

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

type ResourceType

type ResourceType string

ResourceType defines a kind of resource

const (
	// ResourceTypeData represents a generic data resource (text or binary)
	ResourceTypeData ResourceType = "data"
	// ResourceTypeConfig represents a configuration resource (text only)
	ResourceTypeConfig ResourceType = "config"
	// ResourceTypeOpenAPI represents an OpenAPI specification resource
	ResourceTypeOpenAPI ResourceType = "openapi"
)

type RuntimeProvider

type RuntimeProvider string

RuntimeProvider is the provider chosen for the runtime

const (
	// RuntimeProviderQuarkus Camel Quarkus runtime
	RuntimeProviderQuarkus RuntimeProvider = "quarkus"
)

type RuntimeSpec

type RuntimeSpec struct {
	// Camel K Runtime version
	Version string `json:"version" yaml:"version"`
	// Camel main application provider, ie, Camel Quarkus
	Provider RuntimeProvider `json:"provider" yaml:"provider"`
	// application entry point (main) to be executed
	ApplicationClass string `json:"applicationClass" yaml:"applicationClass"`
	// list of dependencies needed to run the application
	Dependencies []MavenArtifact `json:"dependencies" yaml:"dependencies"`
	// set of metadata
	Metadata map[string]string `json:"metadata,omitempty" yaml:"metadata,omitempty"`
	// features offered by this runtime
	Capabilities map[string]Capability `json:"capabilities,omitempty" yaml:"capabilities,omitempty"`
}

RuntimeSpec represents the configuration for the Java runtime in charge to execute the Camel application

func (*RuntimeSpec) CapabilityDependencies

func (in *RuntimeSpec) CapabilityDependencies(capability string) []MavenArtifact

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 S2iTask added in v1.4.0

type S2iTask struct {
	BaseTask `json:",inline"`
	// can be useful to share info with other tasks
	ContextDir string `json:"contextDir,omitempty"`
	// used by the ImageStream
	Tag string `json:"tag,omitempty"`
}

S2iTask is used to configure S2I

func (*S2iTask) DeepCopy added in v1.4.0

func (in *S2iTask) DeepCopy() *S2iTask

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

func (*S2iTask) DeepCopyInto added in v1.4.0

func (in *S2iTask) DeepCopyInto(out *S2iTask)

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

type Server added in v1.9.0

type Server struct {
	XMLName       xml.Name   `xml:"server" json:"-"`
	ID            string     `xml:"id,omitempty" json:"id,omitempty"`
	Username      string     `xml:"username,omitempty" json:"username,omitempty"`
	Password      string     `xml:"password,omitempty" json:"password,omitempty"`
	Configuration Properties `xml:"configuration,omitempty" json:"configuration,omitempty"`
}

func (*Server) DeepCopy added in v1.9.0

func (in *Server) DeepCopy() *Server

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

func (*Server) DeepCopyInto added in v1.9.0

func (in *Server) DeepCopyInto(out *Server)

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

type SourceSpec

type SourceSpec struct {
	// contains configuration related to the source code
	DataSpec `json:",inline"`
	// specify which is the language (Camel DSL) used to interpret this source code
	Language Language `json:"language,omitempty"`
	// Loader is an optional id of the org.apache.camel.k.RoutesLoader that will
	// interpret this source at runtime
	Loader string `json:"loader,omitempty"`
	// Interceptors are optional identifiers the org.apache.camel.k.RoutesLoader
	// uses to pre/post process sources
	Interceptors []string `json:"interceptors,omitempty"`
	// Type defines the kind of source described by this object
	Type SourceType `json:"type,omitempty"`
	// List of property names defined in the source (e.g. if type is "template")
	PropertyNames []string `json:"property-names,omitempty"`
}

SourceSpec defines the configuration for one or more routes to be executed in a certain Camel DSL language

func NewSourceSpec

func NewSourceSpec(name string, content string, language Language) SourceSpec

func (*SourceSpec) DeepCopy

func (in *SourceSpec) DeepCopy() *SourceSpec

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

func (*SourceSpec) DeepCopyInto

func (in *SourceSpec) DeepCopyInto(out *SourceSpec)

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

func (*SourceSpec) InferLanguage

func (in *SourceSpec) InferLanguage() Language

InferLanguage returns the language of the source or discovers it from file extension if not set

type SourceType added in v1.2.0

type SourceType string

SourceType represents an available source type

const (
	// SourceTypeDefault is used to represent a source code
	SourceTypeDefault SourceType = ""
	// SourceTypeTemplate is used to represent a template
	SourceTypeTemplate SourceType = "template"
	// SourceTypeErrorHandler is used to represent an error handler
	SourceTypeErrorHandler SourceType = "errorHandler"
)

type SpectrumTask added in v1.4.0

type SpectrumTask struct {
	BaseTask    `json:",inline"`
	PublishTask `json:",inline"`
}

SpectrumTask is used to configure Spectrum

func (*SpectrumTask) DeepCopy added in v1.4.0

func (in *SpectrumTask) DeepCopy() *SpectrumTask

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

func (*SpectrumTask) DeepCopyInto added in v1.4.0

func (in *SpectrumTask) DeepCopyInto(out *SpectrumTask)

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

type StringOrProperties added in v1.12.0

type StringOrProperties struct {
	Value      string     `xml:",chardata" json:"-"`
	Properties Properties `xml:"properties,omitempty" json:"properties,omitempty"`
}

func (*StringOrProperties) DeepCopy added in v1.12.0

func (in *StringOrProperties) DeepCopy() *StringOrProperties

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

func (*StringOrProperties) DeepCopyInto added in v1.12.0

func (in *StringOrProperties) DeepCopyInto(out *StringOrProperties)

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

type Task

type Task struct {
	// a BuilderTask (base task)
	Builder *BuilderTask `json:"builder,omitempty"`
	// a BuildahTask, for Buildah strategy
	Buildah *BuildahTask `json:"buildah,omitempty"`
	// a KanikoTask, for Kaniko strategy
	Kaniko *KanikoTask `json:"kaniko,omitempty"`
	// a SpectrumTask, for Spectrum strategy
	Spectrum *SpectrumTask `json:"spectrum,omitempty"`
	// a S2iTask, for S2I strategy
	S2i *S2iTask `json:"s2i,omitempty"`
}

Task represents the abstract task. Only one of the task should be configured to represent the specific task chosen.

func (*Task) DeepCopy

func (in *Task) DeepCopy() *Task

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

func (*Task) DeepCopyInto

func (in *Task) DeepCopyInto(out *Task)

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

type TraitConfiguration

type TraitConfiguration struct {
	// generic raw message, typically a map containing the keys (trait parameters) and the values (either single text or array)
	RawMessage `json:",inline"`
}

TraitConfiguration represents the expected configuration for a given trait parameter Deprecated: superceded by each Trait type, left for backward compatibility.

func (*TraitConfiguration) DeepCopy

func (in *TraitConfiguration) DeepCopy() *TraitConfiguration

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

func (*TraitConfiguration) DeepCopyInto

func (in *TraitConfiguration) DeepCopyInto(out *TraitConfiguration)

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

type TraitProfile

type TraitProfile string

TraitProfile represents lists of traits that are enabled for the specific installation/integration

const (
	// TraitProfileOpenShift is used by default on OpenShift clusters
	TraitProfileOpenShift TraitProfile = "OpenShift"
	// TraitProfileKubernetes is used by default on Kubernetes clusters
	TraitProfileKubernetes TraitProfile = "Kubernetes"
	// TraitProfileKnative is used by default on OpenShift/Kubernetes clusters powered by Knative
	TraitProfileKnative TraitProfile = "Knative"
	// DefaultTraitProfile is the trait profile used as default when no other profile is set
	DefaultTraitProfile = TraitProfileKubernetes
)

func TraitProfileByName

func TraitProfileByName(name string) TraitProfile

TraitProfileByName returns the trait profile corresponding to the given name (case insensitive).

func (TraitProfile) Equal added in v1.10.0

func (p TraitProfile) Equal(other TraitProfile) bool

Equal checks if the profile is equal to the given profile (case insensitive).

type TraitSpec

type TraitSpec struct {
	// TraitConfiguration parameters configuration
	Configuration TraitConfiguration `json:"configuration"`
}

A TraitSpec contains the configuration of a trait Deprecated: superceded by each Trait type, left for backward compatibility.

func (*TraitSpec) DeepCopy

func (in *TraitSpec) DeepCopy() *TraitSpec

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

func (*TraitSpec) DeepCopyInto

func (in *TraitSpec) DeepCopyInto(out *TraitSpec)

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

type Traits added in v1.10.0

type Traits struct {
	// The configuration of Affinity trait
	Affinity *trait.AffinityTrait `property:"affinity" json:"affinity,omitempty"`
	// The configuration of Builder trait
	Builder *trait.BuilderTrait `property:"builder" json:"builder,omitempty"`
	// The configuration of Camel trait
	Camel *trait.CamelTrait `property:"camel" json:"camel,omitempty"`
	// The configuration of Container trait
	Container *trait.ContainerTrait `property:"container" json:"container,omitempty"`
	// The configuration of Cron trait
	Cron *trait.CronTrait `property:"cron" json:"cron,omitempty"`
	// The configuration of Dependencies trait
	Dependencies *trait.DependenciesTrait `property:"dependencies" json:"dependencies,omitempty"`
	// The configuration of Deployer trait
	Deployer *trait.DeployerTrait `property:"deployer" json:"deployer,omitempty"`
	// The configuration of Deployment trait
	Deployment *trait.DeploymentTrait `property:"deployment" json:"deployment,omitempty"`
	// The configuration of Environment trait
	Environment *trait.EnvironmentTrait `property:"environment" json:"environment,omitempty"`
	// The configuration of Error Handler trait
	ErrorHandler *trait.ErrorHandlerTrait `property:"error-handler" json:"error-handler,omitempty"`
	// The configuration of GC trait
	GC *trait.GCTrait `property:"gc" json:"gc,omitempty"`
	// The configuration of Health trait
	Health *trait.HealthTrait `property:"health" json:"health,omitempty"`
	// The configuration of Ingress trait
	Ingress *trait.IngressTrait `property:"ingress" json:"ingress,omitempty"`
	// The configuration of Istio trait
	Istio *trait.IstioTrait `property:"istio" json:"istio,omitempty"`
	// The configuration of Jolokia trait
	Jolokia *trait.JolokiaTrait `property:"jolokia" json:"jolokia,omitempty"`
	// The configuration of JVM trait
	JVM *trait.JVMTrait `property:"jvm" json:"jvm,omitempty"`
	// The configuration of Kamelets trait
	Kamelets *trait.KameletsTrait `property:"kamelets" json:"kamelets,omitempty"`
	// The configuration of Knative trait
	Knative *trait.KnativeTrait `property:"knative" json:"knative,omitempty"`
	// The configuration of Knative Service trait
	KnativeService *trait.KnativeServiceTrait `property:"knative-service" json:"knative-service,omitempty"`
	// The configuration of Logging trait
	Logging *trait.LoggingTrait `property:"logging" json:"logging,omitempty"`
	// The configuration of Mount trait
	Mount *trait.MountTrait `property:"mount" json:"mount,omitempty"`
	// The configuration of OpenAPI trait
	OpenAPI *trait.OpenAPITrait `property:"openapi" json:"openapi,omitempty"`
	// The configuration of Owner trait
	Owner *trait.OwnerTrait `property:"owner" json:"owner,omitempty"`
	// The configuration of PDB trait
	PDB *trait.PDBTrait `property:"pdb" json:"pdb,omitempty"`
	// The configuration of Platform trait
	Platform *trait.PlatformTrait `property:"platform" json:"platform,omitempty"`
	// The configuration of Pod trait
	Pod *trait.PodTrait `property:"pod" json:"pod,omitempty"`
	// The configuration of Prometheus trait
	Prometheus *trait.PrometheusTrait `property:"prometheus" json:"prometheus,omitempty"`
	// The configuration of Pull Secret trait
	PullSecret *trait.PullSecretTrait `property:"pull-secret" json:"pull-secret,omitempty"`
	// The configuration of Quarkus trait
	Quarkus *trait.QuarkusTrait `property:"quarkus" json:"quarkus,omitempty"`
	// The configuration of Registry trait
	Registry *trait.RegistryTrait `property:"registry" json:"registry,omitempty"`
	// The configuration of Route trait
	Route *trait.RouteTrait `property:"route" json:"route,omitempty"`
	// The configuration of Service trait
	Service *trait.ServiceTrait `property:"service" json:"service,omitempty"`
	// The configuration of Service Binding trait
	ServiceBinding *trait.ServiceBindingTrait `property:"service-binding" json:"service-binding,omitempty"`
	// The configuration of Toleration trait
	Toleration *trait.TolerationTrait `property:"toleration" json:"toleration,omitempty"`

	// The extension point with addon traits
	Addons map[string]AddonTrait `json:"addons,omitempty"`

	// Deprecated: for backward compatibility.
	Keda *TraitSpec `property:"keda" json:"keda,omitempty"`
	// Deprecated: for backward compatibility.
	Master *TraitSpec `property:"master" json:"master,omitempty"`
	// Deprecated: for backward compatibility.
	Strimzi *TraitSpec `property:"strimzi" json:"strimzi,omitempty"`
	// Deprecated: for backward compatibility.
	ThreeScale *TraitSpec `property:"3scale" json:"3scale,omitempty"`
	// Deprecated: for backward compatibility.
	Tracing *TraitSpec `property:"tracing" json:"tracing,omitempty"`
}

Traits represents the collection of trait configurations

func (*Traits) DeepCopy added in v1.10.0

func (in *Traits) DeepCopy() *Traits

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

func (*Traits) DeepCopyInto added in v1.10.0

func (in *Traits) DeepCopyInto(out *Traits)

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

func (*Traits) Merge added in v1.10.0

func (t *Traits) Merge(other Traits) error

Merge merges the given Traits into the receiver.

type ValueSource

type ValueSource struct {
	// Selects a key of a ConfigMap.
	ConfigMapKeyRef *corev1.ConfigMapKeySelector `json:"configMapKeyRef,omitempty"`
	// Selects a key of a secret.
	SecretKeyRef *corev1.SecretKeySelector `json:"secretKeyRef,omitempty"`
}

ValueSource --

func (*ValueSource) DeepCopy

func (in *ValueSource) DeepCopy() *ValueSource

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

func (*ValueSource) DeepCopyInto

func (in *ValueSource) DeepCopyInto(out *ValueSource)

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

Directories

Path Synopsis
Package trait contains Trait API Schema definitions for the camel v1 API group +kubebuilder:object:generate=true +groupName=camel.apache.org
Package trait contains Trait API Schema definitions for the camel v1 API group +kubebuilder:object:generate=true +groupName=camel.apache.org

Jump to

Keyboard shortcuts

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