Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
Charts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
魏国强
Charts
Commits
254ff0ab
Commit
254ff0ab
authored
Dec 08, 2020
by
Waqar Ahmed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correctly populate storage fields
parent
3750f4bd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
74 additions
and
100 deletions
+74
-100
test/nextcloud/2.3.2/questions.yaml
test/nextcloud/2.3.2/questions.yaml
+65
-83
test/nextcloud/2.3.2/templates/_helpers.tpl
test/nextcloud/2.3.2/templates/_helpers.tpl
+9
-9
test/nextcloud/2.3.2/values.yaml
test/nextcloud/2.3.2/values.yaml
+0
-8
No files found.
test/nextcloud/2.3.2/questions.yaml
View file @
254ff0ab
...
@@ -3,7 +3,7 @@ groups:
...
@@ -3,7 +3,7 @@ groups:
description
:
"
Image
to
be
used
for
container"
description
:
"
Image
to
be
used
for
container"
-
name
:
"
Nextcloud
Configuration"
-
name
:
"
Nextcloud
Configuration"
description
:
"
Configuration
details
for
Nextcloud
workload"
description
:
"
Configuration
details
for
Nextcloud
workload"
-
name
:
"
Storage
Configuration
"
-
name
:
"
Storage"
description
:
"
Configure
Storage
for
Nextcloud"
description
:
"
Configure
Storage
for
Nextcloud"
-
name
:
"
Container
Configuration"
-
name
:
"
Container
Configuration"
description
:
"
Configure
nextcloud
container
parameters"
description
:
"
Configure
nextcloud
container
parameters"
...
@@ -109,23 +109,25 @@ questions:
...
@@ -109,23 +109,25 @@ questions:
default
:
9000
default
:
9000
required
:
true
required
:
true
-
variable
:
configureiXVolume
-
variable
:
nextcloudDataHostPathEnabled
label
:
"
Configure
iX
Volume"
label
:
"
Configure
Host
Path
for
Nextcloud
data"
group
:
"
Storage
Configuration"
description
:
"
Use
iX
Volume
for
persistent
storage"
schema
:
schema
:
type
:
boolean
type
:
boolean
default
:
true
default
:
false
required
:
true
show_subquestions_if
:
true
show_subquestions_if
:
true
subquestions
:
subquestions
:
-
variable
:
volume
-
variable
:
nextcloudHostPath
label
:
"
Specify
HostPath
for
Nextcloud
data"
schema
:
type
:
hostpath
-
variable
:
nextcloudDataVolume
label
:
"
Configure
iXVolume"
label
:
"
Configure
iXVolume"
group
:
"
Storage
Configuration"
schema
:
schema
:
type
:
dict
type
:
dict
$ref
:
$ref
:
-
"
normalize/ixVolume"
-
"
normalize/ixVolume"
show_if
:
[[
"
nextcloudDataHostPathEnabled"
,
"
="
,
false
]]
attrs
:
attrs
:
-
variable
:
mountPath
-
variable
:
mountPath
label
:
"
Mount
Path"
label
:
"
Mount
Path"
...
@@ -138,34 +140,12 @@ questions:
...
@@ -138,34 +140,12 @@ questions:
label
:
"
Dataset
Name"
label
:
"
Dataset
Name"
schema
:
schema
:
type
:
string
type
:
string
default
:
"
nextcloud_data"
default
:
"
ix-
nextcloud_data"
editable
:
false
editable
:
false
-
variable
:
configureHostPath
-
variable
:
postgresBackupVolume
label
:
"
Configure
Host
Path
for
storage"
label
:
"
Postgres
Backup
Volume"
description
:
"
Use
a
path
on
host
for
persistent
data
storage"
group
:
"
Storage"
group
:
"
Storage
Configuration"
schema
:
type
:
boolean
default
:
false
required
:
true
show_if
:
[[
"
configureiXVolume"
,
"
="
,
false
]]
show_subquestions_if
:
true
subquestions
:
-
variable
:
volumeHostPath
label
:
"
Host
Path"
group
:
"
Storage
Configuration"
schema
:
type
:
hostpath
-
variable
:
postgresql
label
:
"
Configure
Postgresql"
group
:
"
Postgresql
Configuration"
schema
:
type
:
dict
attrs
:
-
variable
:
backupVolume
label
:
"
Backup
Volume"
schema
:
schema
:
type
:
dict
type
:
dict
$ref
:
$ref
:
...
@@ -183,8 +163,10 @@ questions:
...
@@ -183,8 +163,10 @@ questions:
type
:
string
type
:
string
default
:
"
ix-postgres_backups"
default
:
"
ix-postgres_backups"
editable
:
false
editable
:
false
-
variable
:
dataVolume
-
variable
:
postgresDataVolume
label
:
"
Postgresql
Data
Volume"
label
:
"
Postgresql
Data
Volume"
group
:
"
Storage"
schema
:
schema
:
type
:
dict
type
:
dict
$ref
:
$ref
:
...
...
test/nextcloud/2.3.2/templates/_helpers.tpl
View file @
254ff0ab
...
@@ -57,20 +57,20 @@ Retrieve host path from ix volumes based on dataset name
...
@@ -57,20 +57,20 @@ Retrieve host path from ix volumes based on dataset name
{{- if eq $.datasetName $dsName -}}
{{- if eq $.datasetName $dsName -}}
{{- $hostPathConfiguration.hostPath -}}
{{- $hostPathConfiguration.hostPath -}}
{{- end -}}
{{- end -}}
{{- end }}
{{- end
-
}}
{{- end -}}
{{- end -}}
{
{
/*
{
{
/*
Retrieve
host
path
defined
in
volume
Retrieve
host
path
defined
in
volume
*/
}
}
*/
}
}
{{- define "configuredHostPath" -}}
{{- define "configuredHostPath" -}}
{{- if .Values.configureiXVolume -}}
{{- if .Values.emptyDirVolumes -}}
{{- $volDict := dict "datasetName" $.Values.volume.datasetName "ixVolumes" $.Values.ixVolumes -}}
{{- include "retrieveHostPathFromiXVolume" $volDict -}}
{{- else if .Values.configureHostPath -}}
{{- .Values.volumeHostPath -}}
{{- else -}}
{{- printf "" -}}
{{- printf "" -}}
{{- else if .Values.nextcloudDataHostPathEnabled -}}
{{- required "Please specify a host path for nextcloud" .Values.nextcloudHostPath -}}
{{- else -}}
{{- $volDict := dict "datasetName" $.Values.nextcloudDataVolume.datasetName "ixVolumes" $.Values.ixVolumes -}}
{{- include "retrieveHostPathFromiXVolume" $volDict -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- end -}}
...
@@ -78,7 +78,7 @@ Retrieve host path defined in volume
...
@@ -78,7 +78,7 @@ Retrieve host path defined in volume
Retrieve
backup
postgresql
host
path
defined
in
volume
Retrieve
backup
postgresql
host
path
defined
in
volume
*/
}
}
*/
}
}
{{- define "configuredBackupPostgresHostPath" -}}
{{- define "configuredBackupPostgresHostPath" -}}
{{- $volDict := dict "datasetName" $.Values.postgres
ql.b
ackupVolume.datasetName "ixVolumes" $.Values.ixVolumes -}}
{{- $volDict := dict "datasetName" $.Values.postgres
B
ackupVolume.datasetName "ixVolumes" $.Values.ixVolumes -}}
{{- include "retrieveHostPathFromiXVolume" $volDict -}}
{{- include "retrieveHostPathFromiXVolume" $volDict -}}
{{- end -}}
{{- end -}}
...
@@ -86,7 +86,7 @@ Retrieve backup postgresql host path defined in volume
...
@@ -86,7 +86,7 @@ Retrieve backup postgresql host path defined in volume
Retrieve
postgresql
data
host
path
defined
in
volume
Retrieve
postgresql
data
host
path
defined
in
volume
*/
}
}
*/
}
}
{{- define "configuredPostgresHostPath" -}}
{{- define "configuredPostgresHostPath" -}}
{{- $volDict := dict "datasetName" $.Values.postgres
ql.d
ataVolume.datasetName "ixVolumes" $.Values.ixVolumes -}}
{{- $volDict := dict "datasetName" $.Values.postgres
D
ataVolume.datasetName "ixVolumes" $.Values.ixVolumes -}}
{{- include "retrieveHostPathFromiXVolume" $volDict -}}
{{- include "retrieveHostPathFromiXVolume" $volDict -}}
{{- end -}}
{{- end -}}
...
...
test/nextcloud/2.3.2/values.yaml
View file @
254ff0ab
...
@@ -13,13 +13,5 @@ nextcloud:
...
@@ -13,13 +13,5 @@ nextcloud:
datadir
:
/var/www/html/data
datadir
:
/var/www/html/data
strategy
:
"
Recreate"
strategy
:
"
Recreate"
postgresql
:
backupVolume
:
mountPath
:
"
/postgres_backups"
datasetName
:
"
ix-postgres_backups"
dataVolume
:
mountPath
:
"
/var/lib/postgresql/data"
datasetName
:
"
ix-postgres_data"
service
:
service
:
nodePort
:
9000
nodePort
:
9000
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment