Skip to content

Commit

Permalink
remove not used args
Browse files Browse the repository at this point in the history
  • Loading branch information
Shell32-Natsu committed Sep 14, 2020
1 parent 5c8c7a0 commit e5809e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/config/internal/commands/run-fns.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (r *RunFnRunner) runE(c *cobra.Command, args []string) error {

// getContainerFunctions parses the commandline flags and arguments into explicit
// Functions to run.
func (r *RunFnRunner) getContainerFunctions(c *cobra.Command, args, dataItems []string) (
func (r *RunFnRunner) getContainerFunctions(c *cobra.Command, dataItems []string) (
[]*yaml.RNode, error) {

if r.Image == "" && r.StarPath == "" && r.ExecPath == "" && r.StarURL == "" {
Expand Down Expand Up @@ -198,7 +198,7 @@ data: {}
}
err = rc.PipeE(
yaml.LookupCreate(yaml.MappingNode, "metadata", "annotations"),
yaml.SetField("config.kubernetes.io/function", yaml.NewScalarRNode(value)))
yaml.SetField(runtimeutil.FunctionAnnotationKey, yaml.NewScalarRNode(value)))
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -272,7 +272,7 @@ func (r *RunFnRunner) preRunE(c *cobra.Command, args []string) error {
return errors.Errorf("0 or 1 arguments supported, function arguments go after '--'")
}

fns, err := r.getContainerFunctions(c, args, dataItems)
fns, err := r.getContainerFunctions(c, dataItems)
if err != nil {
return err
}
Expand Down

0 comments on commit e5809e4

Please sign in to comment.