Skip to content

Commit 82d02e0

Browse files
authored
Update inputs to be consistent (#414)
Adjust inputs to be consistent. Fixes #413
1 parent 60b31d4 commit 82d02e0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,10 @@ jobs:
182182

183183
- <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.
184184

185-
- <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
185+
- <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
186186
new function's available CPUs is determined based on its memory value.
187187

188-
- <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
188+
- <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
189189
of the format: <number><unit> with allowed units of "k", "M", "G", "Ki",
190190
"Mi", "Gi" (e.g 128M, 10Mb, 1024Gib).
191191

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,13 @@ inputs:
199199
default: true
200200
required: false
201201

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

208-
available_memory:
208+
memory:
209209
description: |-
210210
The amount of memory available for the function to use. Allowed values are
211211
of the format: <number><unit> with allowed units of "k", "M", "G", "Ki",

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ async function run() {
6363
getInput('all_traffic_on_latest_revision'),
6464
true,
6565
);
66-
const availableCpu = presence(getInput('available_cpu'));
66+
const availableCpu = presence(getInput('cpu'));
6767
const availableMemory = presence(getInput('memory')) || '256Mi';
6868
const environmentVariables = parseKVString(getInput('environment_variables'));
6969
const ingressSettings = toEnum(

0 commit comments

Comments
 (0)