This is an automated email from the ASF dual-hosted git repository. saadurrahman pushed a commit to branch saadurrahman/3821-Remove-Deprecated-Volumes-K8s-dev in repository https://gitbox.apache.org/repos/asf/incubator-heron.git
commit 0f7dc30034866c3c900ab6946d41eed28fbf203e Author: Saad Ur Rahman <[email protected]> AuthorDate: Sat Apr 30 12:04:47 2022 -0400 [K8s] removed factory type for Host Path. --- .../org/apache/heron/scheduler/kubernetes/Volumes.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/heron/schedulers/src/java/org/apache/heron/scheduler/kubernetes/Volumes.java b/heron/schedulers/src/java/org/apache/heron/scheduler/kubernetes/Volumes.java index ff16f2cb258..85cae559627 100644 --- a/heron/schedulers/src/java/org/apache/heron/scheduler/kubernetes/Volumes.java +++ b/heron/schedulers/src/java/org/apache/heron/scheduler/kubernetes/Volumes.java @@ -38,7 +38,6 @@ final class Volumes { private final Map<String, VolumeFactory> volumes = new HashMap<>(); private Volumes() { - volumes.put(HOST_PATH, new HostPathVolumeFactory()); } static Volumes get() { @@ -61,19 +60,4 @@ final class Volumes { final String volumeName = KubernetesContext.getVolumeName(config); return new V1Volume().name(volumeName); } - - static class HostPathVolumeFactory implements VolumeFactory { - @Override - public V1Volume create(Config config) { - final V1Volume volume = newVolume(config); - - final String path = KubernetesContext.getHostPathVolumePath(config); - final V1HostPathVolumeSource hostPathVolume = - new V1HostPathVolumeSource() - .path(path); - volume.hostPath(hostPathVolume); - - return volume; - } - } }
