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
UserContainer swagger definition not matching command line client #2835
Comments
You're quite correct - I wonder if this is a problem with Golang |
Yes. There are multiple instances, cf |
Ok. I've investigated - and I believe this is correct - the Swagger reflects the API, not the YAML. These are different, that is to be expected. |
Thank you for investigating this. Instead of pushing swagger-spec generated YAML through the argoclient, I have tried calling the API directly with a
happens because the API appears to expect the |
Hmm. Needs further investigate. |
|
What happened:
The API swagger file for release 2.7 (https://github.com/argoproj/argo/blob/release-2.7/api/openapi-spec/swagger.json) defines a UserContainer as a
and the
sidecars
property of aTemplate
as an array ofUserContainers
.In the sidecar example at https://github.com/argoproj/argo/blob/master/examples/sidecar.yaml, the YAML for the sidecar property looks like:
whereas the swagger file suggests it should be generated as:
However, the argo command line client will not accept this format:
What you expected to happen:
The argo client (version 2.7.5) to accept the UserContainer in the form from the 2.7 swagger file.
It looks like the example and command line client still follow the swagger file from release 2.5.
Environment:
Message from the maintainers:
If you are impacted by this bug please add a 👍 reaction to this issue! We often sort issues this way to know what to prioritize.
The text was updated successfully, but these errors were encountered: