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

Validations #432

Merged
merged 1 commit into from
Mar 14, 2017
Merged

Validations #432

merged 1 commit into from
Mar 14, 2017

Conversation

gianrubio
Copy link
Contributor

@gianrubio gianrubio commented Mar 13, 2017

  • Validate if configmap exist and is in the namespace/name format
  • Verifiy if watch-namespace option exist

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 13, 2017
@k8s-reviewable
Copy link

This change is Reviewable

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 43.265% when pulling 3524361 on gianrubio:validate-configmap into 0cb8f59 on kubernetes:master.

@@ -234,6 +244,13 @@ func createApiserverClient(apiserverHost string, kubeConfig string) (*client.Cli
if err != nil {
return nil, err
}

// test connection
_, err = client.ServerVersion()
Copy link
Member

Choose a reason for hiding this comment

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

Why are you doing this?
If is not possible to reach the api server this error is returned.
In any other case the client will retry the connection.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't realise this, rolled back.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.09%) to 43.126% when pulling c6195c4 on gianrubio:validate-configmap into 041f269 on kubernetes:master.

@aledbf aledbf self-assigned this Mar 14, 2017
@aledbf
Copy link
Member

aledbf commented Mar 14, 2017

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 14, 2017
@aledbf
Copy link
Member

aledbf commented Mar 14, 2017

@gianrubio thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants