diff --git a/config/crd/bases/camel.apache.org_kameletbindings.yaml b/config/crd/bases/camel.apache.org_kameletbindings.yaml index f7b5c6205b..abad45fdbd 100644 --- a/config/crd/bases/camel.apache.org_kameletbindings.yaml +++ b/config/crd/bases/camel.apache.org_kameletbindings.yaml @@ -7769,6 +7769,8 @@ spec: description: default is a default value for undefined object fields. x-kubernetes-preserve-unknown-fields: true + deprecated: + type: boolean description: type: string enum: @@ -7986,6 +7988,8 @@ spec: description: default is a default value for undefined object fields. x-kubernetes-preserve-unknown-fields: true + deprecated: + type: boolean description: type: string enum: @@ -8208,6 +8212,8 @@ spec: description: default is a default value for undefined object fields. x-kubernetes-preserve-unknown-fields: true + deprecated: + type: boolean description: type: string enum: diff --git a/config/crd/bases/camel.apache.org_kamelets.yaml b/config/crd/bases/camel.apache.org_kamelets.yaml index 7a6f89f13a..20b9230b4e 100644 --- a/config/crd/bases/camel.apache.org_kamelets.yaml +++ b/config/crd/bases/camel.apache.org_kamelets.yaml @@ -94,6 +94,8 @@ spec: description: default is a default value for undefined object fields. x-kubernetes-preserve-unknown-fields: true + deprecated: + type: boolean description: type: string enum: @@ -311,6 +313,8 @@ spec: description: default is a default value for undefined object fields. x-kubernetes-preserve-unknown-fields: true + deprecated: + type: boolean description: type: string enum: diff --git a/docs/modules/ROOT/partials/apis/kamelets-crds.adoc b/docs/modules/ROOT/partials/apis/kamelets-crds.adoc index 557e5f6ed2..c9daa48e7d 100644 --- a/docs/modules/ROOT/partials/apis/kamelets-crds.adoc +++ b/docs/modules/ROOT/partials/apis/kamelets-crds.adoc @@ -438,6 +438,13 @@ string +|`deprecated` + +bool +| + + + + |`description` + string | diff --git a/helm/camel-k/crds/crd-kamelet-binding.yaml b/helm/camel-k/crds/crd-kamelet-binding.yaml index f7b5c6205b..abad45fdbd 100644 --- a/helm/camel-k/crds/crd-kamelet-binding.yaml +++ b/helm/camel-k/crds/crd-kamelet-binding.yaml @@ -7769,6 +7769,8 @@ spec: description: default is a default value for undefined object fields. x-kubernetes-preserve-unknown-fields: true + deprecated: + type: boolean description: type: string enum: @@ -7986,6 +7988,8 @@ spec: description: default is a default value for undefined object fields. x-kubernetes-preserve-unknown-fields: true + deprecated: + type: boolean description: type: string enum: @@ -8208,6 +8212,8 @@ spec: description: default is a default value for undefined object fields. x-kubernetes-preserve-unknown-fields: true + deprecated: + type: boolean description: type: string enum: diff --git a/helm/camel-k/crds/crd-kamelet.yaml b/helm/camel-k/crds/crd-kamelet.yaml index 7a6f89f13a..20b9230b4e 100644 --- a/helm/camel-k/crds/crd-kamelet.yaml +++ b/helm/camel-k/crds/crd-kamelet.yaml @@ -94,6 +94,8 @@ spec: description: default is a default value for undefined object fields. x-kubernetes-preserve-unknown-fields: true + deprecated: + type: boolean description: type: string enum: @@ -311,6 +313,8 @@ spec: description: default is a default value for undefined object fields. x-kubernetes-preserve-unknown-fields: true + deprecated: + type: boolean description: type: string enum: diff --git a/pkg/apis/camel/v1alpha1/jsonschema_types.go b/pkg/apis/camel/v1alpha1/jsonschema_types.go index 620128a16e..c9cdc4362e 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: diff --git a/pkg/client/camel/applyconfiguration/camel/v1alpha1/jsonschemaprop.go b/pkg/client/camel/applyconfiguration/camel/v1alpha1/jsonschemaprop.go index baf451cb5c..68aee96a46 100644 --- a/pkg/client/camel/applyconfiguration/camel/v1alpha1/jsonschemaprop.go +++ b/pkg/client/camel/applyconfiguration/camel/v1alpha1/jsonschemaprop.go @@ -27,6 +27,7 @@ import ( // with apply. type JSONSchemaPropApplyConfiguration struct { ID *string `json:"id,omitempty"` + Deprecated *bool `json:"deprecated,omitempty"` Description *string `json:"description,omitempty"` Type *string `json:"type,omitempty"` Format *string `json:"format,omitempty"` @@ -65,6 +66,14 @@ func (b *JSONSchemaPropApplyConfiguration) WithID(value string) *JSONSchemaPropA return b } +// WithDeprecated sets the Deprecated field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Deprecated field is set to the value of the last call. +func (b *JSONSchemaPropApplyConfiguration) WithDeprecated(value bool) *JSONSchemaPropApplyConfiguration { + b.Deprecated = &value + return b +} + // WithDescription sets the Description field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the Description field is set to the value of the last call.