Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: sync the helm chart from the UI repo #60

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
labels:
move2kube.konveyor.io/service: "{{ .Release.Name }}-move2kubeapi"
spec:
{{- if .Values.persistentVolumeClaim.enable }}
{{- if and (.Values.deployment.api.initContainer) (.Values.persistentVolumeClaim.enable) }}
initContainers:
- name: change-perms
image: quay.io/konveyor/busybox
Expand Down
6 changes: 5 additions & 1 deletion helm-charts/move2kube/templates/persistent-volume-claim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ metadata:
spec:
storageClassName: "{{ .Values.persistentVolumeClaim.storageClassName }}"
accessModes:
{{- if or (gt (int .Values.deployment.api.replicas) 1) (.Values.deployment.database.enable) (.Values.persistentVolumeClaim.readWriteMany) }}
- ReadWriteMany
{{- else }}
- ReadWriteOnce
{{- end }}
volumeMode: Filesystem
resources:
requests:
storage: "{{ .Values.persistentVolumeClaim.storageSize }}"
{{- end }}
{{- end }}
10 changes: 8 additions & 2 deletions helm-charts/move2kube/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@
},
"cpu": {
"type": "string"
}
},
"initContainer": {
"type": "boolean"
}
},
"required": [
"cpu",
Expand Down Expand Up @@ -156,7 +159,10 @@
},
"storageSize": {
"type": "string"
}
},
"readWriteMany": {
"type": "boolean"
}
},
"required": [
"createNew",
Expand Down
2 changes: 2 additions & 0 deletions helm-charts/move2kube/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ deployment:
imageTag: "" # if empty we will use AppVersion from the Chart.yaml as the tag
memory: "1Gi"
cpu: "300m"
initContainer: false
authServer:
enable: false
replicas: 1
Expand All @@ -27,6 +28,7 @@ persistentVolumeClaim:
name: "" # if createNew is false this MUST contain the name of an existing persistent volume claim
storageClassName: ""
storageSize: 1Gi
readWriteMany: true
secret:
api:
enable: false
Expand Down