Skip to content

Commit

Permalink
Update inputs to be consistent (#414)
Browse files Browse the repository at this point in the history
Adjust inputs to be consistent.

Fixes
#413
  • Loading branch information
sethvargo authored May 29, 2024
1 parent 60b31d4 commit 82d02e0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
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

0 comments on commit 82d02e0

Please sign in to comment.