Skip to content

Commit 5959bea

Browse files
authored
fix: cli doesn't respect replica when creating function (#145)
Signed-off-by: Zike Yang <[email protected]>
1 parent 01efd31 commit 5959bea

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cmd/client/create/cmd.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,9 @@ func exec(_ *cobra.Command, _ []string) {
6868
Runtime: &restclient.FunctionRuntime{Config: map[string]interface{}{
6969
fs_cmmon.RuntimeArchiveConfigKey: config.archive,
7070
}},
71-
Inputs: config.inputs,
72-
Output: config.output,
71+
Inputs: config.inputs,
72+
Output: config.output,
73+
Replicas: config.replica,
7374
}
7475

7576
res, err := cli.DefaultAPI.ApiV1FunctionFunctionNamePost(context.Background(), config.name).Function(f).Execute()

0 commit comments

Comments
 (0)