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

commit b41309a931fb1e284a5fe1359cf8c9892cc43c50
Author: Pasquale Congiusti <pasquale.congiu...@gmail.com>
AuthorDate: Mon Mar 13 18:16:25 2023 +0100

    chore: make generate
---
 docs/modules/ROOT/partials/apis/camel-k-crds.adoc  | 12 +++++------
 docs/modules/ROOT/partials/apis/kamelets-crds.adoc | 22 ++++++++++----------
 docs/modules/traits/pages/gc.adoc                  |  2 +-
 docs/modules/traits/pages/keda.adoc                |  2 +-
 docs/modules/traits/pages/quarkus.adoc             |  2 +-
 docs/modules/traits/pages/service.adoc             |  2 +-
 resources/traits.yaml                              |  8 ++++----
 script/Makefile                                    | 16 +++++++--------
 script/gen_client.sh                               | 24 +++++++++++-----------
 script/gen_client_strimzi.sh                       |  6 +++---
 script/gen_crd/gen_crd_api.sh                      |  4 ++--
 script/gen_doc.sh                                  | 23 +++++++++++----------
 12 files changed, 62 insertions(+), 61 deletions(-)

diff --git a/docs/modules/ROOT/partials/apis/camel-k-crds.adoc 
b/docs/modules/ROOT/partials/apis/camel-k-crds.adoc
index c776168ee..f6646a775 100644
--- a/docs/modules/ROOT/partials/apis/camel-k-crds.adoc
+++ b/docs/modules/ROOT/partials/apis/camel-k-crds.adoc
@@ -912,14 +912,14 @@ CamelCatalogSpec specify what features a Camel runtime 
provides
 the runtime targeted for the catalog
 
 |`artifacts` +
-*xref:#_camel_apache_org_v1_CamelArtifact[map[string\]github.com/apache/camel-k/pkg/apis/camel/v1.CamelArtifact]*
+*xref:#_camel_apache_org_v1_CamelArtifact[map[string\]github.com/apache/camel-k/v2/pkg/apis/camel/v1.CamelArtifact]*
 |
 
 
 artifacts required by this catalog
 
 |`loaders` +
-*xref:#_camel_apache_org_v1_CamelLoader[map[string\]github.com/apache/camel-k/pkg/apis/camel/v1.CamelLoader]*
+*xref:#_camel_apache_org_v1_CamelLoader[map[string\]github.com/apache/camel-k/v2/pkg/apis/camel/v1.CamelLoader]*
 |
 
 
@@ -1789,7 +1789,7 @@ NOTE: Compiling to a native executable, i.e. when using 
`package-type=native`, i
 The Registry trait sets up Maven to use the Image registry as a Maven 
repository.
 
 |`addons` +
-*xref:#_camel_apache_org_v1_AddonTrait[map[string\]github.com/apache/camel-k/pkg/apis/camel/v1.AddonTrait]*
+*xref:#_camel_apache_org_v1_AddonTrait[map[string\]github.com/apache/camel-k/v2/pkg/apis/camel/v1.AddonTrait]*
 |
 
 
