[DON'T MERGE] example: the play project is a complete mock of what sdk generates#13
Closed
fanminshi wants to merge 1 commit intooperator-framework:masterfrom
fanminshi:mock
Closed
[DON'T MERGE] example: the play project is a complete mock of what sdk generates#13fanminshi wants to merge 1 commit intooperator-framework:masterfrom fanminshi:mock
fanminshi wants to merge 1 commit intooperator-framework:masterfrom
fanminshi:mock
Conversation
fanminshi
commented
Feb 15, 2018
| } | ||
|
|
||
| func (h *Handler) Handle(ctx types.Context, event types.Event) { | ||
| // Fill me |
Contributor
Author
There was a problem hiding this comment.
create an ngix pod here.
fanminshi
commented
Feb 15, 2018
| ) | ||
|
|
||
| func main() { | ||
| namespace := "fill me" |
Contributor
Author
There was a problem hiding this comment.
namespace := "fill me" -> namespace := "default"
fanminshi
commented
Feb 20, 2018
|
|
||
| func main() { | ||
| namespace := "default" | ||
| sdk.Watch(api.PlayServicePlural, namespace, api.PlayService) |
Contributor
Author
There was a problem hiding this comment.
sdk.Watch(api.PlayServicePlural, namespace, api.PlayService) ->
sdk.Watch(api.PlayServicePlural, namespace, api.PlayService, client.MustNewInCluster())
Contributor
Author
|
closing this because this is no longer needed as operator-sdk 0.0.1 milestone is about to complete |
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
the example/play is a mock that contains what the operator-sdk output
when run:
operator-sdk github.com/example.com/play --api-group=play.example.com/v1alpha1