From 9d22c6caaf83130996d1d24490e54e7c7633501a Mon Sep 17 00:00:00 2001 From: Amy D'Entremont Date: Thu, 24 Feb 2022 14:01:15 -0500 Subject: [PATCH] initialize labels and annotations so they're empty instead of null if not present --- .../java/io/fabric8/kubernetes/api/model/ObjectMeta.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kubernetes-model-generator/kubernetes-model-core/src/generated/java/io/fabric8/kubernetes/api/model/ObjectMeta.java b/kubernetes-model-generator/kubernetes-model-core/src/generated/java/io/fabric8/kubernetes/api/model/ObjectMeta.java index 9f1a69f3c9e..95ff0ce4f40 100644 --- a/kubernetes-model-generator/kubernetes-model-core/src/generated/java/io/fabric8/kubernetes/api/model/ObjectMeta.java +++ b/kubernetes-model-generator/kubernetes-model-core/src/generated/java/io/fabric8/kubernetes/api/model/ObjectMeta.java @@ -53,7 +53,7 @@ public class ObjectMeta implements KubernetesResource { @JsonProperty("annotations") - private Map annotations; + private Map annotations = new HashMap<>(); @JsonProperty("clusterName") private java.lang.String clusterName; @JsonProperty("creationTimestamp") @@ -70,7 +70,7 @@ public class ObjectMeta implements KubernetesResource @JsonProperty("generation") private Long generation; @JsonProperty("labels") - private Map labels; + private Map labels = new HashMap<>(); @JsonProperty("managedFields") @JsonInclude(JsonInclude.Include.NON_EMPTY) private List managedFields = new ArrayList();