Skip to content

Commit

Permalink
Skip updating CRDs when building binary in container
Browse files Browse the repository at this point in the history
  • Loading branch information
pleshakov committed Dec 17, 2020
1 parent b39bdd9 commit 0dea7cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@ update-codegen:
./hack/update-codegen.sh

update-crds:
ifneq ($(BUILD_IN_CONTAINER),1)
go run sigs.k8s.io/controller-tools/cmd/controller-gen crd:crdVersions=v1 schemapatch:manifests=./deployments/common/crds/ paths=./pkg/apis/configuration/... output:dir=./deployments/common/crds
go run sigs.k8s.io/controller-tools/cmd/controller-gen crd:crdVersions=v1beta1,preserveUnknownFields=false schemapatch:manifests=./deployments/common/crds-v1beta1/ paths=./pkg/apis/configuration/... output:dir=./deployments/common/crds-v1beta1
@cp -Rp deployments/common/crds-v1beta1/ deployments/helm-chart/crds
endif

certificate-and-key:
ifeq ($(GENERATE_DEFAULT_CERT_AND_KEY),1)
Expand Down

0 comments on commit 0dea7cf

Please sign in to comment.