Skip to content

Commit

Permalink
Improve compile message from run
Browse files Browse the repository at this point in the history
  • Loading branch information
pwittrock committed Mar 21, 2018
1 parent c342968 commit f6921db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/kubebuilder/create/resource/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"log"
"os"

generatecmd "github.com/kubernetes-sigs/kubebuilder/cmd/kubebuilder/generate"
createutil "github.com/kubernetes-sigs/kubebuilder/cmd/kubebuilder/create/util"
generatecmd "github.com/kubernetes-sigs/kubebuilder/cmd/kubebuilder/generate"
"github.com/kubernetes-sigs/kubebuilder/cmd/kubebuilder/util"
"github.com/markbates/inflect"
"github.com/spf13/cobra"
Expand Down Expand Up @@ -84,7 +84,7 @@ func RunCreateResource(cmd *cobra.Command, args []string) {
generatecmd.RunGenerate(cmd, args)
}
fmt.Printf("Next: Install the API, run the controller and create an instance with:\n" +
"$ GOBIN=$(pwd)/bin go install <your-project-go-package>/cmd/controller-manager\n" +
"$ GOBIN=${PWD}/bin go install ${PWD#$GOPATH/src/}/cmd/controller-manager\n" +
"$ bin/controller-manager --kubeconfig ~/.kube/config\n" +
"$ kubectl apply -f hack/sample/" + strings.ToLower(createutil.KindName) + ".yaml\n")
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/kubebuilder/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Typical project lifecycle:
- run the controller as a local process (e.g. not in a container), installing APIs into the cluster if they are missing:
GOBIN=$(pwd)/bin go install <your-project-go-package>/cmd/controller-manager
GOBIN=${PWD}/bin go install ${PWD#$GOPATH/src/}/cmd/controller-manager
bin/controller-manager --kubeconfig ~/.kube/config
# In another terminal create a new instance of your resource and watch the controller-manager output
Expand Down

0 comments on commit f6921db

Please sign in to comment.