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
build(swagger): Fix Swagger build problems #3084
Conversation
@@ -318,7 +318,6 @@ $(VERSION_FILE): | |||
touch $(VERSION_FILE) | |||
|
|||
dist/$(DB).yaml: $(MANIFESTS) $(E2E_MANIFESTS) $(VERSION_FILE) | |||
# We additionally disable ALWAYS_OFFLOAD_NODE_STATUS |
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.
comment no longer correct
.PHONY: start-aux | ||
start-aux: $(GOPATH)/bin/goreman | ||
.PHONY: start | ||
start: status stop install controller cli executor-image $(GOPATH)/bin/goreman |
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.
because start-aux
now blocks, we do not run wait
or env
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.
Great! This is better imo
@@ -451,7 +448,7 @@ $(GOPATH)/bin/swagger: | |||
.PHONY: swagger | |||
swagger: api/openapi-spec/swagger.json | |||
|
|||
pkg/apis/workflow/v1alpha1/openapi_generated.go: | |||
pkg/apis/workflow/v1alpha1/openapi_generated.go: $(shell find pkg/apis/workflow/v1alpha1 -type f -not -name openapi_generated.go) |
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.
the main bug fix
@@ -461,20 +458,29 @@ pkg/apis/workflow/v1alpha1/openapi_generated.go: | |||
--report-filename pkg/apis/api-rules/violation_exceptions.list | |||
$(call restore_go_mod) | |||
|
|||
dist/kubernetes.swagger.json: |
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've reordered this section of the make file to reflect its execution order
@@ -2196,6 +2196,10 @@ | |||
"type": "string" | |||
} | |||
}, | |||
"depends": { |
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.
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.
There it is!
pkg/apiclient/_.secondary.swagger.json: hack/secondaryswaggergen.go pkg/apis/workflow/v1alpha1/openapi_generated.go dist/kubernetes.swagger.json | ||
go run ./hack secondaryswaggergen | ||
|
||
dist/swagger.json: $(GOPATH)/bin/swagger $(SWAGGER_FILES) $(MANIFESTS_VERSION_FILE) hack/swaggify.sh | ||
swagger mixin -c 684 $(SWAGGER_FILES) | sed 's/VERSION/$(MANIFESTS_VERSION)/' | ./hack/swaggify.sh > dist/swagger.json | ||
# we always ignore the conflicts, so lets automated figuring out how many there will be and just use that |
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.
@sarabala1979 so we never have to change the -c
again :)
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.
LGTM
.PHONY: start-aux | ||
start-aux: $(GOPATH)/bin/goreman | ||
.PHONY: start | ||
start: status stop install controller cli executor-image $(GOPATH)/bin/goreman |
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.
Great! This is better imo
@@ -2196,6 +2196,10 @@ | |||
"type": "string" | |||
} | |||
}, | |||
"depends": { |
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.
There it is!
FYI: #3076 Changed some docstrings that were previously not present on the swagger file and therefore aren't reflected on this PR yet. Please merge with master before merging this PR in order to avoid master having incorrect codegen |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Synced with master. Can be merged as soon as approved. |
Checklist:
"fix(controller): Updates such and such. Fixes #1234"
.@simster7 this can be merged as soon as green.