create nfs dir
This commit is contained in:
parent
1c2f54b8dd
commit
b8365e51ea
2
Makefile
2
Makefile
|
|
@ -1,4 +1,4 @@
|
|||
IMAGE_TAG ?= docker.educg.net/cg/k8s-manager:v1.1.3
|
||||
IMAGE_TAG ?= docker.educg.net/cg/k8s-manager:v1.1.4
|
||||
|
||||
build: export CGO_ENABLED=0
|
||||
build: export GOOS=linux
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ func (c *K8sClient) UpdateDeployment(app *AppModel) {
|
|||
labelKey, labelValue := app.GetLabel()
|
||||
l := map[string]string{labelKey: labelValue}
|
||||
if _, err := os.Stat(app.NFSPath()); os.IsNotExist(err) {
|
||||
err := os.MkdirAll(app.NFSPath(), os.ModeDir)
|
||||
err := os.MkdirAll(app.NFSPath(), 0777)
|
||||
if err != nil {
|
||||
log.WithError(err).Error("Make nfs dir error")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue