Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

While starting Controller, ensure ThirdPartyResource "Alert" #29

Merged
merged 3 commits into from Feb 13, 2017

Conversation

mirshahriar
Copy link
Contributor

If not available, create ThirdPartyResource

@mirshahriar mirshahriar self-assigned this Feb 13, 2017
@@ -18,6 +18,7 @@ type Watcher struct {
func (watch *Watcher) Run() {
watch.Watcher.Dispatch = watch.Dispatch
watch.Storage = &stash.Storage{}
watch.setup()
Copy link

Choose a reason for hiding this comment

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

make setup as the first line. move

watch.Watcher.Dispatch = watch.Dispatch
watch.Storage = &stash.Storage{}

inside setup.

)

func CreateThirdPartyResource(kubeClient clientset.Interface) error {
_, err := kubeClient.Extensions().ThirdPartyResources().Get("alert.appscode.com")
Copy link

Choose a reason for hiding this comment

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

use "alert" + "." + aci.V1beta1SchemeGroupVersion.Group

},
Versions: []extensions.APIVersion{
{
Name: "v1beta1",
Copy link

Choose a reason for hiding this comment

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

use aci.V1beta1SchemeGroupVersion.Version

@sadlil
Copy link

sadlil commented Feb 13, 2017

LGTM

@sadlil sadlil added the lgtm label Feb 13, 2017
@sadlil sadlil merged commit bdfb149 into master Feb 13, 2017
@sadlil sadlil deleted the create-tpr branch February 13, 2017 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants