Skip to content

Commit 96d20ac

Browse files
committed
chore(api): deprecate profile
Closes #6578
1 parent 6f8323e commit 96d20ac

33 files changed

Lines changed: 100 additions & 42 deletions

docs/modules/ROOT/partials/apis/camel-k-crds.adoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2627,6 +2627,8 @@ a list of Camel dependencies used by this kit
26272627
26282628
the profile which is expected by this kit
26292629
2630+
Deprecated: may be removed in future releases.
2631+
26302632
|`traits` +
26312633
*xref:#_camel_apache_org_v1_IntegrationKitTraits[IntegrationKitTraits]*
26322634
|
@@ -3115,6 +3117,8 @@ what kind of cluster you're running (ie, plain Kubernetes or OpenShift)
31153117
the profile you wish to use. It will apply certain traits which are required by the specific profile chosen.
31163118
It usually relates the Cluster with the optional definition of special profiles (ie, Knative)
31173119
3120+
Deprecated: may be removed in future releases.
3121+
31183122
|`build` +
31193123
*xref:#_camel_apache_org_v1_IntegrationPlatformBuildSpec[IntegrationPlatformBuildSpec]*
31203124
|
@@ -3535,6 +3539,8 @@ the list of Camel or Maven dependencies required by the Integration
35353539
35363540
the profile needed to run this Integration
35373541
3542+
Deprecated: may be removed in future releases.
3543+
35383544
|`traits` +
35393545
*xref:#_camel_apache_org_v1_Traits[Traits]*
35403546
|
@@ -3643,6 +3649,8 @@ a list of dependencies needed by the application
36433649
36443650
the profile needed to run this Integration
36453651
3652+
Deprecated: may be removed in future releases.
3653+
36463654
|`traits` +
36473655
*xref:#_camel_apache_org_v1_Traits[Traits]*
36483656
|

helm/camel-k/crds/camel-k-crds.yaml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2828,7 +2828,10 @@ spec:
28282828
description: the container image as identified in the container registry
28292829
type: string
28302830
profile:
2831-
description: the profile which is expected by this kit
2831+
description: |-
2832+
the profile which is expected by this kit
2833+
2834+
Deprecated: may be removed in future releases.
28322835
type: string
28332836
repositories:
28342837
description: Maven repositories that can be used by the kit
@@ -3794,6 +3797,8 @@ spec:
37943797
description: |-
37953798
the profile you wish to use. It will apply certain traits which are required by the specific profile chosen.
37963799
It usually relates the Cluster with the optional definition of special profiles (ie, Knative)
3800+
3801+
Deprecated: may be removed in future releases.
37973802
type: string
37983803
traits:
37993804
description: list of traits to be executed for all the Integration/IntegrationKits
@@ -6318,6 +6323,8 @@ spec:
63186323
description: |-
63196324
the profile you wish to use. It will apply certain traits which are required by the specific profile chosen.
63206325
It usually relates the Cluster with the optional definition of special profiles (ie, Knative)
6326+
6327+
Deprecated: may be removed in future releases.
63216328
type: string
63226329
traits:
63236330
description: list of traits to be executed for all the Integration/IntegrationKits
@@ -13395,7 +13402,10 @@ spec:
1339513402
type: object
1339613403
x-kubernetes-map-type: atomic
1339713404
profile:
13398-
description: the profile needed to run this Integration
13405+
description: |-
13406+
the profile needed to run this Integration
13407+
13408+
Deprecated: may be removed in future releases.
1339913409
type: string
1340013410
replicas:
1340113411
default: 1
@@ -22764,7 +22774,10 @@ spec:
2276422774
description: The IntegrationPlatform watching this Integration
2276522775
type: string
2276622776
profile:
22767-
description: the profile needed to run this Integration
22777+
description: |-
22778+
the profile needed to run this Integration
22779+
22780+
Deprecated: may be removed in future releases.
2276822781
type: string
2276922782
replicas:
2277022783
description: the number of replicas
@@ -26328,7 +26341,10 @@ spec:
2632826341
type: object
2632926342
x-kubernetes-map-type: atomic
2633026343
profile:
26331-
description: the profile needed to run this Integration
26344+
description: |-
26345+
the profile needed to run this Integration
26346+
26347+
Deprecated: may be removed in future releases.
2633226348
type: string
2633326349
replicas:
2633426350
default: 1

pkg/apis/camel/v1/common_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ type FailureRecovery struct {
170170
}
171171

172172
// TraitProfile represents lists of traits that are enabled for the specific installation/integration.
173+
//
174+
// Deprecated: may be removed in future releases.
173175
type TraitProfile string
174176

175177
const (

pkg/apis/camel/v1/integration_types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ type IntegrationSpec struct {
6969
// the list of Camel or Maven dependencies required by the Integration
7070
Dependencies []string `json:"dependencies,omitempty"`
7171
// the profile needed to run this Integration
72+
//
73+
// Deprecated: may be removed in future releases.
7274
Profile TraitProfile `json:"profile,omitempty"`
7375
// the traits needed to run this Integration
7476
Traits Traits `json:"traits,omitempty"`
@@ -104,6 +106,8 @@ type IntegrationStatus struct {
104106
// a list of dependencies needed by the application
105107
Dependencies []string `json:"dependencies,omitempty"`
106108
// the profile needed to run this Integration
109+
//
110+
// Deprecated: may be removed in future releases.
107111
Profile TraitProfile `json:"profile,omitempty"`
108112
// the traits executed for the Integration
109113
Traits *Traits `json:"traits,omitempty"`

pkg/apis/camel/v1/integrationkit_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ type IntegrationKitSpec struct {
6060
// a list of Camel dependencies used by this kit
6161
Dependencies []string `json:"dependencies,omitempty"`
6262
// the profile which is expected by this kit
63+
//
64+
// Deprecated: may be removed in future releases.
6365
Profile TraitProfile `json:"profile,omitempty"`
6466
// traits that the kit will execute
6567
Traits IntegrationKitTraits `json:"traits,omitempty"`

pkg/apis/camel/v1/integrationplatform_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ type IntegrationPlatformSpec struct {
3131
Cluster IntegrationPlatformCluster `json:"cluster,omitempty"`
3232
// the profile you wish to use. It will apply certain traits which are required by the specific profile chosen.
3333
// It usually relates the Cluster with the optional definition of special profiles (ie, Knative)
34+
//
35+
// Deprecated: may be removed in future releases.
3436
Profile TraitProfile `json:"profile,omitempty"`
3537
// specify how to build the Integration/IntegrationKits
3638
Build IntegrationPlatformBuildSpec `json:"build,omitempty"`

pkg/client/camel/applyconfiguration/camel/v1/integrationkitspec.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/client/camel/applyconfiguration/camel/v1/integrationplatformspec.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/client/camel/applyconfiguration/camel/v1/integrationspec.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/client/camel/applyconfiguration/camel/v1/integrationstatus.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)