Skip to content

Commit

Permalink
feat: expose the entrypoint flags for adding flags like --max-upload-…
Browse files Browse the repository at this point in the history
…size easily (#168)

Signed-off-by: Harikrishnan Balagopal <[email protected]>
  • Loading branch information
HarikrishnanBalagopal authored Feb 23, 2024
1 parent d2c32f5 commit 101e42c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@ spec:
command:
- move2kube-api
args:
- '--log-level=trace'
- '--host=$(MY_POD).$(MY_SERVICE)'
- '--static-files-dir=build'
{{- if .Values.secret.api.enable }}
- '--config=config.yaml'
{{- end }}
- '--host=$(MY_POD).$(MY_SERVICE)'
{{- range .Values.deployment.api.extraArgs }}
- '{{ . }}'
{{- end }}
imagePullPolicy: Always
ports:
- containerPort: 8080
Expand Down
20 changes: 13 additions & 7 deletions helm-charts/move2kube/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,21 @@
"imageTag": {
"type": "string"
},
"extraArgs": {
"type": "array",
"items": {
"type": "string"
}
},
"memory": {
"type": "string"
},
"cpu": {
"type": "string"
},
"initContainer": {
"type": "boolean"
}
"initContainer": {
"type": "boolean"
}
},
"required": [
"cpu",
Expand Down Expand Up @@ -163,9 +169,9 @@
"storageSize": {
"type": "string"
},
"readWriteMany": {
"type": "boolean"
}
"readWriteMany": {
"type": "boolean"
}
},
"required": [
"createNew",
Expand Down Expand Up @@ -272,4 +278,4 @@
"title": "SecurityContextContraints"
}
}
}
}
1 change: 1 addition & 0 deletions helm-charts/move2kube/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ deployment:
privilegedPods: false # some optional features of Move2Kube require privileged pods
imageName: "quay.io/konveyor/move2kube-ui"
imageTag: "latest"
extraArgs: ["--log-level=trace", "--max-upload-size=104857600"]
memory: "1Gi"
cpu: "300m"
initContainer: false
Expand Down

0 comments on commit 101e42c

Please sign in to comment.