@@ -2657,7 +2657,7 @@ See 
https://maven.apache.org/ref/3.8.4/maven-embedder/cli.html.
 |===
 
 [#_camel_apache_org_v1_PluginProperties]
-=== 
PluginProperties(`map[string]github.com/apache/camel-k/pkg/apis/camel/v1.StringOrProperties`
 alias)
+=== 
PluginProperties(`map[string]github.com/apache/camel-k/v2/pkg/apis/camel/v1.StringOrProperties`
 alias)
 
 
 
@@ -3152,7 +3152,7 @@ map[string]string
 set of metadata
 
 |`capabilities` +
-*xref:#_camel_apache_org_v1_Capability[map[string\]github.com/apache/camel-k/pkg/apis/camel/v1.Capability]*
+*xref:#_camel_apache_org_v1_Capability[map[string\]github.com/apache/camel-k/v2/pkg/apis/camel/v1.Capability]*
 |
 
 
@@ -3752,7 +3752,7 @@ The configuration of Service Binding trait
 The configuration of Toleration trait
 
 |`addons` +
-*xref:#_camel_apache_org_v1_AddonTrait[map[string\]github.com/apache/camel-k/pkg/apis/camel/v1.AddonTrait]*
+*xref:#_camel_apache_org_v1_AddonTrait[map[string\]github.com/apache/camel-k/v2/pkg/apis/camel/v1.AddonTrait]*
 |
 
 
diff --git a/docs/modules/ROOT/partials/apis/kamelets-crds.adoc 
b/docs/modules/ROOT/partials/apis/kamelets-crds.adoc
index 4e32bece5..36d7aea89 100644
--- a/docs/modules/ROOT/partials/apis/kamelets-crds.adoc
+++ b/docs/modules/ROOT/partials/apis/kamelets-crds.adoc
@@ -192,7 +192,7 @@ media type as expected for HTTP media types (ie, 
application/json)
 the list of Camel or Maven dependencies required by the data type
 
 |`headers` +
-*xref:#_camel_apache_org_v1alpha1_HeaderSpec[map[string\]github.com/apache/camel-k/pkg/apis/camel/v1alpha1.HeaderSpec]*
+*xref:#_camel_apache_org_v1alpha1_HeaderSpec[map[string\]github.com/apache/camel-k/v2/pkg/apis/camel/v1alpha1.HeaderSpec]*
 |
 
 
@@ -230,14 +230,14 @@ string
 the default data type for this Kamelet
 
 |`types` +
-*xref:#_camel_apache_org_v1alpha1_DataTypeSpec[map[string\]github.com/apache/camel-k/pkg/apis/camel/v1alpha1.DataTypeSpec]*
+*xref:#_camel_apache_org_v1alpha1_DataTypeSpec[map[string\]github.com/apache/camel-k/v2/pkg/apis/camel/v1alpha1.DataTypeSpec]*
 |
 
 
 one to many data type specifications
 
 |`headers` +
-*xref:#_camel_apache_org_v1alpha1_HeaderSpec[map[string\]github.com/apache/camel-k/pkg/apis/camel/v1alpha1.HeaderSpec]*
+*xref:#_camel_apache_org_v1alpha1_HeaderSpec[map[string\]github.com/apache/camel-k/v2/pkg/apis/camel/v1alpha1.HeaderSpec]*
 |
 
 
@@ -283,7 +283,7 @@ URI can be used to specify the (Camel) endpoint explicitly
 Properties are a key value representation of endpoint properties
 
 |`types` +
-*xref:#_camel_apache_org_v1alpha1_EventTypeSpec[map[github.com/apache/camel-k/pkg/apis/camel/v1alpha1.TypeSlot\]github.com/apache/camel-k/pkg/apis/camel/v1alpha1.EventTypeSpec]*
+*xref:#_camel_apache_org_v1alpha1_EventTypeSpec[map[github.com/apache/camel-k/v2/pkg/apis/camel/v1alpha1.TypeSlot\]github.com/apache/camel-k/v2/pkg/apis/camel/v1alpha1.EventTypeSpec]*
 |
 
 
@@ -291,7 +291,7 @@ Types defines the data type of the data produced/consumed 
by the endpoint and re
 Deprecated: In favor of using DataTypes
 
 |`dataTypes` +
-*xref:#_camel_apache_org_v1alpha1_DataTypeReference[map[github.com/apache/camel-k/pkg/apis/camel/v1alpha1.TypeSlot\]github.com/apache/camel-k/pkg/apis/camel/v1alpha1.DataTypeReference]*
+*xref:#_camel_apache_org_v1alpha1_DataTypeReference[map[github.com/apache/camel-k/v2/pkg/apis/camel/v1alpha1.TypeSlot\]github.com/apache/camel-k/v2/pkg/apis/camel/v1alpha1.DataTypeReference]*
 |
 
 
@@ -856,7 +856,7 @@ string
 
 
 |`properties` +
-*xref:#_camel_apache_org_v1alpha1_JSONSchemaProp[map[string\]github.com/apache/camel-k/pkg/apis/camel/v1alpha1.JSONSchemaProp]*
+*xref:#_camel_apache_org_v1alpha1_JSONSchemaProp[map[string\]github.com/apache/camel-k/v2/pkg/apis/camel/v1alpha1.JSONSchemaProp]*
 |
 
 
@@ -967,7 +967,7 @@ string
 A human readable message indicating details about the transition.
 
 |`pods` +
-*xref:apis/camel-k.adoc#_camel_apache_org_v1_PodCondition[[\]github.com/apache/camel-k/pkg/apis/camel/v1.PodCondition]*
+[]github.com/apache/camel-k/v2/pkg/apis/camel/v1.PodCondition
 |
 
 
@@ -1011,7 +1011,7 @@ KameletBindingSpec defines the binding between a source 
and a sink. It can inclu
 |Description
 
 |`integration` +
-*xref:apis/camel-k.adoc#_camel_apache_org_v1_IntegrationSpec[github.com/apache/camel-k/pkg/apis/camel/v1.IntegrationSpec]*
+github.com/apache/camel-k/v2/pkg/apis/camel/v1.IntegrationSpec
 |
 
 
@@ -1246,7 +1246,7 @@ KameletSpec specifies the configuration required to 
execute a Kamelet
 defines the formal configuration of the Kamelet
 
 |`sources` +
-*xref:apis/camel-k.adoc#_camel_apache_org_v1_SourceSpec[[\]github.com/apache/camel-k/pkg/apis/camel/v1.SourceSpec]*
+[]github.com/apache/camel-k/v2/pkg/apis/camel/v1.SourceSpec
 |
 
 
@@ -1260,7 +1260,7 @@ sources in any Camel DSL supported
 the main source in YAML DSL
 
 |`types` +
-*xref:#_camel_apache_org_v1alpha1_EventTypeSpec[map[github.com/apache/camel-k/pkg/apis/camel/v1alpha1.TypeSlot\]github.com/apache/camel-k/pkg/apis/camel/v1alpha1.EventTypeSpec]*
+*xref:#_camel_apache_org_v1alpha1_EventTypeSpec[map[github.com/apache/camel-k/v2/pkg/apis/camel/v1alpha1.TypeSlot\]github.com/apache/camel-k/v2/pkg/apis/camel/v1alpha1.EventTypeSpec]*
 |
 
 
@@ -1268,7 +1268,7 @@ data specification types for the events consumed/produced 
by the Kamelet
 Deprecated: In favor of using DataTypes
 
 |`dataTypes` +
-*xref:#_camel_apache_org_v1alpha1_DataTypesSpec[map[github.com/apache/camel-k/pkg/apis/camel/v1alpha1.TypeSlot\]github.com/apache/camel-k/pkg/apis/camel/v1alpha1.DataTypesSpec]*
+*xref:#_camel_apache_org_v1alpha1_DataTypesSpec[map[github.com/apache/camel-k/v2/pkg/apis/camel/v1alpha1.TypeSlot\]github.com/apache/camel-k/v2/pkg/apis/camel/v1alpha1.DataTypesSpec]*
 |
 
 
diff --git a/docs/modules/traits/pages/gc.adoc 
b/docs/modules/traits/pages/gc.adoc
index 44955bdc2..fef922b06 100755
--- a/docs/modules/traits/pages/gc.adoc
+++ b/docs/modules/traits/pages/gc.adoc
@@ -26,7 +26,7 @@ The following configuration options are available:
 | Can be used to enable or disable a trait. All traits share this common 
property.
 
 | gc.discovery-cache
-| github.com/apache/camel-k/pkg/apis/camel/v1/trait.DiscoveryCacheType
+| github.com/apache/camel-k/v2/pkg/apis/camel/v1/trait.DiscoveryCacheType
 | Discovery client cache to be used, either `disabled`, `disk` or `memory` 
(default `memory`).
 Deprecated: to be removed from trait configuration.
 
diff --git a/docs/modules/traits/pages/keda.adoc 
b/docs/modules/traits/pages/keda.adoc
index b1a582707..ce5ee3cd7 100644
--- a/docs/modules/traits/pages/keda.adoc
+++ b/docs/modules/traits/pages/keda.adoc
@@ -63,7 +63,7 @@ The following configuration options are available:
 | Maximum number of replicas.
 
 | keda.triggers
-| []github.com/apache/camel-k/addons/keda.kedaTrigger
+| []github.com/apache/camel-k/v2/addons/keda.kedaTrigger
 | Definition of triggers according to the KEDA format. Each trigger must 
contain `type` field corresponding
 to the name of a KEDA autoscaler and a key/value map named `metadata` 
containing specific trigger options.
 An optional `authentication-secret` can be declared per trigger and the 
operator will link each entry of
diff --git a/docs/modules/traits/pages/quarkus.adoc 
b/docs/modules/traits/pages/quarkus.adoc
index e0201cc13..b03444c8b 100755
--- a/docs/modules/traits/pages/quarkus.adoc
+++ b/docs/modules/traits/pages/quarkus.adoc
@@ -34,7 +34,7 @@ The following configuration options are available:
 | Can be used to enable or disable a trait. All traits share this common 
property.
 
 | quarkus.package-type
-| []github.com/apache/camel-k/pkg/apis/camel/v1/trait.QuarkusPackageType
+| []github.com/apache/camel-k/v2/pkg/apis/camel/v1/trait.QuarkusPackageType
 | The Quarkus package types, either `fast-jar` or `native` (default 
`fast-jar`).
 In case both `fast-jar` and `native` are specified, two `IntegrationKit` 
resources are created,
 with the `native` kit having precedence over the `fast-jar` one once ready.
diff --git a/docs/modules/traits/pages/service.adoc 
b/docs/modules/traits/pages/service.adoc
index e1752bcf5..d2bc3e1a9 100755
--- a/docs/modules/traits/pages/service.adoc
+++ b/docs/modules/traits/pages/service.adoc
@@ -38,7 +38,7 @@ The following configuration options are available:
 Deprecated: Use service type instead.
 
 | service.type
-| github.com/apache/camel-k/pkg/apis/camel/v1/trait.ServiceType
+| github.com/apache/camel-k/v2/pkg/apis/camel/v1/trait.ServiceType
 | The type of service to be used, either 'ClusterIP', 'NodePort' or 
'LoadBalancer'.
 
 |===
diff --git a/resources/traits.yaml b/resources/traits.yaml
index 8178760ac..77bac23af 100755
--- a/resources/traits.yaml
+++ b/resources/traits.yaml
@@ -476,7 +476,7 @@ traits:
     description: Can be used to enable or disable a trait. All traits share 
this common
       property.
   - name: discovery-cache
-    type: github.com/apache/camel-k/pkg/apis/camel/v1/trait.DiscoveryCacheType
+    type: 
github.com/apache/camel-k/v2/pkg/apis/camel/v1/trait.DiscoveryCacheType
     description: 'Discovery client cache to be used, either `disabled`, `disk` 
or
       `memory` (default `memory`). Deprecated: to be removed from trait 
configuration.'
 - name: gcp-secret-manager
@@ -844,7 +844,7 @@ traits:
     type: int32
     description: Maximum number of replicas.
   - name: triggers
-    type: '[]github.com/apache/camel-k/addons/keda.kedaTrigger'
+    type: '[]github.com/apache/camel-k/v2/addons/keda.kedaTrigger'
     description: Definition of triggers according to the KEDA format. Each 
trigger
       must contain `type` field corresponding to the name of a KEDA autoscaler 
and
       a key/value map named `metadata` containing specific trigger options. An 
optional
@@ -1245,7 +1245,7 @@ traits:
     description: Can be used to enable or disable a trait. All traits share 
this common
       property.
   - name: package-type
-    type: 
'[]github.com/apache/camel-k/pkg/apis/camel/v1/trait.QuarkusPackageType'
+    type: 
'[]github.com/apache/camel-k/v2/pkg/apis/camel/v1/trait.QuarkusPackageType'
     description: The Quarkus package types, either `fast-jar` or `native` 
(default
       `fast-jar`). In case both `fast-jar` and `native` are specified, two 
`IntegrationKit`
       resources are created, with the `native` kit having precedence over the 
`fast-jar`
@@ -1404,7 +1404,7 @@ traits:
     description: 'Enable Service to be exposed as NodePort (default `false`). 
Deprecated:
       Use service type instead.'
   - name: type
-    type: github.com/apache/camel-k/pkg/apis/camel/v1/trait.ServiceType
+    type: github.com/apache/camel-k/v2/pkg/apis/camel/v1/trait.ServiceType
     description: The type of service to be used, either 'ClusterIP', 
'NodePort' or
       'LoadBalancer'.
 - name: service-binding
diff --git a/script/Makefile b/script/Makefile
index ca92f74f4..ec9c10e76 100644
--- a/script/Makefile
+++ b/script/Makefile
@@ -96,13 +96,13 @@ DO_TEST_PREBUILD ?= true
 TEST_PREBUILD = build
 
 # OLM (Operator Lifecycle Manager and Operator Hub): uncomment to override 
operator settings at build time
-#GOLDFLAGS += -X 
github.com/apache/camel-k/pkg/util/olm.DefaultOperatorName=camel-k-operator
-#GOLDFLAGS += -X github.com/apache/camel-k/pkg/util/olm.DefaultPackage=camel-k
-#GOLDFLAGS += -X github.com/apache/camel-k/pkg/util/olm.DefaultChannel=alpha
-#GOLDFLAGS += -X 
github.com/apache/camel-k/pkg/util/olm.DefaultSource=community-operators
-#GOLDFLAGS += -X 
github.com/apache/camel-k/pkg/util/olm.DefaultSourceNamespace=openshift-marketplace
-#GOLDFLAGS += -X github.com/apache/camel-k/pkg/util/olm.DefaultStartingCSV=
-#GOLDFLAGS += -X 
github.com/apache/camel-k/pkg/util/olm.DefaultGlobalNamespace=openshift-operators
+#GOLDFLAGS += -X 
github.com/apache/camel-k/v2/pkg/util/olm.DefaultOperatorName=camel-k-operator
+#GOLDFLAGS += -X 
github.com/apache/camel-k/v2/pkg/util/olm.DefaultPackage=camel-k
+#GOLDFLAGS += -X github.com/apache/camel-k/v2/pkg/util/olm.DefaultChannel=alpha
+#GOLDFLAGS += -X 
github.com/apache/camel-k/v2/pkg/util/olm.DefaultSource=community-operators
+#GOLDFLAGS += -X 
github.com/apache/camel-k/v2/pkg/util/olm.DefaultSourceNamespace=openshift-marketplace
+#GOLDFLAGS += -X github.com/apache/camel-k/v2/pkg/util/olm.DefaultStartingCSV=
+#GOLDFLAGS += -X 
github.com/apache/camel-k/v2/pkg/util/olm.DefaultGlobalNamespace=openshift-operators
 
 # Get the currently used golang install path (in GOPATH/bin, unless GOBIN is 
set)
 ifeq (,$(shell go env GOBIN))
