You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pc...@apache.org on 2023/03/06 08:31:12 UTC

[camel-k] 01/03: Issue-1330: Deprecating parameters.

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

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

commit 20991ed5064072a3ecf4793ab4b96b0dd4c38df5
Author: Michael Anstis <ma...@redhat.com>
AuthorDate: Thu Mar 2 20:31:26 2023 +0000

    Issue-1330: Deprecating parameters.
---
 helm/camel-k/crds/crd-kamelet.yaml          | 3 +++
 pkg/apis/camel/v1alpha1/jsonschema_types.go | 1 +
 2 files changed, 4 insertions(+)

diff --git a/helm/camel-k/crds/crd-kamelet.yaml b/helm/camel-k/crds/crd-kamelet.yaml
index 7a6f89f13..2a9a35c5e 100644
--- a/helm/camel-k/crds/crd-kamelet.yaml
+++ b/helm/camel-k/crds/crd-kamelet.yaml
@@ -94,6 +94,9 @@ spec:
                           description: default is a default value for undefined object
                             fields.
                           x-kubernetes-preserve-unknown-fields: true
+                        deprecated:
+                          type: boolean
+                          default: false
                         description:
                           type: string
                         enum:
diff --git a/pkg/apis/camel/v1alpha1/jsonschema_types.go b/pkg/apis/camel/v1alpha1/jsonschema_types.go
index 620128a16..c9cdc4362 100644
--- a/pkg/apis/camel/v1alpha1/jsonschema_types.go
+++ b/pkg/apis/camel/v1alpha1/jsonschema_types.go
@@ -26,6 +26,7 @@ import (
 
 type JSONSchemaProp struct {
 	ID          string `json:"id,omitempty"`
+	Deprecated  bool   `json:"deprecated,omitempty"`
 	Description string `json:"description,omitempty"`
 	Type        string `json:"type,omitempty"`
 	// format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated: