We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c0cad8 commit 3127d1cCopy full SHA for 3127d1c
commands/operator-sdk/cmd/generate/k8s.go
@@ -17,6 +17,7 @@ package generate
17
import (
18
"fmt"
19
"io/ioutil"
20
+ "os"
21
"os/exec"
22
"path/filepath"
23
@@ -67,11 +68,13 @@ func K8sCodegen() {
67
68
apisPkg,
69
groupVersions,
70
}
- out, err := exec.Command(genGroupsCmd, args...).CombinedOutput()
71
+ cgCmd := exec.Command(genGroupsCmd, args...)
72
+ cgCmd.Stdout = os.Stdout
73
+ cgCmd.Stderr = os.Stderr
74
+ err = cgCmd.Run()
75
if err != nil {
76
log.Fatalf("failed to perform code-generation: (%v)", err)
77
- fmt.Println(string(out))
78
79
80
// getGroupVersions parses the layout of pkg/apis to return the API groups and versions
0 commit comments