StatefulSetDiff extends AbstractResourceDiff { public boolean changesSpecTemplate() { return changesSpecTemplate; } StatefulSetDiff(StatefulSet current, StatefulSet desired); @Override boolean isEmpty(); boolean changesVolumeClaimTemplates(); boolean changesVolumeSize(); boolean changesSpecTemplate(); boolean changesLabels(); boolean changesSpecReplicas();  }
@Test public void testSpecVolumesIgnored() { StatefulSet ss1 = new StatefulSetBuilder() .withNewMetadata() .withNamespace("test") .withName("foo") .endMetadata() .withNewSpec(). withNewTemplate() .withNewSpec() .addToVolumes(0, new VolumeBuilder() .withConfigMap(new ConfigMapVolumeSourceBuilder().withDefaultMode(1).build()) .build()) .endSpec() .endTemplate() .endSpec() .build(); StatefulSet ss2 = new StatefulSetBuilder() .withNewMetadata() .withNamespace("test") .withName("foo") .endMetadata() .withNewSpec() .withNewTemplate() .withNewSpec() .addToVolumes(0, new VolumeBuilder() .withConfigMap(new ConfigMapVolumeSourceBuilder().withDefaultMode(2).build()) .build()) .endSpec() .endTemplate() .endSpec() .build(); assertThat(new StatefulSetDiff(ss1, ss2).changesSpecTemplate(), is(false)); }