This is an automated email from the ASF dual-hosted git repository.
gfournier pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 3f158203e90 CAMEL-21278: Remove unused code in Trait Model
3f158203e90 is described below
commit 3f158203e90f9daa1dc097c705fd0cec32286221
Author: Gaelle Fournier <[email protected]>
AuthorDate: Wed Oct 2 10:42:50 2024 +0200
CAMEL-21278: Remove unused code in Trait Model
(1st part of CAMEL-21278)
---
.../commands/kubernetes/traits/model/Builder.java | 351 ---------------------
.../kubernetes/traits/model/Configuration.java | 51 ---
.../kubernetes/traits/model/Environment.java | 26 --
.../commands/kubernetes/traits/model/Knative.java | 28 +-
.../commands/kubernetes/traits/model/Service.java | 13 -
.../commands/kubernetes/traits/model/Traits.java | 14 -
6 files changed, 1 insertion(+), 482 deletions(-)
diff --git
a/dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/traits/model/Builder.java
b/dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/traits/model/Builder.java
deleted file mode 100644
index cdd99c0df20..00000000000
---
a/dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/traits/model/Builder.java
+++ /dev/null
@@ -1,351 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.camel.dsl.jbang.core.commands.kubernetes.traits.model;
-
-import java.util.List;
-import java.util.Map;
-
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyDescription;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import com.fasterxml.jackson.annotation.JsonSetter;
-import com.fasterxml.jackson.annotation.JsonValue;
-import com.fasterxml.jackson.annotation.Nulls;
-
-@JsonInclude(JsonInclude.Include.NON_NULL)
-@JsonPropertyOrder({
- "annotations", "baseImage", "enabled", "incrementalImageBuild",
"limitCPU", "limitMemory",
- "mavenProfiles", "nodeSelector", "orderStrategy", "platforms",
"properties", "requestCPU", "requestMemory", "strategy",
- "tasks", "tasksFilter", "tasksLimitCPU", "tasksLimitMemory",
"tasksRequestCPU", "tasksRequestMemory", "verbose" })
-public class Builder {
- @JsonProperty("annotations")
- @JsonPropertyDescription("When using `pod` strategy, annotation to use for
the builder pod.")
- @JsonSetter(
- nulls = Nulls.SKIP)
- private Map<String, String> annotations;
- @JsonProperty("baseImage")
- @JsonPropertyDescription("Specify a base image. In order to have the
application working properly it must be a container image which has a Java JDK
installed and ready to use on path (ie `/usr/bin/java`).")
- @JsonSetter(
- nulls = Nulls.SKIP)
- private String baseImage;
- @JsonProperty("enabled")
- @JsonPropertyDescription("Can be used to enable or disable a trait.")
- @JsonSetter(
- nulls = Nulls.SKIP)
- private Boolean enabled;
- @JsonProperty("incrementalImageBuild")
- @JsonPropertyDescription("Use the incremental image build option, to reuse
existing containers (default `true`)")
- @JsonSetter(
- nulls = Nulls.SKIP)
- private Boolean incrementalImageBuild;
- @JsonProperty("limitCPU")
- @JsonPropertyDescription("When using `pod` strategy, the maximum amount of
CPU required by the pod builder. Deprecated: use TasksRequestCPU instead with
task name `builder`.")
- @JsonSetter(
- nulls = Nulls.SKIP)
- private String limitCPU;
- @JsonProperty("limitMemory")
- @JsonPropertyDescription("When using `pod` strategy, the maximum amount of
memory required by the pod builder. Deprecated: use TasksRequestCPU instead
with task name `builder`.")
- @JsonSetter(
- nulls = Nulls.SKIP)
- private String limitMemory;
- @JsonProperty("mavenProfiles")
- @JsonPropertyDescription("A list of references pointing to
configmaps/secrets that contains a maven profile. This configmap/secret is a
resource of the IntegrationKit created, therefore it needs to be present in the
namespace where the operator is going to create the IntegrationKit. The content
of the maven profile is expected to be a text containing a valid maven profile
starting with `<profile>` and ending with `</profile>` that will be integrated
as an inline profile in the POM. S [...]
- @JsonSetter(
- nulls = Nulls.SKIP)
- private List<String> mavenProfiles;
- @JsonProperty("nodeSelector")
- @JsonPropertyDescription("Defines a set of nodes the builder pod is
eligible to be scheduled on, based on labels on the node.")
- @JsonSetter(
- nulls = Nulls.SKIP)
- private Map<String, String> nodeSelector;
- @JsonProperty("orderStrategy")
- @JsonPropertyDescription("The build order strategy to use, either
`dependencies`, `fifo` or `sequential` (default is the platform default)")
- @JsonSetter(
- nulls = Nulls.SKIP)
- private OrderStrategy orderStrategy;
- @JsonProperty("platforms")
- @JsonPropertyDescription("The list of manifest platforms to use to build a
container image (default `linux/amd64`).")
- @JsonSetter(
- nulls = Nulls.SKIP)
- private List<String> platforms;
- @JsonProperty("properties")
- @JsonPropertyDescription("A list of properties to be provided to the build
task")
- @JsonSetter(
- nulls = Nulls.SKIP)
- private List<String> properties;
- @JsonProperty("requestCPU")
- @JsonPropertyDescription("When using `pod` strategy, the minimum amount of
CPU required by the pod builder. Deprecated: use TasksRequestCPU instead with
task name `builder`.")
- @JsonSetter(
- nulls = Nulls.SKIP)
- private String requestCPU;
- @JsonProperty("requestMemory")
- @JsonPropertyDescription("When using `pod` strategy, the minimum amount of
memory required by the pod builder. Deprecated: use TasksRequestCPU instead
with task name `builder`.")
- @JsonSetter(
- nulls = Nulls.SKIP)
- private String requestMemory;
- @JsonProperty("strategy")
- @JsonPropertyDescription("The strategy to use, either `pod` or `routine`
(default `routine`)")
- @JsonSetter(
- nulls = Nulls.SKIP)
- private Strategy strategy;
- @JsonProperty("tasks")
- @JsonPropertyDescription("A list of tasks to be executed (available only
when using `pod` strategy) with format
`<name>;<container-image>;<container-command>`.")
- @JsonSetter(
- nulls = Nulls.SKIP)
- private List<String> tasks;
- @JsonProperty("tasksFilter")
- @JsonPropertyDescription("A list of tasks sorted by the order of execution
in a csv format, ie, `<taskName1>,<taskName2>,...`. Mind that you must include
also the operator tasks (`builder`, `quarkus-native`, `package`, `jib`, `s2i`)
if you need to execute them. Useful only with `pod` strategy.")
- @JsonSetter(
- nulls = Nulls.SKIP)
- private String tasksFilter;
- @JsonProperty("tasksLimitCPU")
- @JsonPropertyDescription("A list of limit cpu configuration for the
specific task with format `<task-name>:<limit-cpu-conf>`.")
- @JsonSetter(
- nulls = Nulls.SKIP)
- private List<String> tasksLimitCPU;
- @JsonProperty("tasksLimitMemory")
- @JsonPropertyDescription("A list of limit memory configuration for the
specific task with format `<task-name>:<limit-memory-conf>`.")
- @JsonSetter(
- nulls = Nulls.SKIP)
- private List<String> tasksLimitMemory;
- @JsonProperty("tasksRequestCPU")
- @JsonPropertyDescription("A list of request cpu configuration for the
specific task with format `<task-name>:<request-cpu-conf>`.")
- @JsonSetter(
- nulls = Nulls.SKIP)
- private List<String> tasksRequestCPU;
- @JsonProperty("tasksRequestMemory")
- @JsonPropertyDescription("A list of request memory configuration for the
specific task with format `<task-name>:<request-memory-conf>`.")
- @JsonSetter(
- nulls = Nulls.SKIP)
- private List<String> tasksRequestMemory;
- @JsonProperty("verbose")
- @JsonPropertyDescription("Enable verbose logging on build components that
support it (e.g. Kaniko build pod). Deprecated no longer in use")
- @JsonSetter(
- nulls = Nulls.SKIP)
- private Boolean verbose;
-
- public Builder() {
- }
-
- public Map<String, String> getAnnotations() {
- return this.annotations;
- }
-
- public void setAnnotations(Map<String, String> annotations) {
- this.annotations = annotations;
- }
-
- public String getBaseImage() {
- return this.baseImage;
- }
-
- public void setBaseImage(String baseImage) {
- this.baseImage = baseImage;
- }
-
- public Boolean getEnabled() {
- return this.enabled;
- }
-
- public void setEnabled(Boolean enabled) {
- this.enabled = enabled;
- }
-
- public Boolean getIncrementalImageBuild() {
- return this.incrementalImageBuild;
- }
-
- public void setIncrementalImageBuild(Boolean incrementalImageBuild) {
- this.incrementalImageBuild = incrementalImageBuild;
- }
-
- public String getLimitCPU() {
- return this.limitCPU;
- }
-
- public void setLimitCPU(String limitCPU) {
- this.limitCPU = limitCPU;
- }
-
- public String getLimitMemory() {
- return this.limitMemory;
- }
-
- public void setLimitMemory(String limitMemory) {
- this.limitMemory = limitMemory;
- }
-
- public List<String> getMavenProfiles() {
- return this.mavenProfiles;
- }
-
- public void setMavenProfiles(List<String> mavenProfiles) {
- this.mavenProfiles = mavenProfiles;
- }
-
- public Map<String, String> getNodeSelector() {
- return this.nodeSelector;
- }
-
- public void setNodeSelector(Map<String, String> nodeSelector) {
- this.nodeSelector = nodeSelector;
- }
-
- public OrderStrategy getOrderStrategy() {
- return this.orderStrategy;
- }
-
- public void setOrderStrategy(OrderStrategy orderStrategy) {
- this.orderStrategy = orderStrategy;
- }
-
- public List<String> getPlatforms() {
- return this.platforms;
- }
-
- public void setPlatforms(List<String> platforms) {
- this.platforms = platforms;
- }
-
- public List<String> getProperties() {
- return this.properties;
- }
-
- public void setProperties(List<String> properties) {
- this.properties = properties;
- }
-
- public String getRequestCPU() {
- return this.requestCPU;
- }
-
- public void setRequestCPU(String requestCPU) {
- this.requestCPU = requestCPU;
- }
-
- public String getRequestMemory() {
- return this.requestMemory;
- }
-
- public void setRequestMemory(String requestMemory) {
- this.requestMemory = requestMemory;
- }
-
- public Strategy getStrategy() {
- return this.strategy;
- }
-
- public void setStrategy(Strategy strategy) {
- this.strategy = strategy;
- }
-
- public List<String> getTasks() {
- return this.tasks;
- }
-
- public void setTasks(List<String> tasks) {
- this.tasks = tasks;
- }
-
- public String getTasksFilter() {
- return this.tasksFilter;
- }
-
- public void setTasksFilter(String tasksFilter) {
- this.tasksFilter = tasksFilter;
- }
-
- public List<String> getTasksLimitCPU() {
- return this.tasksLimitCPU;
- }
-
- public void setTasksLimitCPU(List<String> tasksLimitCPU) {
- this.tasksLimitCPU = tasksLimitCPU;
- }
-
- public List<String> getTasksLimitMemory() {
- return this.tasksLimitMemory;
- }
-
- public void setTasksLimitMemory(List<String> tasksLimitMemory) {
- this.tasksLimitMemory = tasksLimitMemory;
- }
-
- public List<String> getTasksRequestCPU() {
- return this.tasksRequestCPU;
- }
-
- public void setTasksRequestCPU(List<String> tasksRequestCPU) {
- this.tasksRequestCPU = tasksRequestCPU;
- }
-
- public List<String> getTasksRequestMemory() {
- return this.tasksRequestMemory;
- }
-
- public void setTasksRequestMemory(List<String> tasksRequestMemory) {
- this.tasksRequestMemory = tasksRequestMemory;
- }
-
- public Boolean getVerbose() {
- return this.verbose;
- }
-
- public void setVerbose(Boolean verbose) {
- this.verbose = verbose;
- }
-
- public enum OrderStrategy {
- @JsonProperty("dependencies")
- DEPENDENCIES("dependencies"),
- @JsonProperty("fifo")
- FIFO("fifo"),
- @JsonProperty("sequential")
- SEQUENTIAL("sequential");
-
- private final String value;
-
- OrderStrategy(String value) {
- this.value = value;
- }
-
- @JsonValue
- public String getValue() {
- return this.value;
- }
- }
-
- public enum Strategy {
- @JsonProperty("pod")
- POD("pod"),
- @JsonProperty("routine")
- ROUTINE("routine");
-
- private final String value;
-
- Strategy(String value) {
- this.value = value;
- }
-
- @JsonValue
- public String getValue() {
- return this.value;
- }
- }
-}
diff --git
a/dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/traits/model/Configuration.java
b/dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/traits/model/Configuration.java
deleted file mode 100644
index ac0a0df2033..00000000000
---
a/dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/traits/model/Configuration.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.camel.dsl.jbang.core.commands.kubernetes.traits.model;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import com.fasterxml.jackson.annotation.JsonAnyGetter;
-import com.fasterxml.jackson.annotation.JsonAnySetter;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonInclude;
-
-@JsonInclude(JsonInclude.Include.NON_NULL)
-public class Configuration {
-
- public Configuration() {
- }
-
- @JsonIgnore
- private Map<String, Object> additionalProperties = new HashMap<>();
-
- @JsonAnyGetter
- public Map<String, Object> getAdditionalProperties() {
- return this.additionalProperties;
- }
-
- @JsonAnySetter
- public void setAdditionalProperties(Map<String, Object>
additionalProperties) {
- this.additionalProperties = additionalProperties;
- }
-
- @JsonAnySetter
- public void setAdditionalProperty(String key, Object value) {
- this.additionalProperties.put(key, value);
- }
-}
diff --git
a/dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/traits/model/Environment.java
b/dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/traits/model/Environment.java
index da2dd01c596..a352c864993 100644
---
a/dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/traits/model/Environment.java
+++
b/dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/traits/model/Environment.java
@@ -29,21 +29,11 @@ import com.fasterxml.jackson.annotation.Nulls;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({ "containerMeta", "enabled", "httpProxy", "vars" })
public class Environment {
- @JsonProperty("containerMeta")
- @JsonPropertyDescription("Enables injection of `NAMESPACE` and `POD_NAME`
environment variables (default `true`)")
- @JsonSetter(
- nulls = Nulls.SKIP)
- private Boolean containerMeta;
@JsonProperty("enabled")
@JsonPropertyDescription("Can be used to enable or disable a trait.")
@JsonSetter(
nulls = Nulls.SKIP)
private Boolean enabled;
- @JsonProperty("httpProxy")
- @JsonPropertyDescription("Propagates the `HTTP_PROXY`, `HTTPS_PROXY` and
`NO_PROXY` environment variables (default `true`)")
- @JsonSetter(
- nulls = Nulls.SKIP)
- private Boolean httpProxy;
@JsonProperty("vars")
@JsonPropertyDescription("A list of environment variables to be added to
the integration container. The syntax is KEY=VALUE, e.g., `MY_VAR=\"my
value\"`. These take precedence over the previously defined environment
variables.")
@JsonSetter(
@@ -53,14 +43,6 @@ public class Environment {
public Environment() {
}
- public Boolean getContainerMeta() {
- return this.containerMeta;
- }
-
- public void setContainerMeta(Boolean containerMeta) {
- this.containerMeta = containerMeta;
- }
-
public Boolean getEnabled() {
return this.enabled;
}
@@ -69,14 +51,6 @@ public class Environment {
this.enabled = enabled;
}
- public Boolean getHttpProxy() {
- return this.httpProxy;
- }
-
- public void setHttpProxy(Boolean httpProxy) {
- this.httpProxy = httpProxy;
- }
-
public List<String> getVars() {
return this.vars;
}
diff --git
a/dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/traits/model/Knative.java
b/dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/traits/model/Knative.java
index 71ec3cc806f..fcbf7624ae3 100644
---
a/dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/traits/model/Knative.java
+++
b/dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/traits/model/Knative.java
@@ -29,7 +29,7 @@ import com.fasterxml.jackson.annotation.Nulls;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"auto", "channelSinks", "channelSources", "configuration", "enabled",
"endpointSinks", "endpointSources",
- "eventSinks", "eventSources", "filterEventType",
"filterSourceChannels", "filters", "namespaceLabel", "sinkBinding" })
+ "eventSinks", "eventSources", "filterEventType", "filters",
"sinkBinding" })
public class Knative {
@JsonProperty("auto")
@JsonPropertyDescription("Enable automatic discovery of all trait
properties.")
@@ -81,21 +81,11 @@ public class Knative {
@JsonSetter(
nulls = Nulls.SKIP)
private Boolean filterEventType;
- @JsonProperty("filterSourceChannels")
- @JsonPropertyDescription("Enables filtering on events based on the header
\"ce-knativehistory\". Since this header has been removed in newer versions of
Knative, filtering is disabled by default.")
- @JsonSetter(
- nulls = Nulls.SKIP)
- private Boolean filterSourceChannels;
@JsonProperty("filters")
@JsonPropertyDescription("Sets filter attributes on the event stream (such
as event type, source, subject and so on). A list of key-value pairs that
represent filter attributes and its values. The syntax is KEY=VALUE, e.g.,
`source=\"my.source\"`. Filter attributes get set on the Knative trigger that
is being created as part of this integration.")
@JsonSetter(
nulls = Nulls.SKIP)
private List<String> filters;
- @JsonProperty("namespaceLabel")
- @JsonPropertyDescription("Enables the camel-k-operator to set the
\"bindings.knative.dev/include=true\" label to the namespace As Knative
requires this label to perform injection of K_SINK URL into the service. If
this is false, the integration pod may start and fail, read the SinkBinding
Knative documentation. (default: true)")
- @JsonSetter(
- nulls = Nulls.SKIP)
- private Boolean namespaceLabel;
@JsonProperty("sinkBinding")
@JsonPropertyDescription("Allows binding the camel route to a sink via a
Knative SinkBinding resource. This can be used when the camel route targets a
single sink. It's enabled by default when the integration targets a single sink
(except when the integration is owned by a Knative source).")
@JsonSetter(
@@ -185,14 +175,6 @@ public class Knative {
this.filterEventType = filterEventType;
}
- public Boolean getFilterSourceChannels() {
- return this.filterSourceChannels;
- }
-
- public void setFilterSourceChannels(Boolean filterSourceChannels) {
- this.filterSourceChannels = filterSourceChannels;
- }
-
public List<String> getFilters() {
return this.filters;
}
@@ -201,14 +183,6 @@ public class Knative {
this.filters = filters;
}
- public Boolean getNamespaceLabel() {
- return this.namespaceLabel;
- }
-
- public void setNamespaceLabel(Boolean namespaceLabel) {
- this.namespaceLabel = namespaceLabel;
- }
-
public Boolean getSinkBinding() {
return this.sinkBinding;
}
diff --git
a/dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/traits/model/Service.java
b/dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/traits/model/Service.java
index e93ce659672..c0cf52a6ae5 100644
---
a/dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/traits/model/Service.java
+++
b/dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/traits/model/Service.java
@@ -38,11 +38,6 @@ public class Service {
@JsonSetter(
nulls = Nulls.SKIP)
private Boolean enabled;
- @JsonProperty("nodePort")
- @JsonPropertyDescription("Enable Service to be exposed as NodePort
(default `false`). Deprecated: Use service type instead.")
- @JsonSetter(
- nulls = Nulls.SKIP)
- private Boolean nodePort;
@JsonProperty("type")
@JsonPropertyDescription("The type of service to be used, either
'ClusterIP', 'NodePort' or 'LoadBalancer'.")
@JsonSetter(
@@ -68,14 +63,6 @@ public class Service {
this.enabled = enabled;
}
- public Boolean getNodePort() {
- return this.nodePort;
- }
-
- public void setNodePort(Boolean nodePort) {
- this.nodePort = nodePort;
- }
-
public Type getType() {
return this.type;
}
diff --git
a/dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/traits/model/Traits.java
b/dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/traits/model/Traits.java
index a2261676d5b..608db798cb1 100644
---
a/dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/traits/model/Traits.java
+++
b/dsl/camel-jbang/camel-jbang-plugin-kubernetes/src/main/java/org/apache/camel/dsl/jbang/core/commands/kubernetes/traits/model/Traits.java
@@ -38,12 +38,6 @@ public class Traits {
nulls = Nulls.SKIP)
private Map<String, Addons> addons;
- @JsonProperty("builder")
- @JsonPropertyDescription("The configuration of Builder trait")
- @JsonSetter(
- nulls = Nulls.SKIP)
- private Builder builder;
-
@JsonProperty("camel")
@JsonPropertyDescription("The configuration of Camel trait")
@JsonSetter(
@@ -117,14 +111,6 @@ public class Traits {
this.addons = addons;
}
- public Builder getBuilder() {
- return this.builder;
- }
-
- public void setBuilder(Builder builder) {
- this.builder = builder;
- }
-
public Camel getCamel() {
return camel;
}