@@ -113,7 +113,7 @@ endif
 
 # Build
 ifdef GIT_COMMIT
-GOLDFLAGS += -X 
github.com/apache/camel-k/pkg/util/defaults.GitCommit=$(GIT_COMMIT)
+GOLDFLAGS += -X 
github.com/apache/camel-k/v2/pkg/util/defaults.GitCommit=$(GIT_COMMIT)
 else
 $(warning Could not retrieve a valid Git Commit)
 endif
diff --git a/script/gen_client.sh b/script/gen_client.sh
index aeffeea80..9389ff0b9 100755
--- a/script/gen_client.sh
+++ b/script/gen_client.sh
@@ -25,38 +25,38 @@ cd $location/../pkg/client/camel
 echo "Generating Go client code..."
 
 $(go env GOPATH)/bin/applyconfiguration-gen \
-       
--input-dirs=github.com/apache/camel-k/pkg/apis/camel/v1,github.com/apache/camel-k/pkg/apis/camel/v1alpha1
 \
+       
--input-dirs=github.com/apache/camel-k/v2/pkg/apis/camel/v1,github.com/apache/camel-k/v2/pkg/apis/camel/v1alpha1
 \
        --go-header-file=../../../script/headers/default.txt \
        --output-base=. \
-       
--output-package=github.com/apache/camel-k/pkg/client/camel/applyconfiguration
+       
--output-package=github.com/apache/camel-k/v2/pkg/client/camel/applyconfiguration
 
 $(go env GOPATH)/bin/client-gen \
        --input=camel/v1,camel/v1alpha1 \
        --go-header-file=../../../script/headers/default.txt \
        --clientset-name "versioned"  \
