Skip to content

Commit

Permalink
chore(trait): hide platform trait gc
Browse files Browse the repository at this point in the history
  • Loading branch information
squakez committed Nov 16, 2024
1 parent 2fdbed2 commit 1387cfe
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 23 deletions.
1 change: 0 additions & 1 deletion docs/modules/ROOT/nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
** xref:traits:deployer.adoc[Deployer]
** xref:traits:deployment.adoc[Deployment]
** xref:traits:environment.adoc[Environment]
** xref:traits:gc.adoc[Gc]
** xref:traits:gcp-secret-manager.adoc[Gcp Secret Manager]
** xref:traits:hashicorp-vault.adoc[Hashicorp Vault]
** xref:traits:health.adoc[Health]
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/partials/apis/camel-k-crds.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7075,7 +7075,7 @@ The GC Trait garbage-collects all resources that are no longer necessary upon in
Discovery client cache to be used, either `disabled`, `disk` or `memory` (default `memory`).
Deprecated: to be removed from trait configuration.
Deprecated: no longer in use.
|===
Expand Down
14 changes: 7 additions & 7 deletions helm/camel-k/crds/camel-k-crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4298,7 +4298,7 @@ spec:
discoveryCache:
description: |-
Discovery client cache to be used, either `disabled`, `disk` or `memory` (default `memory`).
Deprecated: to be removed from trait configuration.
Deprecated: no longer in use.
enum:
- disabled
- disk
Expand Down Expand Up @@ -6487,7 +6487,7 @@ spec:
discoveryCache:
description: |-
Discovery client cache to be used, either `disabled`, `disk` or `memory` (default `memory`).
Deprecated: to be removed from trait configuration.
Deprecated: no longer in use.
enum:
- disabled
- disk
Expand Down Expand Up @@ -8579,7 +8579,7 @@ spec:
discoveryCache:
description: |-
Discovery client cache to be used, either `disabled`, `disk` or `memory` (default `memory`).
Deprecated: to be removed from trait configuration.
Deprecated: no longer in use.
enum:
- disabled
- disk
Expand Down Expand Up @@ -10647,7 +10647,7 @@ spec:
discoveryCache:
description: |-
Discovery client cache to be used, either `disabled`, `disk` or `memory` (default `memory`).
Deprecated: to be removed from trait configuration.
Deprecated: no longer in use.
enum:
- disabled
- disk
Expand Down Expand Up @@ -19096,7 +19096,7 @@ spec:
discoveryCache:
description: |-
Discovery client cache to be used, either `disabled`, `disk` or `memory` (default `memory`).
Deprecated: to be removed from trait configuration.
Deprecated: no longer in use.
enum:
- disabled
- disk
Expand Down Expand Up @@ -21091,7 +21091,7 @@ spec:
discoveryCache:
description: |-
Discovery client cache to be used, either `disabled`, `disk` or `memory` (default `memory`).
Deprecated: to be removed from trait configuration.
Deprecated: no longer in use.
enum:
- disabled
- disk
Expand Down Expand Up @@ -30917,7 +30917,7 @@ spec:
discoveryCache:
description: |-
Discovery client cache to be used, either `disabled`, `disk` or `memory` (default `memory`).
Deprecated: to be removed from trait configuration.
Deprecated: no longer in use.
enum:
- disabled
- disk
Expand Down
9 changes: 2 additions & 7 deletions pkg/apis/camel/v1/trait/gc.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,13 @@ package trait
// The GC Trait garbage-collects all resources that are no longer necessary upon integration updates.
//
// +camel-k:trait=gc.
// +camel-k:internal.
type GCTrait struct {
Trait `property:",squash" json:",inline"`
// Discovery client cache to be used, either `disabled`, `disk` or `memory` (default `memory`).
// Deprecated: to be removed from trait configuration.
// Deprecated: no longer in use.
DiscoveryCache *DiscoveryCacheType `property:"discovery-cache" json:"discoveryCache,omitempty"`
}

// +kubebuilder:validation:Enum=disabled;disk;memory
type DiscoveryCacheType string

const (
DisabledDiscoveryCache DiscoveryCacheType = "disabled"
DiskDiscoveryCache DiscoveryCacheType = "disk"
MemoryDiscoveryCache DiscoveryCacheType = "memory"
)
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,7 @@ spec:
discoveryCache:
description: |-
Discovery client cache to be used, either `disabled`, `disk` or `memory` (default `memory`).
Deprecated: to be removed from trait configuration.
Deprecated: no longer in use.
enum:
- disabled
- disk
Expand Down Expand Up @@ -3259,7 +3259,7 @@ spec:
discoveryCache:
description: |-
Discovery client cache to be used, either `disabled`, `disk` or `memory` (default `memory`).
Deprecated: to be removed from trait configuration.
Deprecated: no longer in use.
enum:
- disabled
- disk
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ spec:
discoveryCache:
description: |-
Discovery client cache to be used, either `disabled`, `disk` or `memory` (default `memory`).
Deprecated: to be removed from trait configuration.
Deprecated: no longer in use.
enum:
- disabled
- disk
Expand Down Expand Up @@ -3007,7 +3007,7 @@ spec:
discoveryCache:
description: |-
Discovery client cache to be used, either `disabled`, `disk` or `memory` (default `memory`).
Deprecated: to be removed from trait configuration.
Deprecated: no longer in use.
enum:
- disabled
- disk
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7299,7 +7299,7 @@ spec:
discoveryCache:
description: |-
Discovery client cache to be used, either `disabled`, `disk` or `memory` (default `memory`).
Deprecated: to be removed from trait configuration.
Deprecated: no longer in use.
enum:
- disabled
- disk
Expand Down Expand Up @@ -9294,7 +9294,7 @@ spec:
discoveryCache:
description: |-
Discovery client cache to be used, either `disabled`, `disk` or `memory` (default `memory`).
Deprecated: to be removed from trait configuration.
Deprecated: no longer in use.
enum:
- disabled
- disk
Expand Down
2 changes: 1 addition & 1 deletion pkg/resources/config/crd/bases/camel.apache.org_pipes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7364,7 +7364,7 @@ spec:
discoveryCache:
description: |-
Discovery client cache to be used, either `disabled`, `disk` or `memory` (default `memory`).
Deprecated: to be removed from trait configuration.
Deprecated: no longer in use.
enum:
- disabled
- disk
Expand Down

0 comments on commit 1387cfe

Please sign in to comment.