-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
UPSTREAM: 30162: return err on oc run --image
with invalid value
#10250
UPSTREAM: 30162: return err on oc run --image
with invalid value
#10250
Conversation
os::log::stacktrace::install | ||
trap os::test::junit::reconcile_output EXIT | ||
|
||
# Cleanup cluster resources created by this test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only add this if you need it
[test] |
5de2606
to
e072f55
Compare
oc run --image
with invalid value
e072f55
to
e5a882f
Compare
@ncdc PTAL |
oc run --image
with invalid valueoc run --image
with invalid value
Do not merge until the upstream has merged |
b5de697
to
2c30345
Compare
flake re[test] |
1 similar comment
flake re[test] |
oc run --image
with invalid valueoc run --image
with invalid value
2c30345
to
be9e8ea
Compare
@openshift-bot, the last build failed from the following flakes:
re[test] |
Evaluated for origin test up to be9e8ea |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/7736/) |
|
oc run --image
with invalid valueoc run --image
with invalid value
[merge] |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/7736/) (Image: devenv-rhel7_4813) |
Evaluated for origin merge up to be9e8ea |
Related BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1258354
UPSTREAM: kubernetes/kubernetes#30162
When running
oc run <buildconfigname> --image="Invalid$$%ImageValue%%__"
, a deploymentconfig is successfully created with an image name that is not a valid value for an image reference.This patch validates that the image name is a valid image reference, and returns an error before creating a deployment config if an invalid value is passed.
$ oc run test --image="Invalid__%imagename"
cc @fabianofranz