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
c3c8f25c
Commit
c3c8f25c
authored
Oct 07, 2020
by
Waqar Ahmed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for PVC's in ix-chart
parent
1766eb1a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
2 deletions
+51
-2
charts/ix-chart/2009.0.1/questions.yaml
charts/ix-chart/2009.0.1/questions.yaml
+25
-0
charts/ix-chart/2009.0.1/templates/deployment.yaml
charts/ix-chart/2009.0.1/templates/deployment.yaml
+11
-2
charts/ix-chart/2009.0.1/templates/persistent-volume-claims.yaml
...ix-chart/2009.0.1/templates/persistent-volume-claims.yaml
+14
-0
charts/ix-chart/2009.0.1/values.yaml
charts/ix-chart/2009.0.1/values.yaml
+1
-0
No files found.
charts/ix-chart/2009.0.1/questions.yaml
View file @
c3c8f25c
...
...
@@ -162,6 +162,7 @@
# Host path based volumes
-
variable
:
hostPathVolumes
label
:
"
Host
Path
Volumes"
group
:
"
Storage"
schema
:
type
:
list
items
:
...
...
@@ -186,3 +187,27 @@
schema
:
type
:
boolean
default
:
false
# Persistent Volume Claims
-
variable
:
persistentVolumeClaims
label
:
"
Persistent
Volume
Claims"
group
:
"
Storage"
schema
:
type
:
list
items
:
-
variable
:
persistentVolumeClaim
label
:
"
Persistent
Volume
Claim
Configuration"
schema
:
type
:
dict
attrs
:
-
variable
:
mountPath
label
:
"
Mount
Path"
description
:
"
Path
where
the
volume
will
be
mounted
inside
the
pod"
schema
:
type
:
path
required
:
true
-
variable
:
capacity
label
:
"
Volume
Capacity"
schema
:
type
:
int
required
:
true
charts/ix-chart/2009.0.1/templates/deployment.yaml
View file @
c3c8f25c
...
...
@@ -20,13 +20,17 @@ spec:
spec:
containers:
-
name:
{{
.Chart.Name
}}
{{-
if
.Values.hostPathVolume
s
}}
{{-
if
or
.Values.hostPathVolumes
.Values.persistentVolumeClaim
s
}}
volumeMounts:
{{-
range
$index,
$hostPathConfiguration
:=
.Values.hostPathVolumes
}}
-
mountPath:
{{
$hostPathConfiguration.mountPath
}}
name:
ix-host-path-{{
$.Release.Name
}}-{{
$index
}}
readOnly:
{{
$hostPathConfiguration.readOnly
}}
{{-
end
}}
{{-
range
$index,
$claim
:=
.Values.persistentVolumeClaims
}}
-
mountPath:
{{
$claim.mountPath
}}
name:
ix-pv-{{
$.Release.Name
}}-{{
$index
}}
{{-
end
}}
{{-
end
}}
securityContext:
{{-
toYaml
.Values.securityContext
|
nindent
12
}}
...
...
@@ -51,11 +55,16 @@ spec:
value:
{{
.value
|
quote
}}
{{-
end
}}
{{-
end
}}
{{-
if
.Values.hostPathVolumes
}}
{{-
if
or
.Values.persistentVolumeClaims
.Values.hostPathVolumes
}}
volumes:
{{-
range
$index,
$hostPathConfiguration
:=
.Values.hostPathVolumes
}}
-
name:
ix-host-path-{{
$.Release.Name
}}-{{
$index
}}
hostPath:
path:
{{
$hostPathConfiguration.hostPath
}}
{{-
end
}}
{{-
range
$index,
$claim
:=
.Values.persistentVolumeClaims
}}
-
name:
ix-pv-{{
$.Release.Name
}}-{{
$index
}}
persistentVolumeClaim:
claimName:
ix-pv-claim-{{
$.Release.Name
}}-{{
$index
}}
{{-
end
}}
{{-
end
}}
charts/ix-chart/2009.0.1/templates/persistent-volume-claims.yaml
0 → 100644
View file @
c3c8f25c
{{
- range $index
,
$claim
:
= .Values.persistentVolumeClaims
}}
---
apiVersion
:
v1
kind
:
PersistentVolumeClaim
metadata
:
name
:
ix-pv-claim-{{ $.Release.Name }}-{{ $index }}
spec
:
storageClassName
:
ix-storage-class-{{ $.Release.Name }}
resources
:
requests
:
storage
:
{{
$claim.capacity
}}
accessModes
:
-
ReadWriteMany
{{
- end
}}
charts/ix-chart/2009.0.1/values.yaml
View file @
c3c8f25c
...
...
@@ -16,3 +16,4 @@ externalInterfaces: []
# Storage related configuration
hostPathVolumes
:
[]
persistentVolumeClaims
:
[]
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