-
Notifications
You must be signed in to change notification settings - Fork 45
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
Adds docs on how to run operator locally #42
Conversation
Welcome @somtochiama! |
Running the operator locally: | ||
|
||
```bash | ||
export GOPATH=<go-path> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this @somtochiama !
We're using Go modules for this project so a user shouldn't need to set GOPATH. Do these instructions work with setting GO111MODULE=on
instead of GOPATH=..?
Instead of go build and running bin/manager, i'd suggest putting make run
after make install
. This ensures all files are generated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay. I will try to do it without setting GOPATH and if it works, I will update the PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "generate" command in the make file checks if the GOPATH is set else it exits with an error. Therefore make run need the GOPATH Set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ohh- thank you! Let's go with this as it is then. We're still in the weird world where go modules exists, but not everywhere :)
/lgtm |
/approved |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: johnsonj, SomtochiAma The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This PR adds how to run the operator locally.