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
0d8d1111
Commit
0d8d1111
authored
Feb 03, 2021
by
Waqar Ahmed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update minio chart to use new format for storage
parent
c03f6f5b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
56 deletions
+50
-56
test/minio/1.0.1/migrations/migrate.py
test/minio/1.0.1/migrations/migrate.py
+10
-0
test/minio/1.0.1/questions.yaml
test/minio/1.0.1/questions.yaml
+34
-30
test/minio/1.0.1/templates/deployment.yaml
test/minio/1.0.1/templates/deployment.yaml
+5
-23
test/plex/1.0.1/templates/deployment.yaml
test/plex/1.0.1/templates/deployment.yaml
+1
-3
No files found.
test/minio/1.0.1/migrations/migrate.py
0 → 100644
View file @
0d8d1111
def
migrate
(
values
):
values
.
update
({
'appVolumeMounts'
:
{
'export'
:
{
'hostPathEnabled'
:
values
[
'minioHostPathEnabled'
],
**
({
'hostPath'
:
values
[
'minioHostPath'
]}
if
values
.
get
(
'minioHostPath'
)
else
{})
},
},
})
return
values
test/minio/1.0.1/questions.yaml
View file @
0d8d1111
...
@@ -138,28 +138,26 @@ questions:
...
@@ -138,28 +138,26 @@ questions:
default
:
9000
default
:
9000
required
:
true
required
:
true
-
variable
:
minioHostPathEnabled
-
variable
:
appVolumeMounts
label
:
"
Configure
Host
Path
for
Minio
data
"
label
:
"
Minio
Storage
"
group
:
"
Storage"
group
:
"
Storage"
schema
:
schema
:
type
:
boolean
type
:
dict
default
:
false
attrs
:
show_subquestions_if
:
true
-
variable
:
export
subquestions
:
label
:
"
Data
Volume"
-
variable
:
minioHostPath
label
:
"
Specify
HostPath
for
Minio
data"
schema
:
type
:
hostpath
-
variable
:
minioDataVolume
label
:
"
Minio
Data
Volume
Defaults"
group
:
"
Storage"
schema
:
schema
:
type
:
dict
type
:
dict
attrs
:
-
variable
:
datasetName
label
:
"
Minio
Data
Volume
Dataset
Name"
schema
:
type
:
string
$ref
:
$ref
:
-
"
normalize/ixVolume"
-
"
normalize/ixVolume"
show_if
:
[[
"
minioHostPathEnabled"
,
"
="
,
false
]]
show_if
:
[[
"
hostPathEnabled"
,
"
="
,
false
]]
attrs
:
default
:
"
ix-minio"
editable
:
false
-
variable
:
mountPath
-
variable
:
mountPath
label
:
"
Minio
Data
Mount
Path"
label
:
"
Minio
Data
Mount
Path"
description
:
"
Path
where
the
volume
will
be
mounted
inside
the
pod"
description
:
"
Path
where
the
volume
will
be
mounted
inside
the
pod"
...
@@ -167,9 +165,15 @@ questions:
...
@@ -167,9 +165,15 @@ questions:
type
:
path
type
:
path
editable
:
false
editable
:
false
default
:
"
/export"
default
:
"
/export"
-
variable
:
datasetName
-
variable
:
hostPathEnabled
label
:
"
Minio
Dataset
Na
me"
label
:
"
Enable
Host
Path
for
Minio
Data
Volu
me"
schema
:
schema
:
type
:
string
type
:
boolean
default
:
"
ix-minio"
default
:
false
editable
:
false
show_subquestions_if
:
true
subquestions
:
-
variable
:
hostPath
label
:
"
Host
Path
for
Minio
Data
Volume"
schema
:
type
:
hostpath
required
:
true
test/minio/1.0.1/templates/deployment.yaml
View file @
0d8d1111
{{
$scheme
:
= "http"
}}
{{
$scheme
:
= "http"
}}
apiVersion
:
{{
template "common.capabilities.deployment.apiVersion" .
}}
{{
include "common.deployment.common_config" . | nindent 0
}}
kind
:
Deployment
spec
:
{{
include "common.deployment.common_spec" . | nindent 2
}}
metadata
:
template
:
{{
include "common.deployment.pod.metadata" . | nindent 4
}}
name
:
{{
template "common.names.fullname" .
}}
labels
:
{{
include "common.labels" . | nindent 4
}}
spec
:
strategy
:
type
:
{{
.Values.updateStrategy
}}
selector
:
matchLabels
:
{{
include "common.labels.selectorLabels" . | nindent 6
}}
template
:
metadata
:
name
:
{{
template "common.names.fullname" .
}}
labels
:
{{
include "common.labels.selectorLabels" . | nindent 8
}}
annotations
:
checksum/secrets
:
{{
include (print $.Template.BasePath "/secrets.yaml") . | sha256sum
}}
spec
:
spec
:
serviceAccountName
:
{{
include "common.names.serviceAccountName" . | quote
}}
serviceAccountName
:
{{
include "common.names.serviceAccountName" . | quote
}}
containers
:
containers
:
-
name
:
{{
.Chart.Name
}}
-
name
:
{{
.Chart.Name
}}
{{
include "common.containers.imageConfig" .Values.image | nindent 10
}}
{{
include "common.containers.imageConfig" .Values.image | nindent 10
}}
{{
include "common.storage.allContainerVolumeMounts" .Values | nindent 10
}}
command
:
command
:
-
"
/bin/sh"
-
"
/bin/sh"
-
"
-ce"
-
"
-ce"
-
"
/usr/bin/docker-entrypoint.sh
minio
server
/export
{{
(.Values.extraArgs
|
default
list)
|
join
"
"
}}"
-
"
/usr/bin/docker-entrypoint.sh
minio
server
/export
{{
(.Values.extraArgs
|
default
list)
|
join
"
"
}}"
volumeMounts
:
-
name
:
export
mountPath
:
/export
ports
:
ports
:
-
name
:
{{
$scheme
}}
-
name
:
{{
$scheme
}}
containerPort
:
9000
containerPort
:
9000
...
@@ -36,7 +21,4 @@ spec:
...
@@ -36,7 +21,4 @@ spec:
{{
$envList = mustAppend $envList (dict "name" "MINIO_ACCESS_KEY" "valueFromSecret" true "secretName" $secretName "secretKey" "accesskey")
}}
{{
$envList = mustAppend $envList (dict "name" "MINIO_ACCESS_KEY" "valueFromSecret" true "secretName" $secretName "secretKey" "accesskey")
}}
{{
$envList = mustAppend $envList (dict "name" "MINIO_SECRET_KEY" "valueFromSecret" true "secretName" $secretName "secretKey" "secretkey")
}}
{{
$envList = mustAppend $envList (dict "name" "MINIO_SECRET_KEY" "valueFromSecret" true "secretName" $secretName "secretKey" "secretkey")
}}
{{
include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 12
}}
{{
include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 12
}}
volumes
:
{{
include "common.storage.allAppVolumes" .Values | nindent 6
}}
{{
$vols
:
= list
}}
{{
$vols = mustAppend $vols (dict "name" "export" "emptyDirVolumes" .Values.emptyDirVolumes "hostPathEnabled" .Values.minioHostPathEnabled "pathField" .Values.minioHostPath "datasetName" (.Values.minioDataVolume | default dict).datasetName )
}}
{{
include "common.storage.volumesConfiguration" (dict "ixVolumes" .Values.ixVolumes "volumes" $vols) | nindent 8
}}
test/plex/1.0.1/templates/deployment.yaml
View file @
0d8d1111
apiVersion
:
apps/v1
{{
include "common.deployment.common_config" . | nindent 0
}}
kind
:
Deployment
{{
include "common.deployment.metadata" . | nindent 0
}}
spec
:
{{
include "common.deployment.common_spec" . | nindent 2
}}
spec
:
{{
include "common.deployment.common_spec" . | nindent 2
}}
template
:
{{
include "common.deployment.pod.metadata" . | nindent 4
}}
template
:
{{
include "common.deployment.pod.metadata" . | nindent 4
}}
spec
:
spec
:
...
...
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