This is an automated email from the ASF dual-hosted git repository.

squakez pushed a commit to branch v3
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit 9409f4d16329fec7cebc231b575dff1da0a29ec3
Author: Pasquale Congiusti <[email protected]>
AuthorDate: Wed Dec 2 18:09:28 2026 +0100

    chore: align backport from 261202
    
    Last backport commit id 51f505afda2c40c86c46fb13a983d02490898aa8
---
 docs/modules/traits/pages/knative.adoc | 111 ---------------------------------
 e2e/knative/knative_eventing_test.go   |   6 +-
 pkg/trait/cron_test.go                 |   2 +-
 pkg/util/defaults/defaults.go          |   2 +-
 4 files changed, 4 insertions(+), 117 deletions(-)

diff --git a/docs/modules/traits/pages/knative.adoc 
b/docs/modules/traits/pages/knative.adoc
deleted file mode 100755
index 8adefd274..000000000
--- a/docs/modules/traits/pages/knative.adoc
+++ /dev/null
@@ -1,111 +0,0 @@
-= Knative Trait
-
-// Start of autogenerated code - DO NOT EDIT! (badges)
-[.badges]
-[.badge-key]##Deprecated since##[.badge-unsupported]##2.11.0##
-// End of autogenerated code - DO NOT EDIT! (badges)
-// Start of autogenerated code - DO NOT EDIT! (description)
-The Knative trait automatically discovers addresses of Knative resources and 
inject them into the
-running integration.
-
-The Camel Knative component will then use the full configuration to configure 
the routes.
-
-WARNING: The Knative trait is **deprecated** and will be removed in future 
release versions:
-use Camel (Quarkus) Knative component instead.
-
-The trait is enabled by default when the Knative profile is active.
-
-
-
-// End of autogenerated code - DO NOT EDIT! (description)
-// Start of autogenerated code - DO NOT EDIT! (configuration)
-== Configuration
-
-Trait properties can be specified when running any integration with the CLI:
-[source,console]
-----
-$ kamel run --trait knative.[key]=[value] --trait knative.[key2]=[value2] 
integration.yaml
-----
-The following configuration options are available:
-
-[cols="2m,1m,5a"]
-|===
-|Property | Type | Description
-
-| knative.enabled
-| bool
-| Can be used to enable or disable a trait. All traits share this common 
property.
-
-| knative.config
-| string
-| Can be used to inject a Knative complete configuration in JSON format.
-
-| knative.channelSources
-| []string
-| List of channels used as source of integration routes.
-Can contain simple channel names or full Camel URIs.
-
-| knative.channelSinks
-| []string
-| List of channels used as destination of integration routes.
-Can contain simple channel names or full Camel URIs.
-
-| knative.endpointSources
-| []string
-| List of channels used as source of integration routes.
-
-| knative.endpointSinks
-| []string
-| List of endpoints used as destination of integration routes.
-Can contain simple endpoint names or full Camel URIs.
-
-| knative.eventSources
-| []string
-| List of event types that the integration will be subscribed to.
-Can contain simple event types or full Camel URIs (to use a specific broker 
different from "default").
-
-| knative.eventSinks
-| []string
-| List of event types that the integration will produce.
-Can contain simple event types or full Camel URIs (to use a specific broker).
-
-| knative.filterSourceChannels
-| bool
-| Enables filtering on events based on the header "ce-knativehistory". Since 
this header has been removed in newer versions of
-Knative, filtering is disabled by default.
-
-| knative.sinkBinding
-| bool
-| Allows binding the integration to a sink via a Knative SinkBinding resource.
-This can be used when the integration targets a single sink.
-It's enabled by default when the integration targets a single sink
-(except when the integration is owned by a Knative source).
-
-| knative.auto
-| bool
-| Enable automatic discovery of all trait properties.
-
-| knative.namespaceLabel
-| bool
-| Enables the camel-k-operator to set the "bindings.knative.dev/include=true" 
label to the namespace
-As Knative requires this label to perform injection of K_SINK URL into the 
service.
-If this is false, the integration pod may start and fail, read the SinkBinding 
Knative documentation. (default: true)
-
-| knative.filters
-| []string
-| Sets filter attributes on the event stream (such as event type, source, 
subject and so on).
-A list of key-value pairs that represent filter attributes and its values.
-The syntax is KEY=VALUE, e.g., `source="my.source"`.
-Filter attributes get set on the Knative trigger that is being created as part 
of this integration.
-
-| knative.filterEventType
-| bool
-| Enables the default filtering for the Knative trigger using the event type
-If this is true, the created Knative trigger uses the event type as a filter 
on the event stream when no other filter criteria is given. (default: true)
-
-|===
-
-NOTE: the variable names are "snake case" if you're using in `kamel` CLI, for 
example `trait.myParam` has to be translated as `-t trait.my-param`
-
-
-// End of autogenerated code - DO NOT EDIT! (configuration)
diff --git a/e2e/knative/knative_eventing_test.go 
b/e2e/knative/knative_eventing_test.go
index 898d80fe1..3c0c64cb8 100644
--- a/e2e/knative/knative_eventing_test.go
+++ b/e2e/knative/knative_eventing_test.go
@@ -105,9 +105,8 @@ func TestKnativeEventingChannel(t *testing.T) {
                // Disable the deprecated Knative traits explicitly; the route 
uses Camel's component.
                g.Expect(KamelRun(t, ctx, ns, 
"files/knative-channel-consumer.yaml",
                        "--name", consumerName,
-                       "-t", "knative.enabled=false",
                        "-t", "knative-service.enabled=false",
-                       "--env", 
"CAMEL_KNATIVE_CONFIGURATION="+consumerConfiguration,
+                       "-t", 
"environment.vars=CAMEL_KNATIVE_CONFIGURATION="+consumerConfiguration,
                ).Execute()).To(Succeed())
                g.Eventually(
                        IntegrationConditionStatus(t, ctx, ns, consumerName, 
v1.IntegrationConditionReady),
@@ -132,9 +131,8 @@ func TestKnativeEventingChannel(t *testing.T) {
 
                g.Expect(KamelRun(t, ctx, ns, 
"files/knative-channel-producer.yaml",
                        "--name", producerName,
-                       "-t", "knative.enabled=false",
                        "-t", "knative-service.enabled=false",
-                       "--env", 
"CAMEL_KNATIVE_CONFIGURATION="+producerConfiguration,
+                       "-t", 
"environment.vars=CAMEL_KNATIVE_CONFIGURATION="+producerConfiguration,
                ).Execute()).To(Succeed())
                g.Eventually(
                        IntegrationConditionStatus(t, ctx, ns, producerName, 
v1.IntegrationConditionReady), TestTimeoutMedium,
diff --git a/pkg/trait/cron_test.go b/pkg/trait/cron_test.go
index be2958548..66953c632 100644
--- a/pkg/trait/cron_test.go
+++ b/pkg/trait/cron_test.go
@@ -761,7 +761,7 @@ func TestCronQuartzDayOfMonthWithoutKubernetesEquivalent(t 
*testing.T) {
                ExecutedTraits: make([]Trait, 0),
                Resources:      kubernetes.NewCollection(),
        }
-       c, err := newFakeClient("ns")
+       c, err := internal.NewFakeClient()
        require.NoError(t, err)
 
        tc := NewCatalog(c)
diff --git a/pkg/util/defaults/defaults.go b/pkg/util/defaults/defaults.go
index 0740ff540..dfef7601f 100644
--- a/pkg/util/defaults/defaults.go
+++ b/pkg/util/defaults/defaults.go
@@ -29,7 +29,7 @@ const (
        DefaultRuntimeProvider = "plain-quarkus"
 
        // DefaultRuntimeVersion --
-       DefaultRuntimeVersion = "3.40.1"
+       DefaultRuntimeVersion = "3.40.2"
 
        // CamelKRuntimeCatalogVersion --
        CamelKRuntimeCatalogVersion = "3.15.3"

Reply via email to