Skip to content

Commit

Permalink
Add review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
turkenf committed Aug 17, 2023
1 parent 539c6e9 commit 3763f35
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -262,13 +262,12 @@ go.cachedir:
go.mod.cachedir:
@go env GOMODCACHE

CONCURRENCY ?= 30
DEP_CONSTRAINT := >= 0.0.0
DEP_CONSTRAINT ?= >= 0.0.0
ifeq (-,$(findstring -,$(VERSION)))
DEP_CONSTRAINT = >= 0.0.0-0
endif
load-pkg: $(UP) build.all
@$(INFO) Batch processing smaller provider packages for: $(SUBPACKAGES)
@$(INFO) Loading the family providers into the Docker daemon: $(SUBPACKAGES)
@for p in $(PLATFORMS); do \
mkdir -p "$(XPKG_OUTPUT_DIR)/$$p"; \
done
Expand All @@ -289,14 +288,15 @@ load-pkg: $(UP) build.all
--crd-group-override monolith=* --crd-group-override config=$(PROVIDER_NAME) \
--package-metadata-template $(ROOT_DIR)/package/crossplane.yaml.tmpl \
--template-var XpkgRegOrg=$(XPKG_REG_ORGS) --template-var DepConstraint="$(DEP_CONSTRAINT)" --template-var ProviderName=$(PROVIDER_NAME) \
--concurrency $(CONCURRENCY) \
--push-retry 10 || $(FAIL)
@$(OK) Done processing smaller provider packages for: $(SUBPACKAGES)

@for p in $(PLATFORMS); do \
for s in $(SUBPACKAGES); do \
docker tag $$(docker load -qi $(XPKG_OUTPUT_DIR)/$$p/$(PROJECT_NAME)-$$s-$(VERSION).xpkg | awk -F: '{print $$3}') $(PROJECT_NAME)-$$s-$${p#"linux_"}:$(VERSION); \
docker tag $$(docker load -qi $(XPKG_OUTPUT_DIR)/$$p/$(PROJECT_NAME)-$$s-$(VERSION).xpkg | awk -F: '{print $$3}') $(XPKG_REG_ORGS)/$(PROJECT_NAME)-$$s-$${p#"linux_"}:$(VERSION); \
echo Loaded the provider package "$(PROJECT_NAME)-$$s-$${p#"linux_"}:$(VERSION)" into the Docker daemon; \
done \
done

@$(OK) Loaded the family providers into the Docker daemon: $(SUBPACKAGES)

.PHONY: cobertura reviewable submodules fallthrough go.mod.cachedir go.cachedir run crds.clean $(TERRAFORM_PROVIDER_SCHEMA) load-pkg

0 comments on commit 3763f35

Please sign in to comment.