From b1047636f8235f8659f77f1d3ddeb0bf9be42652 Mon Sep 17 00:00:00 2001 From: Martin Olsiak Date: Wed, 13 Sep 2023 14:22:29 +0200 Subject: [PATCH] chore: generated docs --- .../camel.apache.org_integrationplatforms.yaml | 14 ++++++++++++++ .../crd/bases/camel.apache.org_integrations.yaml | 7 +++++++ .../bases/camel.apache.org_kameletbindings.yaml | 7 +++++++ config/crd/bases/camel.apache.org_pipes.yaml | 7 +++++++ docs/modules/ROOT/partials/apis/camel-k-crds.adoc | 9 +++++++++ docs/modules/traits/pages/knative-service.adoc | 6 ++++++ helm/camel-k/crds/crd-integration-platform.yaml | 14 ++++++++++++++ helm/camel-k/crds/crd-integration.yaml | 7 +++++++ helm/camel-k/crds/crd-kamelet-binding.yaml | 7 +++++++ helm/camel-k/crds/crd-pipe.yaml | 7 +++++++ pkg/apis/camel/v1/trait/zz_generated.deepcopy.go | 7 +++++++ resources/traits.yaml | 4 ++++ 12 files changed, 96 insertions(+) diff --git a/config/crd/bases/camel.apache.org_integrationplatforms.yaml b/config/crd/bases/camel.apache.org_integrationplatforms.yaml index 489d1a39de..f65b8207a4 100644 --- a/config/crd/bases/camel.apache.org_integrationplatforms.yaml +++ b/config/crd/bases/camel.apache.org_integrationplatforms.yaml @@ -1258,6 +1258,13 @@ spec: knative-service: description: The configuration of Knative Service trait properties: + annotations: + additionalProperties: + type: string + description: 'The annotations added to route. This can be + used to set knative service specific annotations CLI usage + example: -t "knative-service.annotations.''haproxy.router.openshift.io/balance''=true"' + type: object auto: description: "Automatically deploy the integration as Knative service when all conditions hold: \n * Integration is using @@ -3023,6 +3030,13 @@ spec: knative-service: description: The configuration of Knative Service trait properties: + annotations: + additionalProperties: + type: string + description: 'The annotations added to route. This can be + used to set knative service specific annotations CLI usage + example: -t "knative-service.annotations.''haproxy.router.openshift.io/balance''=true"' + type: object auto: description: "Automatically deploy the integration as Knative service when all conditions hold: \n * Integration is using diff --git a/config/crd/bases/camel.apache.org_integrations.yaml b/config/crd/bases/camel.apache.org_integrations.yaml index a0fb500aca..7a41808ee7 100644 --- a/config/crd/bases/camel.apache.org_integrations.yaml +++ b/config/crd/bases/camel.apache.org_integrations.yaml @@ -7175,6 +7175,13 @@ spec: knative-service: description: The configuration of Knative Service trait properties: + annotations: + additionalProperties: + type: string + description: 'The annotations added to route. This can be + used to set knative service specific annotations CLI usage + example: -t "knative-service.annotations.''haproxy.router.openshift.io/balance''=true"' + type: object auto: description: "Automatically deploy the integration as Knative service when all conditions hold: \n * Integration is using diff --git a/config/crd/bases/camel.apache.org_kameletbindings.yaml b/config/crd/bases/camel.apache.org_kameletbindings.yaml index d6464e6551..d3c4b9a6f8 100644 --- a/config/crd/bases/camel.apache.org_kameletbindings.yaml +++ b/config/crd/bases/camel.apache.org_kameletbindings.yaml @@ -7466,6 +7466,13 @@ spec: knative-service: description: The configuration of Knative Service trait properties: + annotations: + additionalProperties: + type: string + description: 'The annotations added to route. This can + be used to set knative service specific annotations + CLI usage example: -t "knative-service.annotations.''haproxy.router.openshift.io/balance''=true"' + type: object auto: description: "Automatically deploy the integration as Knative service when all conditions hold: \n * Integration diff --git a/config/crd/bases/camel.apache.org_pipes.yaml b/config/crd/bases/camel.apache.org_pipes.yaml index bb6fbbb869..33fb3e7d13 100644 --- a/config/crd/bases/camel.apache.org_pipes.yaml +++ b/config/crd/bases/camel.apache.org_pipes.yaml @@ -7463,6 +7463,13 @@ spec: knative-service: description: The configuration of Knative Service trait properties: + annotations: + additionalProperties: + type: string + description: 'The annotations added to route. This can + be used to set knative service specific annotations + CLI usage example: -t "knative-service.annotations.''haproxy.router.openshift.io/balance''=true"' + type: object auto: description: "Automatically deploy the integration as Knative service when all conditions hold: \n * Integration diff --git a/docs/modules/ROOT/partials/apis/camel-k-crds.adoc b/docs/modules/ROOT/partials/apis/camel-k-crds.adoc index 736fe3e790..c5dba1aa09 100644 --- a/docs/modules/ROOT/partials/apis/camel-k-crds.adoc +++ b/docs/modules/ROOT/partials/apis/camel-k-crds.adoc @@ -6900,6 +6900,15 @@ are only relevant when the Camel route(s) use(s) an HTTP endpoint consumer. +|`annotations` + +map[string]string +| + + +The annotations added to route. +This can be used to set knative service specific annotations +CLI usage example: -t "knative-service.annotations.'haproxy.router.openshift.io/balance'=true" + |`class` + string | diff --git a/docs/modules/traits/pages/knative-service.adoc b/docs/modules/traits/pages/knative-service.adoc index e9729d059b..9782199f93 100755 --- a/docs/modules/traits/pages/knative-service.adoc +++ b/docs/modules/traits/pages/knative-service.adoc @@ -29,6 +29,12 @@ The following configuration options are available: | bool | Can be used to enable or disable a trait. All traits share this common property. +| knative-service.annotations +| map[string]string +| The annotations added to route. +This can be used to set knative service specific annotations +CLI usage example: -t "knative-service.annotations.'haproxy.router.openshift.io/balance'=true" + | knative-service.autoscaling-class | string | Configures the Knative autoscaling class property (e.g. to set `hpa.autoscaling.knative.dev` or `kpa.autoscaling.knative.dev` autoscaling). diff --git a/helm/camel-k/crds/crd-integration-platform.yaml b/helm/camel-k/crds/crd-integration-platform.yaml index 489d1a39de..f65b8207a4 100644 --- a/helm/camel-k/crds/crd-integration-platform.yaml +++ b/helm/camel-k/crds/crd-integration-platform.yaml @@ -1258,6 +1258,13 @@ spec: knative-service: description: The configuration of Knative Service trait properties: + annotations: + additionalProperties: + type: string + description: 'The annotations added to route. This can be + used to set knative service specific annotations CLI usage + example: -t "knative-service.annotations.''haproxy.router.openshift.io/balance''=true"' + type: object auto: description: "Automatically deploy the integration as Knative service when all conditions hold: \n * Integration is using @@ -3023,6 +3030,13 @@ spec: knative-service: description: The configuration of Knative Service trait properties: + annotations: + additionalProperties: + type: string + description: 'The annotations added to route. This can be + used to set knative service specific annotations CLI usage + example: -t "knative-service.annotations.''haproxy.router.openshift.io/balance''=true"' + type: object auto: description: "Automatically deploy the integration as Knative service when all conditions hold: \n * Integration is using diff --git a/helm/camel-k/crds/crd-integration.yaml b/helm/camel-k/crds/crd-integration.yaml index a0fb500aca..7a41808ee7 100644 --- a/helm/camel-k/crds/crd-integration.yaml +++ b/helm/camel-k/crds/crd-integration.yaml @@ -7175,6 +7175,13 @@ spec: knative-service: description: The configuration of Knative Service trait properties: + annotations: + additionalProperties: + type: string + description: 'The annotations added to route. This can be + used to set knative service specific annotations CLI usage + example: -t "knative-service.annotations.''haproxy.router.openshift.io/balance''=true"' + type: object auto: description: "Automatically deploy the integration as Knative service when all conditions hold: \n * Integration is using diff --git a/helm/camel-k/crds/crd-kamelet-binding.yaml b/helm/camel-k/crds/crd-kamelet-binding.yaml index d6464e6551..d3c4b9a6f8 100644 --- a/helm/camel-k/crds/crd-kamelet-binding.yaml +++ b/helm/camel-k/crds/crd-kamelet-binding.yaml @@ -7466,6 +7466,13 @@ spec: knative-service: description: The configuration of Knative Service trait properties: + annotations: + additionalProperties: + type: string + description: 'The annotations added to route. This can + be used to set knative service specific annotations + CLI usage example: -t "knative-service.annotations.''haproxy.router.openshift.io/balance''=true"' + type: object auto: description: "Automatically deploy the integration as Knative service when all conditions hold: \n * Integration diff --git a/helm/camel-k/crds/crd-pipe.yaml b/helm/camel-k/crds/crd-pipe.yaml index bb6fbbb869..33fb3e7d13 100644 --- a/helm/camel-k/crds/crd-pipe.yaml +++ b/helm/camel-k/crds/crd-pipe.yaml @@ -7463,6 +7463,13 @@ spec: knative-service: description: The configuration of Knative Service trait properties: + annotations: + additionalProperties: + type: string + description: 'The annotations added to route. This can + be used to set knative service specific annotations + CLI usage example: -t "knative-service.annotations.''haproxy.router.openshift.io/balance''=true"' + type: object auto: description: "Automatically deploy the integration as Knative service when all conditions hold: \n * Integration diff --git a/pkg/apis/camel/v1/trait/zz_generated.deepcopy.go b/pkg/apis/camel/v1/trait/zz_generated.deepcopy.go index 0371733701..505fbfd0a0 100644 --- a/pkg/apis/camel/v1/trait/zz_generated.deepcopy.go +++ b/pkg/apis/camel/v1/trait/zz_generated.deepcopy.go @@ -542,6 +542,13 @@ func (in *KameletsTrait) DeepCopy() *KameletsTrait { func (in *KnativeServiceTrait) DeepCopyInto(out *KnativeServiceTrait) { *out = *in in.Trait.DeepCopyInto(&out.Trait) + if in.Annotations != nil { + in, out := &in.Annotations, &out.Annotations + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } if in.Target != nil { in, out := &in.Target, &out.Target *out = new(int) diff --git a/resources/traits.yaml b/resources/traits.yaml index 64b2a0e0e6..5426e8202d 100755 --- a/resources/traits.yaml +++ b/resources/traits.yaml @@ -985,6 +985,10 @@ traits: type: bool description: Can be used to enable or disable a trait. All traits share this common property. + - name: annotations + type: map[string]string + description: 'The annotations added to route. This can be used to set knative + service specific annotations CLI usage example: -t "knative-service.annotations.''haproxy.router.openshift.io/balance''=true"' - name: autoscaling-class type: string description: Configures the Knative autoscaling class property (e.g. to set `hpa.autoscaling.knative.dev`