File tree 4 files changed +16
-4
lines changed
4 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 16
16
labels :
17
17
move2kube.konveyor.io/service : " {{ .Release.Name }}-move2kubeapi"
18
18
spec :
19
- {{- if .Values.persistentVolumeClaim.enable }}
19
+ {{- if and ( .Values.deployment.api.initContainer) (.Values. persistentVolumeClaim.enable) }}
20
20
initContainers :
21
21
- name : change-perms
22
22
image : quay.io/konveyor/busybox
Original file line number Diff line number Diff line change @@ -8,9 +8,13 @@ metadata:
8
8
spec :
9
9
storageClassName : " {{ .Values.persistentVolumeClaim.storageClassName }}"
10
10
accessModes :
11
+ {{- if or (gt (int .Values.deployment.api.replicas) 1) (.Values.deployment.database.enable) (.Values.persistentVolumeClaim.readWriteMany) }}
11
12
- ReadWriteMany
13
+ {{- else }}
14
+ - ReadWriteOnce
15
+ {{- end }}
12
16
volumeMode : Filesystem
13
17
resources :
14
18
requests :
15
19
storage : " {{ .Values.persistentVolumeClaim.storageSize }}"
16
- {{- end }}
20
+ {{- end }}
Original file line number Diff line number Diff line change 74
74
},
75
75
"cpu" : {
76
76
"type" : " string"
77
- }
77
+ },
78
+ "initContainer" : {
79
+ "type" : " boolean"
80
+ }
78
81
},
79
82
"required" : [
80
83
" cpu" ,
156
159
},
157
160
"storageSize" : {
158
161
"type" : " string"
159
- }
162
+ },
163
+ "readWriteMany" : {
164
+ "type" : " boolean"
165
+ }
160
166
},
161
167
"required" : [
162
168
" createNew" ,
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ deployment:
5
5
imageTag : " " # if empty we will use AppVersion from the Chart.yaml as the tag
6
6
memory : " 1Gi"
7
7
cpu : " 300m"
8
+ initContainer : false
8
9
authServer :
9
10
enable : false
10
11
replicas : 1
@@ -27,6 +28,7 @@ persistentVolumeClaim:
27
28
name : " " # if createNew is false this MUST contain the name of an existing persistent volume claim
28
29
storageClassName : " "
29
30
storageSize : 1Gi
31
+ readWriteMany : true
30
32
secret :
31
33
api :
32
34
enable : false
You can’t perform that action at this time.
0 commit comments