Skip to content

Commit 587c765

Browse files
Merge pull request #167 from francescotimperi/3.0.0-testing-ftt
upgrade adduser to support generic object storage setup
2 parents 4921deb + 5bd611a commit 587c765

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

admin/nuvfile.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ tasks:
8585
8686
export REDIS_ENABLED=false
8787
export MONGODB_ENABLED=false
88-
export MINIO_DATA_ENABLED=false
89-
export MINIO_STATIC_ENABLED=false
88+
export STORAGE_DATA_ENABLED=false
89+
export STORAGE_STATIC_ENABLED=false
9090
export POSTGRES_ENABLED=false
91-
export MINIO_STORAGE_QUOTA=auto
91+
export OBJECT_STORAGE_QUOTA=auto
9292
9393
if {{.__redis}} || {{.__all}}
9494
then
@@ -110,19 +110,19 @@ tasks:
110110
fi
111111
fi
112112
113-
if {{.__minio}} || {{.__all}}
113+
if {{.__storage}} || {{.__all}}
114114
then
115-
if $NUVOLARIS_MINIO
115+
if $NUVOLARIS_MINIO || $NUVOLARIS_COSI
116116
then
117-
MINIO_DATA_ENABLED=true
118-
MINIO_STATIC_ENABLED=true
117+
STORAGE_DATA_ENABLED=true
118+
STORAGE_STATIC_ENABLED=true
119119
else
120-
nuv -die "Error! Minio is not enabled in Nuvolaris"
120+
nuv -die "Error! Onject Storage is not enabled in Nuvolaris"
121121
fi
122122
fi
123123
124124
if test -n "{{.__storagequota}}"
125-
then MINIO_STORAGE_QUOTA={{.__storagequota}}
125+
then OBJECT_STORAGE_QUOTA={{.__storagequota}}
126126
fi
127127
128128
if {{.__postgres}} || {{.__all}}

admin/nuvopts.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Subcommand: nuv admin
22

33
Usage:
4-
admin adduser <username> <email> <password> [--all] [--redis] [--mongodb] [--minio] [--postgres] [--storagequota=<quota>|auto]
4+
admin adduser <username> <email> <password> [--all] [--redis] [--mongodb] [--storage] [--postgres] [--storagequota=<quota>|auto]
55
admin deleteuser <username>
66

77
Commands:
@@ -12,6 +12,6 @@ Options:
1212
--all enable all services
1313
--redis enable redis
1414
--mongodb enable mongodb
15-
--minio enable minio
15+
--storage enable object based storage
1616
--postgres enable postgres
1717
--storagequota=<quota>

admin/user-crd.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ spec:
4040
password: ${USER_SECRET_POSTGRES}
4141
object-storage:
4242
password: ${USER_SECRET_MINIO}
43-
quota: "${MINIO_STORAGE_QUOTA:-auto}"
43+
quota: "${OBJECT_STORAGE_QUOTA:-auto}"
4444
data:
45-
enabled: ${MINIO_DATA_ENABLED}
45+
enabled: ${STORAGE_DATA_ENABLED}
4646
bucket: ${USERNAME}-data
4747
route:
48-
enabled: ${MINIO_STATIC_ENABLED}
48+
enabled: ${STORAGE_STATIC_ENABLED}
4949
bucket: ${USERNAME}-web

0 commit comments

Comments
 (0)