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

api/v1: update swagger to v0.20.1 #9444

Merged
merged 1 commit into from
Oct 21, 2019
Merged

Conversation

aanm
Copy link
Member

@aanm aanm commented Oct 18, 2019

Signed-off-by: André Martins andre@cilium.io


This change is Reviewable

@aanm aanm added kind/enhancement This would improve or streamline existing functionality. pending-review labels Oct 18, 2019
@aanm aanm requested a review from a team October 18, 2019 11:58
@aanm aanm requested review from a team as code owners October 18, 2019 11:58
@aanm
Copy link
Member Author

aanm commented Oct 18, 2019

test-me-please

@aanm aanm added wip and removed pending-review labels Oct 18, 2019
@aanm aanm force-pushed the pr/update-swagger-to-v0.20.1 branch from 15df65b to 844541b Compare October 18, 2019 12:18
@aanm aanm requested a review from a team as a code owner October 18, 2019 12:18
@aanm aanm requested a review from a team October 18, 2019 12:18
@aanm aanm requested a review from a team as a code owner October 18, 2019 12:18
@coveralls
Copy link

coveralls commented Oct 18, 2019

Coverage Status

Coverage decreased (-0.003%) to 45.593% when pulling f82573e on pr/update-swagger-to-v0.20.1 into d1fecef on master.

Signed-off-by: André Martins <andre@cilium.io>
@aanm aanm force-pushed the pr/update-swagger-to-v0.20.1 branch from 844541b to f82573e Compare October 18, 2019 12:44
@aanm
Copy link
Member Author

aanm commented Oct 18, 2019

test-me-please

@aanm aanm added pending-review and removed wip labels Oct 18, 2019
@nebril
Copy link
Member

nebril commented Oct 18, 2019

@aanm are there any hand-written changes in this PR, or is it fully generated?

@@ -16,7 +16,7 @@ BPF_FILES_EVAL := $(shell git ls-files $(ROOT_DIR)/bpf/ | grep -v .gitignore | t
BPF_FILES ?= $(BPF_FILES_EVAL)
BPF_SRCFILES := $(subst ../,,$(BPF_FILES))

SWAGGER_VERSION := v0.19.0
SWAGGER_VERSION := v0.20.1
Copy link
Member Author

Choose a reason for hiding this comment

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

Only this one @nebril , the rest was all auto generated. I mean there were some necessary refactoring in our code because swagger changed the name of IPAM to Ipam.

api.IPAMPostIPAMHandler = NewPostIPAMHandler(d)
api.IPAMPostIPAMIPHandler = NewPostIPAMIPHandler(d)
api.IPAMDeleteIPAMIPHandler = NewDeleteIPAMIPHandler(d)
api.IpamPostIpamHandler = NewPostIPAMHandler(d)
Copy link
Member

Choose a reason for hiding this comment

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

The fact that a code generator which deals with APIs thinks that changing case on APIs is OK is absurd to me... sigh.

Copy link
Member

@ianvernon ianvernon left a comment

Choose a reason for hiding this comment

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

LGTM. Please release note this casing change for any users of the Cilium API as if they update to a new version of Cilium in say a go.mod and try to access our IPAM types, the casing will be different.

@vadorovsky vadorovsky merged commit 618f568 into master Oct 21, 2019
@vadorovsky vadorovsky deleted the pr/update-swagger-to-v0.20.1 branch October 21, 2019 09:20
@joestringer joestringer added the release-note/misc This PR makes changes that have no direct user impact. label Nov 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement This would improve or streamline existing functionality. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants