/*
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements.  See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License.  You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package trait

// The Camel trait can be used to configure versions of Apache Camel K runtime and related libraries, it cannot be disabled.
//
// +camel-k:trait=camel.
type CamelTrait struct {
	PlatformBaseTrait `json:",inline" property:",squash"`

	// The runtime provider to use for the integration. (Default, Camel K Runtime).
	// +kubebuilder:validation:Enum=quarkus;plain-quarkus
	RuntimeProvider string `json:"runtimeProvider,omitempty" property:"runtime-provider"`
	// The runtime version to use for the integration. It overrides the default version set in the Integration Platform.
	// You can use a fixed version (for example "3.2.3") or a semantic version (for example "3.x") which will try to resolve
	// to the best matching Catalog existing on the cluster (Default, the one provided by the operator version).
	RuntimeVersion string `json:"runtimeVersion,omitempty" property:"runtime-version"`
	// A list of properties to be provided to the Integration runtime
	Properties []string `json:"properties,omitempty" property:"properties"`
}
