Skip to content

Update inputs to be consistent #414

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

Merged
merged 1 commit into from
May 29, 2024
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,10 @@ jobs:

- <a name="all_traffic_on_latest_revision"></a><a href="#user-content-all_traffic_on_latest_revision"><code>all_traffic_on_latest_revision</code></a>: _(Optional, default: `true`)_ If true, the latest function revision will be served all traffic.

- <a name="available_cpu"></a><a href="#user-content-available_cpu"><code>available_cpu</code></a>: _(Optional)_ The number of available CPUs to set (e.g. 0.5, 2, 2000m). By default, a
- <a name="cpu"></a><a href="#user-content-cpu"><code>cpu</code></a>: _(Optional)_ The number of available CPUs to set (e.g. 0.5, 2, 2000m). By default, a
new function's available CPUs is determined based on its memory value.

- <a name="available_memory"></a><a href="#user-content-available_memory"><code>available_memory</code></a>: _(Optional)_ The amount of memory available for the function to use. Allowed values are
- <a name="memory"></a><a href="#user-content-memory"><code>memory</code></a>: _(Optional)_ The amount of memory available for the function to use. Allowed values are
of the format: <number><unit> with allowed units of "k", "M", "G", "Ki",
"Mi", "Gi" (e.g 128M, 10Mb, 1024Gib).

Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,13 @@ inputs:
default: true
required: false

available_cpu:
cpu:
description: |-
The number of available CPUs to set (e.g. 0.5, 2, 2000m). By default, a
new function's available CPUs is determined based on its memory value.
required: false

available_memory:
memory:
description: |-
The amount of memory available for the function to use. Allowed values are
of the format: <number><unit> with allowed units of "k", "M", "G", "Ki",
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async function run() {
getInput('all_traffic_on_latest_revision'),
true,
);
const availableCpu = presence(getInput('available_cpu'));
const availableCpu = presence(getInput('cpu'));
const availableMemory = presence(getInput('memory')) || '256Mi';
const environmentVariables = parseKVString(getInput('environment_variables'));
const ingressSettings = toEnum(
Expand Down
Loading