Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
hirenko-v committed Sep 26, 2024
1 parent e6b8655 commit 299bf36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/job/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func (e *MsgExecutor) Execute(ctx context.Context, in executor.ExecuteInput) (ex
case "run":
fields := strings.Fields(value)
args := fields[2:]
runCmd := fmt.Sprintf("kubectl create job --from=cronjob/%s -n %s --dry-run=client -ojson", fields[0], fields[1])
runCmd := fmt.Sprintf("kubectl create job --from=cronjob/%s -n %s test --dry-run=client -ojson", fields[0], fields[1])
out, _ := plugin.ExecuteCommand(ctx, runCmd, plugin.ExecuteCommandEnvs(envs))
var cronJob map[string]interface{}
err := json.Unmarshal([]byte(out.Stdout), &cronJob)
Expand Down

0 comments on commit 299bf36

Please sign in to comment.