Skip to content

Conversation

hasbro17
Copy link
Contributor

Updated the README to fix a few issues and add logging to the memcached example handler to help with debugging in case someone has an issue with the example.
This gives the sample output:

time="2018-03-12T20:00:52Z" level=info msg="Go Version: go1.9.1"
time="2018-03-12T20:00:52Z" level=info msg="Go OS/Arch: linux/amd64"
time="2018-03-12T20:00:52Z" level=info msg="operator-sdk Version: v0.0.0+git"
time="2018-03-12T20:00:52Z" level=info msg="starting memcacheds controller"
time="2018-03-12T20:01:29Z" level=info msg="Received Memcached: example"
time="2018-03-12T20:01:29Z" level=info msg="Creating Deployment: example"
time="2018-03-12T20:01:29Z" level=info msg="Creating Service: example"

/cc @fanminshi

"github.com/coreos/operator-sdk/pkg/sdk/action"
"github.com/coreos/operator-sdk/pkg/sdk/handler"
"github.com/coreos/operator-sdk/pkg/sdk/types"
"github.com/sirupsen/logrus"
Copy link
Contributor

Choose a reason for hiding this comment

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

new line before "github.com/sirupsen/logrus"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

github.com/coreos/operator-sdk/* and github.com/sirupsen/logrus are both vendored imports external to the memcached project.
I think our convention is to separate project and non-project imports.

Copy link
Contributor

Choose a reason for hiding this comment

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

you are right. I somehow thought we are modifying code inside operator-sdk

@fanminshi
Copy link
Contributor

lgtm

@hasbro17
Copy link
Contributor Author

Added the step to checkout the tag before installing SDK CLI tool.

@fanminshi
Copy link
Contributor

lgtm

@hasbro17 hasbro17 merged commit 20a8c70 into operator-framework:master Mar 12, 2018
@hasbro17 hasbro17 deleted the haseeb/update-README branch March 12, 2018 21:06
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