Skip to content
This repository was archived by the owner on Nov 18, 2020. It is now read-only.

memcached-operator: add memcached-operator example #25

Merged
merged 6 commits into from
Aug 14, 2018

Conversation

AlexNPavel
Copy link
Contributor

This is based on the example in the operator-sdk user-guide and also
includes example tests using the test framework.

This is based on the example in the operator-sdk user-guide and also
includes example tests using the test framework.
@fanminshi
Copy link
Contributor

fanminshi commented Aug 13, 2018

@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"
Copy link
Contributor

@hasbro17 hasbro17 Aug 13, 2018

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"

@fanminshi
Copy link
Contributor

lgtm

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
Copy link
Contributor

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
Copy link
Contributor

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.

@hasbro17
Copy link
Contributor

LGTM

@AlexNPavel AlexNPavel merged commit 9dedad4 into operator-framework:master Aug 14, 2018
@AlexNPavel AlexNPavel deleted the memcached branch August 14, 2018 17:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants