Skip to content

Commit 4128ad4

Browse files
chore: sync the helm chart from the UI repo (#60)
Signed-off-by: Harikrishnan Balagopal <[email protected]>
1 parent 1920bf9 commit 4128ad4

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

helm-charts/move2kube/templates/move2kube-api-stateful-set.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
labels:
1717
move2kube.konveyor.io/service: "{{ .Release.Name }}-move2kubeapi"
1818
spec:
19-
{{- if .Values.persistentVolumeClaim.enable }}
19+
{{- if and (.Values.deployment.api.initContainer) (.Values.persistentVolumeClaim.enable) }}
2020
initContainers:
2121
- name: change-perms
2222
image: quay.io/konveyor/busybox

helm-charts/move2kube/templates/persistent-volume-claim.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@ metadata:
88
spec:
99
storageClassName: "{{ .Values.persistentVolumeClaim.storageClassName }}"
1010
accessModes:
11+
{{- if or (gt (int .Values.deployment.api.replicas) 1) (.Values.deployment.database.enable) (.Values.persistentVolumeClaim.readWriteMany) }}
1112
- ReadWriteMany
13+
{{- else }}
14+
- ReadWriteOnce
15+
{{- end }}
1216
volumeMode: Filesystem
1317
resources:
1418
requests:
1519
storage: "{{ .Values.persistentVolumeClaim.storageSize }}"
16-
{{- end }}
20+
{{- end }}

helm-charts/move2kube/values.schema.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@
7474
},
7575
"cpu": {
7676
"type": "string"
77-
}
77+
},
78+
"initContainer": {
79+
"type": "boolean"
80+
}
7881
},
7982
"required": [
8083
"cpu",
@@ -156,7 +159,10 @@
156159
},
157160
"storageSize": {
158161
"type": "string"
159-
}
162+
},
163+
"readWriteMany": {
164+
"type": "boolean"
165+
}
160166
},
161167
"required": [
162168
"createNew",

helm-charts/move2kube/values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ deployment:
55
imageTag: "" # if empty we will use AppVersion from the Chart.yaml as the tag
66
memory: "1Gi"
77
cpu: "300m"
8+
initContainer: false
89
authServer:
910
enable: false
1011
replicas: 1
@@ -27,6 +28,7 @@ persistentVolumeClaim:
2728
name: "" # if createNew is false this MUST contain the name of an existing persistent volume claim
2829
storageClassName: ""
2930
storageSize: 1Gi
31+
readWriteMany: true
3032
secret:
3133
api:
3234
enable: false

0 commit comments

Comments
 (0)