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

commands/.../test/local,pkg/test: add image flag to test local #768

Merged
merged 7 commits into from
Nov 27, 2018

Conversation

AlexNPavel
Copy link
Contributor

Description of the change: Adds a --image flag to the test local subcommand. Currently only supports 1 deployment with 1 container (we may add support for multi-deployment, multi-container manifests in the future, but it would also require more flags from the user to identify which image needs to be replaced).

Motivation for the change: See #746

Resolves #746

cc @awgreene

@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Nov 20, 2018
@AlexNPavel AlexNPavel force-pushed the test-spec-image branch 2 times, most recently from 4bbdfe6 to 99a96b2 Compare November 20, 2018 22:54
@openshift-ci-robot openshift-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 20, 2018
@openshift-ci-robot openshift-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Nov 21, 2018
Copy link
Member

@estroz estroz left a comment

Choose a reason for hiding this comment

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

I'm ok with the idea, one question.

commands/operator-sdk/cmd/test/local.go Outdated Show resolved Hide resolved
commands/operator-sdk/cmd/test/local.go Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@hasbro17
Copy link
Contributor

@AlexNPavel Can we add a one line explanation and example usage of this flag in the writing-e2e-tests doc?

@AlexNPavel AlexNPavel force-pushed the test-spec-image branch 2 times, most recently from 504e3ff to 23928a2 Compare November 27, 2018 18:21
@AlexNPavel
Copy link
Contributor Author

@hasbro17 Added documentation

doc/sdk-cli-reference.md Outdated Show resolved Hide resolved
Copy link
Contributor

@hasbro17 hasbro17 left a comment

Choose a reason for hiding this comment

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

LGTM after nit.

@AlexNPavel AlexNPavel merged commit 38d9863 into operator-framework:master Nov 27, 2018
@AlexNPavel AlexNPavel deleted the test-spec-image branch November 27, 2018 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants