You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by sa...@apache.org on 2022/05/01 00:13:06 UTC

[incubator-heron] 05/10: [K8s] removed factory type for NFS.

This is an automated email from the ASF dual-hosted git repository.

saadurrahman pushed a commit to branch 3821-Remove-Deprecated-Volumes-K8s-dev
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git

commit 06b5f84b3e8150f0067d7f20f5d6986f21667ebe
Author: Saad Ur Rahman <sa...@apache.org>
AuthorDate: Sat Apr 30 11:51:51 2022 -0400

    [K8s] removed factory type for NFS.
---
 .../org/apache/heron/scheduler/kubernetes/Volumes.java | 18 ------------------
 1 file changed, 18 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 5d97dd4ba80..ff16f2cb258 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
@@ -39,7 +39,6 @@ final class Volumes {
 
   private Volumes() {
     volumes.put(HOST_PATH, new HostPathVolumeFactory());
-    volumes.put(NFS, new NfsVolumeFactory());
   }
 
   static Volumes get() {
@@ -77,21 +76,4 @@ final class Volumes {
       return volume;
     }
   }
-
-  static class NfsVolumeFactory implements VolumeFactory {
-    @Override
-    public V1Volume create(Config config) {
-      final V1Volume volume = newVolume(config);
-
-      final String path = KubernetesContext.getNfsVolumePath(config);
-      final String server = KubernetesContext.getNfsServer(config);
-      V1NFSVolumeSource nfsVolumeSource =
-          new V1NFSVolumeSource()
-              .path(path)
-              .server(server);
-      volume.setNfs(nfsVolumeSource);
-
-      return volume;
-    }
-  }
 }