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

feat(Rancher 2): AWS-304 Add option to set max body size #20

Merged
merged 3 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ inputs:
proxy-buffer-size:
required: false
description: 'Max buffer size of the nginx controller ingress (Rancher2)'
proxy-body-size:
required: false
description: "Set max body size for ingress, '0' is unlimited. Read more - https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/nginx-configuration/annotations.md#custom-max-body-size"
readytest-initialdelay:
required: false
description: 'Delay in seconds before initial readiness probing'
Expand Down
1 change: 1 addition & 0 deletions src/apiService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export const deploy = async (authToken: string, deployment: Deployment) => {
volumes: deployment.volumes,
volumeMounts: deployment.volumeMounts,
proxyBufferSize: deployment.proxyBufferSize,
proxyBodySize: deployment. proxyBodySize,
OysteinVesth marked this conversation as resolved.
Show resolved Hide resolved
secrets: deployment.secrets,
resources: deployment.resources
},
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ const run = async () => {
const containerPortString = core.getInput("container-port");
const httpEndpoint = core.getInput("http-endpoint") || undefined;
const proxyBufferSize = core.getInput("proxy-buffer-size");
const proxyBodySize = core.getInput("proxy-body-size");
const readinessProbe = getProbeConfiguration(core, "readytest");
const livenessProbe = getProbeConfiguration(core, "healthtest");
const volumes = getVolumeConfig(
Expand Down Expand Up @@ -119,6 +120,7 @@ const run = async () => {
imageName,
deployerName: deployerName,
proxyBufferSize,
proxyBodySize: proxyBodySize && proxyBodySize.length > 0 ? proxyBodySize : undefined,
resources,
};
console.log(JSON.stringify(deployParams));
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export type Deployment = {
secrets: { [name: string]: string };
deployerName: string;
proxyBufferSize: string;
proxyBodySize: string;
resources: Resources;
};

Expand Down
Loading