From 61ded910016e736502ff3fea23c3f2844d6131c2 Mon Sep 17 00:00:00 2001 From: Neil Hanlon Date: Wed, 21 Sep 2022 22:58:59 -0400 Subject: [PATCH] Revert "Mount /sys/fs and /tmp as a new tmpfs" This reverts commit dfc9b39002384aa47c29c8163c2a94b0a802b736. Yeah, we don't need this. --- peridot/builder/v1/workflow/infrastructure.go | 36 +++---------------- 1 file changed, 5 insertions(+), 31 deletions(-) diff --git a/peridot/builder/v1/workflow/infrastructure.go b/peridot/builder/v1/workflow/infrastructure.go index cbc6cfa..37768a7 100644 --- a/peridot/builder/v1/workflow/infrastructure.go +++ b/peridot/builder/v1/workflow/infrastructure.go @@ -36,12 +36,6 @@ import ( "database/sql" "errors" "fmt" - "math/rand" - "os" - "runtime" - "strings" - "time" - "github.com/sirupsen/logrus" "github.com/spf13/viper" "go.temporal.io/api/enums/v1" @@ -55,9 +49,14 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" "k8s.io/client-go/rest" + "math/rand" + "os" "peridot.resf.org/peridot/db/models" peridotpb "peridot.resf.org/peridot/pb" "peridot.resf.org/utils" + "runtime" + "strings" + "time" ) type ProvisionWorkerRequest struct { @@ -639,14 +638,6 @@ func (c *Controller) CreateK8sPodActivity(ctx context.Context, req *ProvisionWor Name: "security-limits", MountPath: "/etc/security/limits.conf", }, - { - Name: "sysfs", - MountPath: "/sys/fs", - }, - { - Name: "tmpfs", - MountPath: "/tmp/", - }, }, }, }, @@ -667,23 +658,6 @@ func (c *Controller) CreateK8sPodActivity(ctx context.Context, req *ProvisionWor }, }, }, - { - Name: "sysfs", - VolumeSource: v1.VolumeSource{ - HostPath: &v1.HostPathVolumeSource{ - Path: "/sys/fs", - }, - }, - }, - { - Name: "tmpfs", - VolumeSource: v1.VolumeSource{ - EmptyDir: &v1.EmptyDirVolumeSource{ - Medium: "Memory", - SizeLimit: nil - } - } - }, }, Tolerations: []v1.Toleration{ {