Skip to content

Conversation

@phemmer
Copy link
Contributor

@phemmer phemmer commented Apr 7, 2018

This section of the doc was fairly out of date.
Updated it, as well as added a test to ensure any future changes help changes are properly documented.

fmt.Fprintf(os.Stderr, "%s\n", err)
os.Exit(1)
}
os.Exit(0)
Copy link
Contributor Author

@phemmer phemmer Apr 7, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change (splitting main into 2 functions) was so that I could call Main in the test and not have it os.Exit().

@murali-reddy
Copy link
Member

@phemmer thanks. Indeed flags went outdated. Thanks for adding unit test as well, to make future proof.

@phemmer
Copy link
Contributor Author

phemmer commented Apr 7, 2018

Fixed for failing build. For some reason go test ./ generated different output than go test github.com/cloudnativelabs/kube-router (one of the items was annotated as uints vs uintSlice). Don't know why. Only reason I can figure is due to vendoring, but they should both use it.

@murali-reddy murali-reddy merged commit 4fd5cb8 into cloudnativelabs:master Apr 7, 2018
@murali-reddy
Copy link
Member

thanks @phemmer

@phemmer phemmer deleted the update-doc branch April 7, 2018 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants