Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Commit

Permalink
add debug log for kubectl
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenlacy committed Apr 9, 2021
1 parent 68d9bd2 commit b56236f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/monokube/monokube.go
Expand Up @@ -327,14 +327,14 @@ func applyManifests(packages []Package, runCondition string) {
}

}
fmt.Printf("file size: %s\n", len(manifest.File))
err := runBackground(pkg, "bash", "-c", fmt.Sprintf("echo '%s' | kubectl apply %s%s -f -", manifest.File, output, dryRun))
// color.Cyan("applying: %s\n", )
if err != nil {
color.New(color.FgRed).Add(color.Bold).Printf("error deploying %s %e \n", pkg.Name, err.Error())
break
}

fmt.Println("applying: ", pkg.Kind, manifest.Kube.Name)
if !*flagDryRun {
runBackground(pkg, "kubectl", "rollout", "status", pkg.Kind+"/"+manifest.Kube.Name, "-n", manifest.Kube.Namespace)
}
Expand Down

0 comments on commit b56236f

Please sign in to comment.