File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ import (
26
26
"github.com/kubernetes-sigs/kubebuilder/cmd/kubebuilder/util"
27
27
"github.com/markbates/inflect"
28
28
"github.com/spf13/cobra"
29
+ "strings"
29
30
)
30
31
31
32
var nonNamespacedKind bool
@@ -82,9 +83,10 @@ func RunCreateResource(cmd *cobra.Command, args []string) {
82
83
"Regenerate after editing resources files by running `kubebuilder build generated`.\n " )
83
84
build .RunGenerate (cmd , args )
84
85
}
85
- fmt .Printf ("Next: Install API and run controller with " +
86
- "`GOBIN=$(pwd)/bin go install <your-project-go-package>/cmd/controller-manager`.\n " +
87
- "bin/controller-manager --kubeconfig ~/.kube/config\n " )
86
+ fmt .Printf ("Next: Install the API, run the controller and create an instance with:\n " +
87
+ "$ GOBIN=$(pwd)/bin go install <your-project-go-package>/cmd/controller-manager\n " +
88
+ "$ bin/controller-manager --kubeconfig ~/.kube/config\n " +
89
+ "$ kubectl apply -f hack/sample/" + strings .ToLower (createutil .KindName ) + ".yaml\n " )
88
90
}
89
91
90
92
func createResource (boilerplate string ) {
Original file line number Diff line number Diff line change @@ -81,7 +81,8 @@ func runInitRepo(cmd *cobra.Command, args []string) {
81
81
//os.MkdirAll("bin", 0700)
82
82
83
83
createBoilerplate ()
84
- fmt .Printf ("Next: Create a resource using `kubebuilder create resource`.\n " )
84
+ fmt .Printf ("Next: Define a resource with:\n " +
85
+ "$ kubebuilder create resource\n " )
85
86
}
86
87
87
88
func execute (path , templateName , templateValue string , data interface {}) {
You can’t perform that action at this time.
0 commit comments