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 2022/01/07 13:48:19 UTC
[camel-k] 13/24: feat(api): deprecated IntegrationSpec Configuration
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 bab76070a5e5d52f6d1d1d17f1526f3eaa2b875f
Author: Pasquale Congiusti <pa...@gmail.com>
AuthorDate: Tue Dec 7 09:31:27 2021 +0100
feat(api): deprecated IntegrationSpec Configuration
We now favor camel/container traits
---
pkg/apis/camel/v1/integration_types.go | 23 ++++++++++++++---------
1 file changed, 14 insertions(+), 9 deletions(-)
diff --git a/pkg/apis/camel/v1/integration_types.go b/pkg/apis/camel/v1/integration_types.go
index cafaa57..71b38ec 100644
--- a/pkg/apis/camel/v1/integration_types.go
+++ b/pkg/apis/camel/v1/integration_types.go
@@ -32,15 +32,20 @@ type IntegrationSpec struct {
Flows []Flow `json:"flows,omitempty"`
Resources []ResourceSpec `json:"resources,omitempty"`
// Deprecated: use the IntegrationKit field
- Kit string `json:"kit,omitempty"`
- IntegrationKit *corev1.ObjectReference `json:"integrationKit,omitempty"`
- Dependencies []string `json:"dependencies,omitempty"`
- Profile TraitProfile `json:"profile,omitempty"`
- Traits map[string]TraitSpec `json:"traits,omitempty"`
- PodTemplate *PodSpecTemplate `json:"template,omitempty"`
- Configuration []ConfigurationSpec `json:"configuration,omitempty"`
- Repositories []string `json:"repositories,omitempty"`
- ServiceAccountName string `json:"serviceAccountName,omitempty"`
+ Kit string `json:"kit,omitempty"`
+ IntegrationKit *corev1.ObjectReference `json:"integrationKit,omitempty"`
+ Dependencies []string `json:"dependencies,omitempty"`
+ Profile TraitProfile `json:"profile,omitempty"`
+ Traits map[string]TraitSpec `json:"traits,omitempty"`
+ PodTemplate *PodSpecTemplate `json:"template,omitempty"`
+ // Deprecated:
+ // Use camel trait (camel.properties) to manage properties
+ // Use container trait (container.configs) to manage configs
+ // Use container trait (container.resources) to manage resources
+ // Use container trait (container.volumes) to manage volumes
+ Configuration []ConfigurationSpec `json:"configuration,omitempty"`
+ Repositories []string `json:"repositories,omitempty"`
+ ServiceAccountName string `json:"serviceAccountName,omitempty"`
}
// IntegrationStatus defines the observed state of Integration