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
10424343
Commit
10424343
authored
Oct 12, 2020
by
Waqar Ahmed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove PVC in favor of ix-volumes as latter support rollbacks
parent
b0850487
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
57 deletions
+2
-57
charts/ix-chart/2010.0.1/questions.yaml
charts/ix-chart/2010.0.1/questions.yaml
+0
-31
charts/ix-chart/2010.0.1/templates/_volumes.tpl
charts/ix-chart/2010.0.1/templates/_volumes.tpl
+2
-11
charts/ix-chart/2010.0.1/templates/persistent-volume-claims.yaml
...ix-chart/2010.0.1/templates/persistent-volume-claims.yaml
+0
-14
charts/ix-chart/2010.0.1/values.yaml
charts/ix-chart/2010.0.1/values.yaml
+0
-1
No files found.
charts/ix-chart/2010.0.1/questions.yaml
View file @
10424343
...
...
@@ -245,37 +245,6 @@
type
:
boolean
default
:
false
# Persistent Volume Claims
-
variable
:
persistentVolumeClaims
label
:
"
Persistent
Volume
Claims"
group
:
"
Storage"
schema
:
type
:
list
$ref
:
-
"
validations/persistentVolumeClaims"
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
-
variable
:
name
label
:
"
Persistent
Volume
Claim
Name"
schema
:
type
:
string
required
:
true
# Volumes
-
variable
:
volumes
label
:
"
Volumes"
...
...
charts/ix-chart/2010.0.1/templates/_volumes.tpl
View file @
10424343
...
...
@@ -2,7 +2,7 @@
Volumes
Configuration
*/
}}
{{- define "volumeConfiguration" }}
{{- if or
(or .Values.persistentVolumeClaims .Values.hostPathVolumes) .Values.ix
Volumes }}
{{- if or
.Values.ixVolumes .Values.hostPath
Volumes }}
volumes:
{{- range $index, $hostPathConfiguration := .Values.hostPathVolumes }}
- name: ix-host-path-{{ $.Release.Name }}-{{ $index }}
...
...
@@ -14,11 +14,6 @@ volumes:
hostPath:
path: {{ $hostPathConfiguration.hostPath }}
{{- end }}
{{- range $index, $claim := .Values.persistentVolumeClaims }}
- name: ix-pv-{{ $claim.name }}
persistentVolumeClaim:
claimName: ix-{{ $claim.name }}
{{- end }}
{{- end }}
{{- end }}
...
...
@@ -26,7 +21,7 @@ volumes:
Volume
Mounts
Configuration
*/
}
}
{{- define "volumeMountsConfiguration" }}
{{- if or .Values.hostPathVolumes .Values.
persistentVolumeClaim
s }}
{{- if or .Values.hostPathVolumes .Values.
ixVolume
s }}
volumeMounts:
{{- range $index, $hostPathConfiguration := .Values.hostPathVolumes }}
- mountPath: {{ $hostPathConfiguration.mountPath }}
...
...
@@ -37,9 +32,5 @@ volumeMounts:
- mountPath: {{ $hostPathConfiguration.mountPath }}
name: ix-host-volume-{{ $.Release.Name }}-{{ $index }}
{{- end }}
{{- range $index, $claim := .Values.persistentVolumeClaims }}
- mountPath: {{ $claim.mountPath }}
name: ix-pv-{{ $claim.name }}
{{- end }}
{{- end }}
{{- end }}
charts/ix-chart/2010.0.1/templates/persistent-volume-claims.yaml
deleted
100644 → 0
View file @
b0850487
{{
- range $index
,
$claim
:
= .Values.persistentVolumeClaims
}}
---
apiVersion
:
v1
kind
:
PersistentVolumeClaim
metadata
:
name
:
ix-{{ $claim.name }}
spec
:
storageClassName
:
ix-storage-class-{{ $.Release.Name }}
resources
:
requests
:
storage
:
{{
$claim.capacity
}}
accessModes
:
-
ReadWriteMany
{{
- end
}}
charts/ix-chart/2010.0.1/values.yaml
View file @
10424343
...
...
@@ -16,7 +16,6 @@ externalInterfaces: []
# Storage related configuration
hostPathVolumes
:
[]
persistentVolumeClaims
:
[]
volumes
:
[]
# Probes
...
...
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