Skip to content

Commit

Permalink
add checking GOROOT environment variable
Browse files Browse the repository at this point in the history
If there is no GOROOT environment variable, 'operator-sdk add api'
fails.
see operator-framework#1854 (comment)
  • Loading branch information
t-matsuo committed Dec 19, 2019
1 parent 6b0412b commit bd19021
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ $ cd $HOME/projects/example-inc/
$ operator-sdk new app-operator --repo github.com/example-inc/app-operator
$ cd app-operator

# Check if GOROOT environment variable exists
$ env | grep GOROOT
GOROOT=/usr/lib/golang

# Add a new API for the custom resource AppService
$ operator-sdk add api --api-version=app.example.com/v1alpha1 --kind=AppService

Expand Down

0 comments on commit bd19021

Please sign in to comment.