Skip to content

Improve compile message from run #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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