Add database volume path as variable

This commit is contained in:
galal-hussein 2016-12-05 08:10:11 +02:00
parent 146b22500e
commit 3aacb31d52
3 changed files with 7 additions and 2 deletions

View File

@ -42,7 +42,7 @@ spec:
volumes:
- name: mongo-datadir
hostPath:
path: /data/db
path: ${mongo_volume}
- name: utility
emptyDir: {}
metadata:

View File

@ -52,6 +52,6 @@ spec:
volumes:
- name: mongo-datadir
hostPath:
path: /data/db
path: ${mongo_volume}
- name: utility
emptyDir: {}

View File

@ -9,3 +9,8 @@
type: int
default: 2
description: "should be even number"
- variable: "mongo_volume"
label: "hostpath volume for mongodb"
required: true
type: string
default: "/data/db"