Skip to content

Commit

Permalink
Revert "remove get-operator-crds target from Makefile"
Browse files Browse the repository at this point in the history
This reverts commit 8d42815.
  • Loading branch information
caseydavenport committed Nov 27, 2024
1 parent 8d42815 commit b80dff9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ check-language:

generate:
$(MAKE) gen-semaphore-yaml
$(MAKE) get-operator-crds
$(MAKE) -C api gen-files
$(MAKE) -C libcalico-go gen-files
$(MAKE) -C felix gen-files
Expand All @@ -63,6 +64,16 @@ gen-manifests: bin/helm
CALICO_VERSION=$(CALICO_VERSION) \
./generate.sh

# Get operator CRDs from the operator repo, OPERATOR_BRANCH must be set
get-operator-crds: var-require-all-OPERATOR_BRANCH
@echo ================================================================
@echo === Pulling new operator CRDs from branch $(OPERATOR_BRANCH) ===
@echo ================================================================
cd ./charts/tigera-operator/crds/ && \
for file in operator.tigera.io_*.yaml; do echo "downloading $$file from operator repo" && curl -fsSL https://raw.githubusercontent.com/tigera/operator/$(OPERATOR_BRANCH)/pkg/crds/operator/$${file%_crd.yaml}.yaml -o $${file}; done
cd ./manifests/ocp/ && \
for file in operator.tigera.io_*.yaml; do echo "downloading $$file from operator repo" && curl -fsSL https://raw.githubusercontent.com/tigera/operator/$(OPERATOR_BRANCH)/pkg/crds/operator/$${file%_crd.yaml}.yaml -o $${file}; done

gen-semaphore-yaml:
cd .semaphore && ./generate-semaphore-yaml.sh

Expand Down

0 comments on commit b80dff9

Please sign in to comment.