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

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


The following commit(s) were added to refs/heads/main by this push:
     new 9d6eb58d3 chore(trait): hide error handler
9d6eb58d3 is described below

commit 9d6eb58d308a9d0b57a4ffbb78729a050801f72f
Author: Pasquale Congiusti <[email protected]>
AuthorDate: Sun Oct 27 16:11:58 2024 +0100

    chore(trait): hide error handler
    
    The error handler is not configurable directly
---
 docs/modules/ROOT/nav.adoc                   |  1 -
 docs/modules/traits/pages/error-handler.adoc | 38 ----------------------------
 pkg/apis/camel/v1/trait/error_handler.go     |  1 +
 3 files changed, 1 insertion(+), 39 deletions(-)

diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index e54685ca8..bf19be45e 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -51,7 +51,6 @@
 ** xref:traits:deployer.adoc[Deployer]
 ** xref:traits:deployment.adoc[Deployment]
 ** xref:traits:environment.adoc[Environment]
-** xref:traits:error-handler.adoc[Error Handler]
 ** xref:traits:gc.adoc[Gc]
 ** xref:traits:gcp-secret-manager.adoc[Gcp Secret Manager]
 ** xref:traits:hashicorp-vault.adoc[Hashicorp Vault]
diff --git a/docs/modules/traits/pages/error-handler.adoc 
b/docs/modules/traits/pages/error-handler.adoc
deleted file mode 100755
index d30201802..000000000
--- a/docs/modules/traits/pages/error-handler.adoc
+++ /dev/null
@@ -1,38 +0,0 @@
-= Error Handler Trait
-
-// Start of autogenerated code - DO NOT EDIT! (badges)
-// End of autogenerated code - DO NOT EDIT! (badges)
-// Start of autogenerated code - DO NOT EDIT! (description)
-The error-handler is a platform trait used to inject Error Handler source into 
the integration runtime.
-
-
-This trait is available in the following profiles: **Kubernetes, Knative, 
OpenShift**.
-
-NOTE: The error-handler trait is a *platform trait* and cannot be disabled by 
the user.
-
-// 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 error-handler.[key]=[value] --trait 
error-handler.[key2]=[value2] integration.yaml
-----
-The following configuration options are available:
-
-[cols="2m,1m,5a"]
-|===
-|Property | Type | Description
-
-| error-handler.enabled
-| bool
-| Deprecated: no longer in use.
-
-| error-handler.ref
-| string
-| The error handler ref name provided or found in application properties
-
-|===
-
-// End of autogenerated code - DO NOT EDIT! (configuration)
diff --git a/pkg/apis/camel/v1/trait/error_handler.go 
b/pkg/apis/camel/v1/trait/error_handler.go
index d51f14805..c84934f64 100644
--- a/pkg/apis/camel/v1/trait/error_handler.go
+++ b/pkg/apis/camel/v1/trait/error_handler.go
@@ -20,6 +20,7 @@ package trait
 // The error-handler is a platform trait used to inject Error Handler source 
into the integration runtime.
 //
 // +camel-k:trait=error-handler.
+// +camel-k:internal.
 type ErrorHandlerTrait struct {
        PlatformBaseTrait `property:",squash" json:",inline"`
        // The error handler ref name provided or found in application 
properties

Reply via email to