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

fix(swagger)!: Fixes invalid K8S definitions in swagger.json. Fixes #2888 #2907

Merged
merged 5 commits into from May 4, 2020

Conversation

alexec
Copy link
Contributor

@alexec alexec commented Apr 30, 2020

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
  • The title of the PR is (a) conventional, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234".
  • I've signed the CLA.
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My builds are green. Try syncing with master if they are not.
  • My organization is added to USERS.md.

This is a breaking change:

  • Why? The swagger is wrong and unusable in certain circumstances.
  • Who? Only users generating code from swagger.json. Probably not you then.
  • Migration: Re-generate your code.

Fixes #2888

@alexec
Copy link
Contributor Author

alexec commented Apr 30, 2020

@cburbridge could you please review this PR?

@alexec alexec marked this pull request as ready for review May 1, 2020 14:57
Copy link

@cburbridge cburbridge left a comment

Choose a reason for hiding this comment

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

I have tested the generated swagger file to submit workflows containing volume mounts, artifacts, secret keys selectors etc, and it seems to be just fine to me. I have generated workflow specs based on the above fixed swagger, and in parallel based on the old broken swagger but with the kubernetes definitions manually replaced by correct kubernetes ones. Both cases now produce the exact same spec, and the spec works when submitted.

@cburbridge
Copy link

Thanks!

@alexec alexec requested a review from simster7 May 4, 2020 18:44
@sonarcloud
Copy link

sonarcloud bot commented May 4, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Member

@simster7 simster7 left a comment

Choose a reason for hiding this comment

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

Rubber-stamp

@alexec alexec merged commit 6735537 into argoproj:master May 4, 2020
@alexec alexec deleted the fix-swagger-battle branch May 4, 2020 20:36
@alexec alexec added this to the v2.9 milestone May 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Swagger giving wrong Kubernetes definitions.
3 participants