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
Bug 1261548 - oc run --attach support for DeploymentConfig #5271
Conversation
[test] |
} | ||
switch t := object.(type) { | ||
case *deployapi.DeploymentConfig: | ||
var pods *api.PodList |
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.
For this var, do you intend to retrieve the deployer pod or the first pod of the first deployment's RC? As of now, the intent for oc logs dc/foo
is to show the deployer pod's logs.
@Kargakis if you have opinions.
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.
This should be consistent with oc logs dc/foo
so I think returning the deployer pod here is the right thing to do.
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.
I'm not confident it should be the deployer pod. If you do oc run nginx --image=nginx --attach
aren't you expecting to attach to the actual nginx pod? In fact you may not even know a deployment is involved in this oc run
operation. @liggitt opinion?
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.
@fabianofranz, had a closer look to oc run
and I think you are right.
373b619
to
48b66fc
Compare
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/6193/) |
Why do we want this? |
@smarterclayton If you try for example That's because we override |
48b66fc
to
54a472e
Compare
54a472e
to
d53042b
Compare
d53042b
to
36c5d90
Compare
36c5d90
to
61b4764
Compare
61b4764
to
65775d3
Compare
Other comments? |
Evaluated for origin test up to 65775d3 |
Open a follow up to make this logic cleaner (a condition that waits until there is a pod in the replication controller, in upstream pkg/client/conditions.go). |
LGTM [merge] |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/6193/) (Image: devenv-rhel7_2589) |
Evaluated for origin merge up to 65775d3 |
Merged by openshift-bot
@smarterclayton thanks. added #5484 |
No description provided.