Skip to content

Tidy --validate - #5833

Merged
openshift-bot merged 2 commits into
openshift:masterfrom
deads2k:tidy-validate
Nov 13, 2015
Merged

openshift-bot merged 2 commits into
openshift:masterfrom
deads2k:tidy-validate

Conversation

@deads2k

@deads2k deads2k commented Nov 10, 2015

Copy link
Copy Markdown
Contributor

Fixes #5235

This makes sure that we only set --validate to false by default for oc not, for the kubectl we build.

@Kargakis ptal
@liggitt 1.1.1?

Comment thread pkg/cmd/cli/cli.go

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

validateFlag.Usage == "If true, use a schema to validate the input before sending it"

ouch. Another way would be to validate that schema-cache-dir also exists but I don't feel strongly

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

?

Is this a "How?" to my comment or a "What are you doing here David?"?

@0xmichalis

Copy link
Copy Markdown
Contributor

LGTM

@deads2k

deads2k commented Nov 10, 2015

Copy link
Copy Markdown
Contributor Author

test added.

@deads2k

deads2k commented Nov 10, 2015

Copy link
Copy Markdown
Contributor Author

[test]

@deads2k deads2k added the lgtm Indicates that a PR is ready to be merged. label Nov 10, 2015
Comment thread pkg/cmd/cli/kubectl_compat_test.go Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There is no point is checking DefValue since it is only for the usage message (https://godoc.org/github.com/spf13/pflag#Flag). You probably want .Value.String().

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

There is no point is checking DefValue since it is only for the usage message (https://godoc.org/github.com/spf13/pflag#Flag). You probably want .Value.String().

done

@deads2k

deads2k commented Nov 11, 2015

Copy link
Copy Markdown
Contributor Author

dockerhub [test]

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to b8e54e0

@openshift-bot

Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

scary, but effective

@deads2k

deads2k commented Nov 13, 2015

Copy link
Copy Markdown
Contributor Author

[merge]

@openshift-bot

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/7043/) (Image: devenv-rhel7_2704)

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to b8e54e0

openshift-bot pushed a commit that referenced this pull request Nov 13, 2015
@openshift-bot
openshift-bot merged commit b6c8adf into openshift:master Nov 13, 2015
@deads2k
deads2k deleted the tidy-validate branch February 26, 2016 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants