-
Notifications
You must be signed in to change notification settings - Fork 131
memcached-operator: add memcached-operator example #25
Conversation
This is based on the example in the operator-sdk user-guide and also includes example tests using the test framework.
@AlexNPavel could you add a readme on demonstrating the newly added testing framework and the testing command for this operator. we can do that in a separate PR if you like. |
"testing" | ||
"time" | ||
|
||
operator "github.com/operator-framework/operator-sdk/test/test-framework/pkg/apis/cache/v1alpha1" |
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.
This should be using the memcached CR type from within its own project:
cachev1alpha1 "github.com/operator-framework/operator-sdk-samples/memcached-operator/pkg/apis/cache/v1alpha1"
lgtm |
memcached-operator/README.md
Outdated
First, checkout and install the operator-sdk CLI: | ||
``` | ||
$ cd $GOPATH/src/github.com/operator-framework/operator-sdk | ||
$ git checkout master // currently, there are not releases that include the test framework, so use the master for now |
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.
there are no releases
### Initial Setup | ||
Checkout this Memcached Operator repository | ||
``` | ||
$ mkdir $GOPATH/src/github.com/operator-framework |
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.
This should already be present if they installed the sdk binary from github.com/operator-framework/operator-sdk
in the previous step. So we can remove this.
LGTM |
This is based on the example in the operator-sdk user-guide and also
includes example tests using the test framework.