-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add max image size parameter #105
base: master
Are you sure you want to change the base?
Add max image size parameter #105
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor adjustment needed
@@ -246,6 +246,7 @@ The following table lists the parameters for the `deployments` component and the | |||
| `deployments.service.nodePort` | Node port for the service | `nil` | | |||
| `deployments.env.DEPLOYMENTS_MIDDLEWARE` | Set the DEPLOYMENTS_MIDDLEWARE variable | `prod` | | |||
| `deployments.env.DEPLOYMENTS_PRESIGN_SECRET` | Set the secret for generating signed url, must be a base64 encoded secret. | random value at start-up time | | |||
| `deployments.env.DEPLOYMENTS_AWS_MAX_IMAGE_SIZE` | Set the max artifact image size in bytes. | `nil`, code defaults to 10GB | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| `deployments.env.DEPLOYMENTS_AWS_MAX_IMAGE_SIZE` | Set the max artifact image size in bytes. | `nil`, code defaults to 10GB | | |
| `deployments.env.DEPLOYMENTS_STORAGE_MAX_IMAGE_SIZE` | Set the max artifact image size in bytes. | `nil`, code defaults to 10GB | |
The AWS_MAX_IMAGE_SIZE
env var is deprecated in favor of STORAGE_MAX_IMAGE_SIZE
: https://github.com/mendersoftware/deployments/blob/master/config.yaml#L212
@@ -87,6 +87,8 @@ spec: | |||
value: {{ .Values.deployments.env.DEPLOYMENTS_AWS_TAG_ARTIFACT | quote }} | |||
- name: DEPLOYMENTS_PRESIGN_SECRET | |||
value: {{ .Values.deployments.env.DEPLOYMENTS_PRESIGN_SECRET | quote }} | |||
- name: DEPLOYMENTS_AWS_MAX_IMAGE_SIZE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- name: DEPLOYMENTS_AWS_MAX_IMAGE_SIZE | |
- name: DEPLOYMENTS_STORAGE_MAX_IMAGE_SIZE |
@@ -87,6 +87,8 @@ spec: | |||
value: {{ .Values.deployments.env.DEPLOYMENTS_AWS_TAG_ARTIFACT | quote }} | |||
- name: DEPLOYMENTS_PRESIGN_SECRET | |||
value: {{ .Values.deployments.env.DEPLOYMENTS_PRESIGN_SECRET | quote }} | |||
- name: DEPLOYMENTS_AWS_MAX_IMAGE_SIZE | |||
value: {{ .Values.deployments.env.DEPLOYMENTS_AWS_MAX_IMAGE_SIZE | quote }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
value: {{ .Values.deployments.env.DEPLOYMENTS_AWS_MAX_IMAGE_SIZE | quote }} | |
value: {{ .Values.deployments.env.DEPLOYMENTS_STORAGE_MAX_IMAGE_SIZE | default 10737418240 | int | toString | quote }} |
A default values is missing. Either set it here, or in the mender/values.yaml
Hi @ksoloway-nuro , thanks for your contribution! I didn't meant to be rude, I thought it was an internal contribution ;) |
Adding AWS_MAX_IMAGE_SIZE parameter to limit size of uploads. Defaults to 10GB.