Repository navigation
logs: Support all flags for builds and deployments - #5396
Conversation
@smarterclayton I remember you said the query parameter deserialization had limitations. Are anonymous structs one of those limitations? |
|
Anonymous inline structs. PodLogOptions has worked for a while (unless On Mon, Oct 26, 2015 at 10:00 AM, David Eads [email protected]
|
|
that's a pity |
|
Is it possible to inline named structs? |
No. Looks like it might be into the deserialization code for you :) |
|
There's no way conversion changes will go into 3.1, so if you need it this On Tue, Oct 27, 2015 at 7:50 AM, David Eads [email protected]
|
|
@deads2k I prefer we defer adding PodLogOptions to our logOptions objects until the converion gets fixed. In the meantime, we can add all the PodLogOptions fields manually if we really want full logs support for builds/deployments. WDYT? |
I'm ok with deferring, I don't want to ship APIs we don't like. |
|
+1 On Tue, Oct 27, 2015 at 6:40 PM, David Eads [email protected]
|
|
@Kargakis based on IRC, @smarterclayton wants the functionality. That means manually including the values, writing reflective tests to ensure we don't drift, and being chased by un-deserializeable spiders. |
|
@deads2k added the fields manually and wrote reflective tests. PTAL |
There was a problem hiding this comment.
build the PodLogOptions and call teh correct validate method.
There was a problem hiding this comment.
build the PodLogOptions and call teh correct validate method.
The logic to build it should probably be the api/helpers.go since somewhere else will need to do it too
|
@smarterclayton API changes. The query parameter serialization has forced ugliness. |
|
API approved |
|
@Kargakis descriptions and then lgtm. |
Yes the descriptions should be included in the swagger. Try |
|
[test] |
Fields like Follow and NoWait already had description fields but I don't see them in the spec. That's why I cannot get any diff from the rest. |
|
Please hold off merging this until #5393 gets in. |
|
I think it's pretty straightforward, will add and test it tomorrow. On Thu, Oct 29, 2015 at 7:05 PM, David Eads [email protected]
|
|
Works fine. PTAL in client/buildlogs.go and client/deplyomentlogs.go |
|
Evaluated for origin test up to 298c6b4 |
|
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/6429/) |
Much nicer. lgtm, merge in the order you like, but #5393 is cursed. |
|
Ok, let's [merge] this for a change. |
|
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/6429/) (Image: devenv-rhel7_2606) |
|
Evaluated for origin merge up to 298c6b4 |
Merged by openshift-bot
@deads2k podLogOptions doesn't deserialize correctly in the server and I am not sure what else am I missing...
I had to update v1beta3 conversions manually (both in Origin and Kube) and updating swagger doesn't work too.
Fixes #5070, https://bugzilla.redhat.com/show_bug.cgi?id=1273948, and https://bugzilla.redhat.com/show_bug.cgi?id=1273817.