diff --git a/bundlebee-core/src/main/java/io/yupiik/bundlebee/core/kube/KubeClient.java b/bundlebee-core/src/main/java/io/yupiik/bundlebee/core/kube/KubeClient.java index 175e5044..d5e6b1c1 100644 --- a/bundlebee-core/src/main/java/io/yupiik/bundlebee/core/kube/KubeClient.java +++ b/bundlebee-core/src/main/java/io/yupiik/bundlebee/core/kube/KubeClient.java @@ -118,7 +118,7 @@ public class KubeClient implements ConfigHolder { private boolean logDescriptorOnParsingError; @Inject - @Description("Should YAML/JSON be logged when it can't be parsed.") + @Description("The attributes to keep from `StatefulSet` (`spec` children) descriptor on updates.") @ConfigProperty(name = "bundlebee.kube.filters.statefuleset.spec.allowed", defaultValue = "replicas,template,updateStrategy,persistentVolumeClaimRetentionPolicy,minReadySeconds,serviceName,selector") private Set statefulsetSpecAllowedAttributes; @@ -540,7 +540,7 @@ private JsonObject filterSpec(final String ref, final JsonObject desc, final Col log.info(() -> "Important: filtering descriptor spec attributes (" + ref + ") for update (" + spec.keySet().stream().filter(it -> !allowed.contains(it)).collect(joining(", ")) + " update is not supported)"); - return jsonBuilderFactory.createObjectBuilder(spec.entrySet().stream() + return jsonBuilderFactory.createObjectBuilder(desc.entrySet().stream() .filter(it -> !"spec".equals(it.getKey())) .collect(toMap(Map.Entry::getKey, Map.Entry::getValue))) .add("spec", jsonBuilderFactory.createObjectBuilder(spec.entrySet().stream()