Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
Merge branch '3723-emptyDir-hostPath-nfs-dev' into 3723-emptyDir-host…
Browse files Browse the repository at this point in the history
…Path-nfs
  • Loading branch information
surahman committed Dec 18, 2021
2 parents f573455 + 074c9cc commit 5d27280
Show file tree
Hide file tree
Showing 10 changed files with 1,778 additions and 265 deletions.
2 changes: 1 addition & 1 deletion deploy/kubernetes/general/apiserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ spec:
-D heron.statefulstorage.classname=org.apache.heron.statefulstorage.dlog.DlogStorage
-D heron.statefulstorage.dlog.namespace.uri=distributedlog://zookeeper:2181/heron
-D heron.kubernetes.pod.template.disabled=false
-D heron.kubernetes.persistent.volume.claims.cli.disabled=false
-D heron.kubernetes.volume.from.cli.disabled=false
---
apiVersion: v1
Expand Down
2 changes: 1 addition & 1 deletion deploy/kubernetes/helm/templates/tools.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ spec:
{{- end }}
-D heron.kubernetes.resource.request.mode={{ .Values.topologyResourceRequestMode }}
-D heron.kubernetes.pod.template.disabled={{ .Values.disablePodTemplates }}
-D heron.kubernetes.persistent.volume.claims.cli.disabled={{ .Values.disablePersistentVolumeMountsCLI }}
-D heron.kubernetes.volume.from.cli.disabled={{ .Values.disableVolumesFromCLI }}
envFrom:
- configMapRef:
name: {{ .Release.Name }}-tools-config
Expand Down
4 changes: 2 additions & 2 deletions deploy/kubernetes/helm/values.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ packing: RoundRobin # ResourceCompliantRR, FirstFitDecreasing
# Support for ConfigMap mounted PodTemplates
disablePodTemplates: false

# Support for Dynamic Persistent Volume Mounts from CLI input
disablePersistentVolumeMountsCLI: false
# Support for Voume specification from CLI input
disableVolumesFromCLI: false

# Number of replicas for storage bookies, memory and storage requirements
bookieReplicas: 3
Expand Down
2 changes: 1 addition & 1 deletion deploy/kubernetes/minikube/apiserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ spec:
-D heron.statefulstorage.classname=org.apache.heron.statefulstorage.dlog.DlogStorage
-D heron.statefulstorage.dlog.namespace.uri=distributedlog://zookeeper:2181/heronbkdl
-D heron.kubernetes.pod.template.disabled=false
-D heron.kubernetes.persistent.volume.claims.cli.disabled=false
-D heron.kubernetes.volume.from.cli.disabled=false
---
apiVersion: v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.regex.Pattern;

import org.apache.heron.scheduler.utils.SchedulerUtils.ExecutorPort;
Expand Down Expand Up @@ -115,13 +117,34 @@ private KubernetesConstants() {
)
);

enum VolumeClaimTemplateConfigKeys {
protected enum VolumeConfigKeys {
claimName,
storageClassName,
sizeLimit,
accessModes,
volumeMode,
path, // Added to container.
medium,
type,
readOnly,
server,
pathOnHost,
pathOnNFS,
path, // Added to container, nfsVolume, hostPath.
subPath, // Added to container.
}

protected static final Set<String> VALID_VOLUME_HOSTPATH_TYPES = Collections.unmodifiableSet(
new HashSet<String>() {
{
add("");
add("DirectoryOrCreate");
add("Directory");
add("FileOrCreate");
add("File");
add("Socket");
add("CharDevice");
add("BlockDevice");
}
}
);
}

Large diffs are not rendered by default.

Loading

0 comments on commit 5d27280

Please sign in to comment.