Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and Cust
echo "{{- end }}" >> $(HELM_CRD_TEMPLATE)

.PHONY: generate
generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
generate: controller-gen go-generate ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..."

.PHONY: fmt
Expand Down Expand Up @@ -136,6 +136,18 @@ lint: golangci-lint ## Run golangci-lint linter & yamllint
lint-fix: golangci-lint ## Run golangci-lint linter and perform fixes
$(GOLANGCI_LINT) run --fix

.PHONY: firecrest-apispec
firecrest-apispec:
curl -L https://eth-cscs.github.io/firecrest-v2/openapi/openapi-$(FIRECREST_API_VERSION).yaml -o internal/remote/firecrest/openapi_spec_original.yaml

.PHONY: go-generate
go-generate: internal/remote/firecrest/firecrest_gen.go

internal/remote/firecrest/firecrest_gen.go: internal/remote/firecrest/openapi_spec_original.yaml
go generate internal/remote/firecrest/firecrest.go

FIRECREST_API_VERSION ?= 2.3.1

##@ Build

.PHONY: build
Expand Down
Loading
Loading