@Test(expected = IllegalArgumentException.class) public void daemonTemplateHandlerWithInvalidNameTest() { ContainerHandler containerHandler = getContainerHandler(); PodTemplateHandler podTemplateHandler = new PodTemplateHandler(containerHandler); DaemonSetHandler daemonSetHandler = new DaemonSetHandler(podTemplateHandler); ResourceConfig config = new ResourceConfig.Builder() .imagePullPolicy("IfNotPresent") .controllerName("TesTing") .withServiceAccount("test-account") .volumes(volumes1) .build(); daemonSetHandler.getDaemonSet(config, images); }
public DaemonSet getDaemonSet(ResourceConfig config, List<ImageConfiguration> images) { return new DaemonSetBuilder() .withMetadata(createDaemonSetMetaData(config)) .withSpec(createDaemonSetSpec(config, images)) .build(); }
DaemonSetHandler { public DaemonSet getDaemonSet(ResourceConfig config, List<ImageConfiguration> images) { return new DaemonSetBuilder() .withMetadata(createDaemonSetMetaData(config)) .withSpec(createDaemonSetSpec(config, images)) .build(); } }
DaemonSetHandler { public DaemonSet getDaemonSet(ResourceConfig config, List<ImageConfiguration> images) { return new DaemonSetBuilder() .withMetadata(createDaemonSetMetaData(config)) .withSpec(createDaemonSetSpec(config, images)) .build(); } DaemonSetHandler(PodTemplateHandler podTemplateHandler); }
DaemonSetHandler { public DaemonSet getDaemonSet(ResourceConfig config, List<ImageConfiguration> images) { return new DaemonSetBuilder() .withMetadata(createDaemonSetMetaData(config)) .withSpec(createDaemonSetSpec(config, images)) .build(); } DaemonSetHandler(PodTemplateHandler podTemplateHandler); DaemonSet getDaemonSet(ResourceConfig config,
                                  List<ImageConfiguration> images); }
DaemonSetHandler { public DaemonSet getDaemonSet(ResourceConfig config, List<ImageConfiguration> images) { return new DaemonSetBuilder() .withMetadata(createDaemonSetMetaData(config)) .withSpec(createDaemonSetSpec(config, images)) .build(); } DaemonSetHandler(PodTemplateHandler podTemplateHandler); DaemonSet getDaemonSet(ResourceConfig config,
                                  List<ImageConfiguration> images);  }