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:08 UTC

[incubator-heron] 07/10: [K8s] Removed Host Path keys from context.

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 4c2bb11d0ce5c8e8e67bd1b9897961e5e6c9f766
Author: Saad Ur Rahman <sa...@apache.org>
AuthorDate: Sat Apr 30 12:02:57 2022 -0400

    [K8s] Removed Host Path keys from context.
---
 .../org/apache/heron/scheduler/kubernetes/KubernetesContext.java | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/heron/schedulers/src/java/org/apache/heron/scheduler/kubernetes/KubernetesContext.java b/heron/schedulers/src/java/org/apache/heron/scheduler/kubernetes/KubernetesContext.java
index c005ffe812a..091d3c25df4 100644
--- a/heron/schedulers/src/java/org/apache/heron/scheduler/kubernetes/KubernetesContext.java
+++ b/heron/schedulers/src/java/org/apache/heron/scheduler/kubernetes/KubernetesContext.java
@@ -69,11 +69,6 @@ public final class KubernetesContext extends Context {
   public static final String KUBERNETES_VOLUME_TYPE = "heron.kubernetes.volume.type";
 
 
-  // HostPath volume keys
-  // https://kubernetes.io/docs/concepts/storage/volumes/#hostpath
-  public static final String KUBERNETES_VOLUME_HOSTPATH_PATH =
-      "heron.kubernetes.volume.hostPath.path";
-
   // Pod Template ConfigMap: heron.kubernetes.[executor | manager].pod.template
   public static final String KUBERNETES_POD_TEMPLATE_LOCATION =
       "heron.kubernetes.%s.pod.template";
@@ -160,10 +155,6 @@ public final class KubernetesContext extends Context {
     return config.getStringValue(KUBERNETES_VOLUME_NAME);
   }
 
-  static String getHostPathVolumePath(Config config) {
-    return config.getStringValue(KUBERNETES_VOLUME_HOSTPATH_PATH);
-  }
-
   static boolean hasVolume(Config config) {
     return isNotEmpty(getVolumeType(config));
   }