Skip to content

Commit

Permalink
refactor: clean up cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbroks committed Aug 11, 2023
1 parent 0db2bbb commit d3fea9e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/wandb/spec/release/cdk8s/kubectl.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ func KubectApplyCmd(folder string, namespace string) *exec.Cmd {

func KubectlApply(dir string, namespace string) error {
folder := path.Join(dir, "dist")
cmd := exec.Command("kubectl", "apply", "-f", folder, "--prune", "-l", "app=wandb", "-n", namespace)
cmd.Dir = dir
cmd := KubectApplyCmd(folder, namespace)
output, err := cmd.CombinedOutput()
fmt.Println(string(output))
return err
Expand Down

0 comments on commit d3fea9e

Please sign in to comment.