Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All lists to omit empty by default #5320

Merged
merged 1 commit into from
Jul 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#### Improvements
* Fix #5166: Remove opinionated messages from Config's `errorMessages` and deprecate it
* Fix #5233: Generalized SchemaSwap to allow for cycle expansion
* Fix #5262: all built-in collections will omit empty in their serialized form.
* Fix #5287: Add an option to filter the files processed by the java-generator, based on a suffix allowlist
* Fix #5315: Introduced `kubernetes-junit-jupiter-autodetect` to use with [automatic extension registration](https://junit.org/junit5/docs/current/user-guide/#extensions-registration-automatic)

Expand All @@ -24,6 +25,7 @@
#### _**Note**_: Breaking changes
* Fix #2718: KubernetesResourceUtil.isResourceReady was deprecated. Use `client.resource(item).isReady()` or `Readiness.getInstance().isReady(item)` instead.
* Fix #5171: Removed Camel-K extension, use [`org.apache.camel.k:camel-k-crds`](https://central.sonatype.com/artifact/org.apache.camel.k/camel-k-crds) instead.
* Fix #5262: Built-in resources were in-consistent with respect to their serialization or empty collections. In many circumstances this was confusing behavior. In order to be consistent all built-in resources will omit empty collections by default. This is a breaking change if you are relying on an empty collection in a json merge or a strategic merge where the list has a patchStrategy of atomic. In these circumstances the empty collection will no longer be serialized. You may instead use a json patch, server side apply instead, or modify the serialized form of the patch.
* Fix #5279: (java-generator) Add native support for `date-time` fields, they are now mapped to native `java.time.ZonedDateTime`
* Fix #5315: kubernetes-junit-jupiter no longer registers the NamespaceExtension and KubernetesExtension extensions to be used in combination with junit-platform.properties>`junit.jupiter.extensions.autodetection.enabled=true`configuration. If you wish to use these extensions and autodetect them, change your dependency to `kubernetes-junit-jupiter-autodetect`.
* Resource classes in `resource.k8s.io/v1alpha1` have been moved to `resource.k8s.io/v1alpha2` apiGroup in Kubernetes 1.27. Users are required to change package of the following classes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class ChallengeList implements KubernetesResource, KubernetesResourceList
@JsonProperty("apiVersion")
private String apiVersion = "acme.cert-manager.io/v1";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.certmanager.api.model.acme.v1.Challenge> items = new ArrayList<io.fabric8.certmanager.api.model.acme.v1.Challenge>();
/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class OrderList implements KubernetesResource, KubernetesResourceList<io.
@JsonProperty("apiVersion")
private String apiVersion = "acme.cert-manager.io/v1";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.certmanager.api.model.acme.v1.Order> items = new ArrayList<io.fabric8.certmanager.api.model.acme.v1.Order>();
/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class CertificateList implements KubernetesResource, KubernetesResourceLi
@JsonProperty("apiVersion")
private String apiVersion = "cert-manager.io/v1";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.certmanager.api.model.v1.Certificate> items = new ArrayList<io.fabric8.certmanager.api.model.v1.Certificate>();
/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class CertificateRequestList implements KubernetesResource, KubernetesRes
@JsonProperty("apiVersion")
private String apiVersion = "cert-manager.io/v1";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.certmanager.api.model.v1.CertificateRequest> items = new ArrayList<io.fabric8.certmanager.api.model.v1.CertificateRequest>();
/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class ClusterIssuerList implements KubernetesResource, KubernetesResource
@JsonProperty("apiVersion")
private String apiVersion = "cert-manager.io/v1";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.certmanager.api.model.v1.ClusterIssuer> items = new ArrayList<io.fabric8.certmanager.api.model.v1.ClusterIssuer>();
/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class IssuerList implements KubernetesResource, KubernetesResourceList<io
@JsonProperty("apiVersion")
private String apiVersion = "cert-manager.io/v1";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.certmanager.api.model.v1.Issuer> items = new ArrayList<io.fabric8.certmanager.api.model.v1.Issuer>();
/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class ChallengeList implements KubernetesResource, KubernetesResourceList
@JsonProperty("apiVersion")
private String apiVersion = "cert-manager.io/v1alpha2";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.certmanager.api.model.acme.v1alpha2.Challenge> items = new ArrayList<io.fabric8.certmanager.api.model.acme.v1alpha2.Challenge>();
/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class OrderList implements KubernetesResource, KubernetesResourceList<io.
@JsonProperty("apiVersion")
private String apiVersion = "cert-manager.io/v1alpha2";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.certmanager.api.model.acme.v1alpha2.Order> items = new ArrayList<io.fabric8.certmanager.api.model.acme.v1alpha2.Order>();
/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class CertificateList implements KubernetesResource, KubernetesResourceLi
@JsonProperty("apiVersion")
private String apiVersion = "cert-manager.io/v1alpha2";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.certmanager.api.model.v1alpha2.Certificate> items = new ArrayList<io.fabric8.certmanager.api.model.v1alpha2.Certificate>();
/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class CertificateRequestList implements KubernetesResource, KubernetesRes
@JsonProperty("apiVersion")
private String apiVersion = "cert-manager.io/v1alpha2";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.certmanager.api.model.v1alpha2.CertificateRequest> items = new ArrayList<io.fabric8.certmanager.api.model.v1alpha2.CertificateRequest>();
/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class ClusterIssuerList implements KubernetesResource, KubernetesResource
@JsonProperty("apiVersion")
private String apiVersion = "cert-manager.io/v1alpha2";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.certmanager.api.model.v1alpha2.ClusterIssuer> items = new ArrayList<io.fabric8.certmanager.api.model.v1alpha2.ClusterIssuer>();
/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class IssuerList implements KubernetesResource, KubernetesResourceList<io
@JsonProperty("apiVersion")
private String apiVersion = "cert-manager.io/v1alpha2";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.certmanager.api.model.v1alpha2.Issuer> items = new ArrayList<io.fabric8.certmanager.api.model.v1alpha2.Issuer>();
/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class ChallengeList implements KubernetesResource, KubernetesResourceList
@JsonProperty("apiVersion")
private String apiVersion = "cert-manager.io/v1alpha3";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.certmanager.api.model.acme.v1alpha3.Challenge> items = new ArrayList<io.fabric8.certmanager.api.model.acme.v1alpha3.Challenge>();
/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class OrderList implements KubernetesResource, KubernetesResourceList<io.
@JsonProperty("apiVersion")
private String apiVersion = "cert-manager.io/v1alpha3";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.certmanager.api.model.acme.v1alpha3.Order> items = new ArrayList<io.fabric8.certmanager.api.model.acme.v1alpha3.Order>();
/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class CertificateList implements KubernetesResource, KubernetesResourceLi
@JsonProperty("apiVersion")
private String apiVersion = "cert-manager.io/v1alpha3";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.certmanager.api.model.v1alpha3.Certificate> items = new ArrayList<io.fabric8.certmanager.api.model.v1alpha3.Certificate>();
/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class CertificateRequestList implements KubernetesResource, KubernetesRes
@JsonProperty("apiVersion")
private String apiVersion = "cert-manager.io/v1alpha3";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.certmanager.api.model.v1alpha3.CertificateRequest> items = new ArrayList<io.fabric8.certmanager.api.model.v1alpha3.CertificateRequest>();
/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class ClusterIssuerList implements KubernetesResource, KubernetesResource
@JsonProperty("apiVersion")
private String apiVersion = "cert-manager.io/v1alpha3";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.certmanager.api.model.v1alpha3.ClusterIssuer> items = new ArrayList<io.fabric8.certmanager.api.model.v1alpha3.ClusterIssuer>();
/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class IssuerList implements KubernetesResource, KubernetesResourceList<io
@JsonProperty("apiVersion")
private String apiVersion = "cert-manager.io/v1alpha3";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.certmanager.api.model.v1alpha3.Issuer> items = new ArrayList<io.fabric8.certmanager.api.model.v1alpha3.Issuer>();
/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class ChallengeList implements KubernetesResource, KubernetesResourceList
@JsonProperty("apiVersion")
private String apiVersion = "cert-manager.io/v1beta1";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.certmanager.api.model.acme.v1beta1.Challenge> items = new ArrayList<io.fabric8.certmanager.api.model.acme.v1beta1.Challenge>();
/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class OrderList implements KubernetesResource, KubernetesResourceList<io.
@JsonProperty("apiVersion")
private String apiVersion = "cert-manager.io/v1beta1";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.certmanager.api.model.acme.v1beta1.Order> items = new ArrayList<io.fabric8.certmanager.api.model.acme.v1beta1.Order>();
/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class CertificateList implements KubernetesResource, KubernetesResourceLi
@JsonProperty("apiVersion")
private String apiVersion = "cert-manager.io/v1beta1";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.certmanager.api.model.v1beta1.Certificate> items = new ArrayList<io.fabric8.certmanager.api.model.v1beta1.Certificate>();
/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class CertificateRequestList implements KubernetesResource, KubernetesRes
@JsonProperty("apiVersion")
private String apiVersion = "cert-manager.io/v1beta1";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.certmanager.api.model.v1beta1.CertificateRequest> items = new ArrayList<io.fabric8.certmanager.api.model.v1beta1.CertificateRequest>();
/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class ClusterIssuerList implements KubernetesResource, KubernetesResource
@JsonProperty("apiVersion")
private String apiVersion = "cert-manager.io/v1beta1";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.certmanager.api.model.v1beta1.ClusterIssuer> items = new ArrayList<io.fabric8.certmanager.api.model.v1beta1.ClusterIssuer>();
/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class IssuerList implements KubernetesResource, KubernetesResourceList<io
@JsonProperty("apiVersion")
private String apiVersion = "cert-manager.io/v1beta1";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.certmanager.api.model.v1beta1.Issuer> items = new ArrayList<io.fabric8.certmanager.api.model.v1beta1.Issuer>();
/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class AWSChaosList implements KubernetesResource, KubernetesResourceList<
@JsonProperty("apiVersion")
private String apiVersion = "chaos-mesh.org/v1alpha1";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.chaosmesh.v1alpha1.AWSChaos> items = new ArrayList<io.fabric8.chaosmesh.v1alpha1.AWSChaos>();
/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class BlockChaosList implements KubernetesResource, KubernetesResourceLis
@JsonProperty("apiVersion")
private String apiVersion = "chaos-mesh.org/v1alpha1";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.chaosmesh.v1alpha1.BlockChaos> items = new ArrayList<io.fabric8.chaosmesh.v1alpha1.BlockChaos>();
/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public class BlockChaosSpec implements KubernetesResource
@JsonProperty("action")
private java.lang.String action;
@JsonProperty("containerNames")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<java.lang.String> containerNames = new ArrayList<java.lang.String>();
@JsonProperty("delay")
private BlockDelaySpec delay;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public class CPUStressor implements KubernetesResource
@JsonProperty("load")
private Integer load;
@JsonProperty("options")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<String> options = new ArrayList<String>();
@JsonProperty("workers")
private java.lang.Integer workers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class DNSChaosList implements KubernetesResource, KubernetesResourceList<
@JsonProperty("apiVersion")
private String apiVersion = "chaos-mesh.org/v1alpha1";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.chaosmesh.v1alpha1.DNSChaos> items = new ArrayList<io.fabric8.chaosmesh.v1alpha1.DNSChaos>();
/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,14 @@ public class DNSChaosSpec implements KubernetesResource
@JsonProperty("action")
private java.lang.String action;
@JsonProperty("containerNames")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<java.lang.String> containerNames = new ArrayList<java.lang.String>();
@JsonProperty("duration")
private String duration;
@JsonProperty("mode")
private java.lang.String mode;
@JsonProperty("patterns")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<java.lang.String> patterns = new ArrayList<java.lang.String>();
@JsonProperty("selector")
private PodSelectorSpec selector;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public class FailKernRequest implements KubernetesResource
@JsonProperty("failtype")
private Integer failtype;
@JsonProperty("headers")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<String> headers = new ArrayList<String>();
@JsonProperty("probability")
private Integer probability;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class GCPChaosList implements KubernetesResource, KubernetesResourceList<
@JsonProperty("apiVersion")
private String apiVersion = "chaos-mesh.org/v1alpha1";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.chaosmesh.v1alpha1.GCPChaos> items = new ArrayList<io.fabric8.chaosmesh.v1alpha1.GCPChaos>();
/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public class GCPChaosSpec implements KubernetesResource
@JsonProperty("action")
private java.lang.String action;
@JsonProperty("deviceNames")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<java.lang.String> deviceNames = new ArrayList<java.lang.String>();
@JsonProperty("duration")
private String duration;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public class GCPChaosStatus implements KubernetesResource
{

@JsonProperty("attachedDiskStrings")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<String> attachedDiskStrings = new ArrayList<String>();
@JsonProperty("conditions")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class HTTPChaosList implements KubernetesResource, KubernetesResourceList
@JsonProperty("apiVersion")
private String apiVersion = "chaos-mesh.org/v1alpha1";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.chaosmesh.v1alpha1.HTTPChaos> items = new ArrayList<io.fabric8.chaosmesh.v1alpha1.HTTPChaos>();
/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class IOChaosList implements KubernetesResource, KubernetesResourceList<i
@JsonProperty("apiVersion")
private String apiVersion = "chaos-mesh.org/v1alpha1";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.chaosmesh.v1alpha1.IOChaos> items = new ArrayList<io.fabric8.chaosmesh.v1alpha1.IOChaos>();
/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public class IOChaosSpec implements KubernetesResource
@JsonProperty("attr")
private AttrOverrideSpec attr;
@JsonProperty("containerNames")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<java.lang.String> containerNames = new ArrayList<java.lang.String>();
@JsonProperty("delay")
private java.lang.String delay;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class JVMChaosList implements KubernetesResource, KubernetesResourceList<
@JsonProperty("apiVersion")
private String apiVersion = "chaos-mesh.org/v1alpha1";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.chaosmesh.v1alpha1.JVMChaos> items = new ArrayList<io.fabric8.chaosmesh.v1alpha1.JVMChaos>();
/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class JVMChaosSpec implements KubernetesResource
@JsonProperty("class")
private java.lang.String className;
@JsonProperty("containerNames")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<java.lang.String> containerNames = new ArrayList<java.lang.String>();
@JsonProperty("cpuCount")
private Integer cpuCount;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class KernelChaosList implements KubernetesResource, KubernetesResourceLi
@JsonProperty("apiVersion")
private String apiVersion = "chaos-mesh.org/v1alpha1";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.chaosmesh.v1alpha1.KernelChaos> items = new ArrayList<io.fabric8.chaosmesh.v1alpha1.KernelChaos>();
/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public class MemoryStressor implements KubernetesResource
{

@JsonProperty("options")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<String> options = new ArrayList<String>();
@JsonProperty("size")
private String size;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class NetworkChaosList implements KubernetesResource, KubernetesResourceL
@JsonProperty("apiVersion")
private String apiVersion = "chaos-mesh.org/v1alpha1";
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<io.fabric8.chaosmesh.v1alpha1.NetworkChaos> items = new ArrayList<io.fabric8.chaosmesh.v1alpha1.NetworkChaos>();
/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ public class NetworkChaosSpec implements KubernetesResource
@JsonProperty("duration")
private String duration;
@JsonProperty("externalTargets")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<java.lang.String> externalTargets = new ArrayList<java.lang.String>();
@JsonProperty("loss")
private LossSpec loss;
Expand Down
Loading