-       --input-base=github.com/apache/camel-k/pkg/apis \
-       
--apply-configuration-package=github.com/apache/camel-k/pkg/client/camel/applyconfiguration
 \
+       --input-base=github.com/apache/camel-k/v2/pkg/apis \
+       
--apply-configuration-package=github.com/apache/camel-k/v2/pkg/client/camel/applyconfiguration
 \
        --output-base=. \
-       --output-package=github.com/apache/camel-k/pkg/client/camel/clientset
+       --output-package=github.com/apache/camel-k/v2/pkg/client/camel/clientset
 
 $(go env GOPATH)/bin/lister-gen \
-       
--input-dirs=github.com/apache/camel-k/pkg/apis/camel/v1,github.com/apache/camel-k/pkg/apis/camel/v1alpha1
 \
+       
--input-dirs=github.com/apache/camel-k/v2/pkg/apis/camel/v1,github.com/apache/camel-k/v2/pkg/apis/camel/v1alpha1
 \
        --go-header-file=../../../script/headers/default.txt \
        --output-base=. \
-       --output-package=github.com/apache/camel-k/pkg/client/camel/listers
+       --output-package=github.com/apache/camel-k/v2/pkg/client/camel/listers
 
 $(go env GOPATH)/bin/informer-gen \
-    
--versioned-clientset-package=github.com/apache/camel-k/pkg/client/camel/clientset/versioned
 \
-       --listers-package=github.com/apache/camel-k/pkg/client/camel/listers \
-       
--input-dirs=github.com/apache/camel-k/pkg/apis/camel/v1,github.com/apache/camel-k/pkg/apis/camel/v1alpha1
 \
+    
--versioned-clientset-package=github.com/apache/camel-k/v2/pkg/client/camel/clientset/versioned
 \
+       --listers-package=github.com/apache/camel-k/v2/pkg/client/camel/listers 
\
+       
--input-dirs=github.com/apache/camel-k/v2/pkg/apis/camel/v1,github.com/apache/camel-k/v2/pkg/apis/camel/v1alpha1
 \
        --go-header-file=../../../script/headers/default.txt \
        --output-base=. \
-       --output-package=github.com/apache/camel-k/pkg/client/camel/informers
+       --output-package=github.com/apache/camel-k/v2/pkg/client/camel/informers
 
 
 # hack to fix non go-module compliance
 rm -rf ./clientset
 rm -rf ./informers
 rm -rf ./listers
-cp -R ./github.com/apache/camel-k/pkg/client/camel/* .
+cp -R ./github.com/apache/camel-k/v2/pkg/client/camel/* .
 rm -rf ./github.com
diff --git a/script/gen_client_strimzi.sh b/script/gen_client_strimzi.sh
index 1422dcb7e..70eceba40 100755
--- a/script/gen_client_strimzi.sh
+++ b/script/gen_client_strimzi.sh
@@ -29,12 +29,12 @@ cd $rootdir
 $(go env GOPATH)/bin/client-gen \
   -h script/headers/default.txt \
   --input duck/v1beta2 \
-  --input-base=github.com/apache/camel-k/addons/strimzi \
+  --input-base=github.com/apache/camel-k/v2/addons/strimzi \
   --output-base=. \
-  --output-package=github.com/apache/camel-k/addons/strimzi/duck/client
+  --output-package=github.com/apache/camel-k/v2/addons/strimzi/duck/client
 
 rm -r ./addons/strimzi/duck/client || true
 
-mv github.com/apache/camel-k/addons/strimzi/duck/client ./addons/strimzi/duck/
+mv github.com/apache/camel-k/v2/addons/strimzi/duck/client 
./addons/strimzi/duck/
 
 rm -r ./github.com
diff --git a/script/gen_crd/gen_crd_api.sh b/script/gen_crd/gen_crd_api.sh
index 35bef3640..29fe95c70 100755
--- a/script/gen_crd/gen_crd_api.sh
+++ b/script/gen_crd/gen_crd_api.sh
@@ -31,14 +31,14 @@ echo "Generating CRD API documentation..."
 go run github.com/tadayosi/gen-crd-api-reference-docs@v0.4.0-camel-k-2 \
     -config $location/gen-crd-api-config.json \
     -template-dir $location/template \
-    -api-dir "github.com/apache/camel-k/pkg/apis/camel/v1" \
+    -api-dir "github.com/apache/camel-k/v2/pkg/apis/camel/v1" \
     -out-file $crd_file_camel
 
 #go run /Users/david/projects/camel/gen-crd-api-reference-docs/main.go \
 go run github.com/tadayosi/gen-crd-api-reference-docs@v0.4.0-camel-k-2 \
     -config $location/gen-kamelets-crd-api-config.json \
     -template-dir $location/template \
-    -api-dir "github.com/apache/camel-k/pkg/apis/camel/v1alpha1" \
+    -api-dir "github.com/apache/camel-k/v2/pkg/apis/camel/v1alpha1" \
     -out-file $crd_file_kamelets
 
 echo "Generating CRD API documentation... Done."
diff --git a/script/gen_doc.sh b/script/gen_doc.sh
index 6594403ca..936c760e4 100755
--- a/script/gen_doc.sh
+++ b/script/gen_doc.sh
@@ -25,15 +25,16 @@ echo "Generating API documentation... done!"
 echo "Generating traits documentation..."
 cd $rootdir
 go run ./cmd/util/doc-gen \
-  --input-dirs github.com/apache/camel-k/pkg/apis/camel/v1/trait \
-  --input-dirs github.com/apache/camel-k/addons/keda \
-  --input-dirs github.com/apache/camel-k/addons/master \
-  --input-dirs github.com/apache/camel-k/addons/resume \
-  --input-dirs github.com/apache/camel-k/addons/threescale \
-  --input-dirs github.com/apache/camel-k/addons/tracing \
-  --input-dirs github.com/apache/camel-k/addons/telemetry \
-  --input-dirs github.com/apache/camel-k/addons/vault/aws \
-  --input-dirs github.com/apache/camel-k/addons/vault/gcp \
-  --input-dirs github.com/apache/camel-k/addons/vault/azure \
-  --input-dirs github.com/apache/camel-k/addons/vault/hashicorp
+  --input-dirs github.com/apache/camel-k/v2/pkg/apis/camel/v1/trait \
+  --input-dirs github.com/apache/camel-k/v2/addons/keda \
+  --input-dirs github.com/apache/camel-k/v2/addons/master \
+  --input-dirs github.com/apache/camel-k/v2/addons/resume \
+  --input-dirs github.com/apache/camel-k/v2/addons/strimzi \
+  --input-dirs github.com/apache/camel-k/v2/addons/threescale \
+  --input-dirs github.com/apache/camel-k/v2/addons/tracing \
+  --input-dirs github.com/apache/camel-k/v2/addons/telemetry \
+  --input-dirs github.com/apache/camel-k/v2/addons/vault/aws \
+  --input-dirs github.com/apache/camel-k/v2/addons/vault/gcp \
+  --input-dirs github.com/apache/camel-k/v2/addons/vault/azure \
+  --input-dirs github.com/apache/camel-k/v2/addons/vault/hashicorp
 echo "Generating traits documentation... done!"

Reply via email to