Skip to content

Commit

Permalink
build: Fix kustomize path (#9)
Browse files Browse the repository at this point in the history
Previously, the path was absolute, and kustomize could be run from
config/manager. A recent upstream change made the path relative. This
makes the path absolute again.
  • Loading branch information
dlipovetsky authored Sep 25, 2023
1 parent 5faf0da commit 55ae3fe
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions d2iq.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ docker-buildx-builder:

# The upstream 'release-manifests' target does not correctly override the image.
# We work around this by using `kustomize edit set image`.
release-manifests: kustomize
mkdir -p $(MANIFEST_DIR)
cd config/manager && $(KUSTOMIZE) edit set image projects.registry.vmware.com/vmware-cloud-director/cluster-api-provider-cloud-director=$(REGISTRY)/$(CAPVCD_IMG):$(VERSION)
$(KUSTOMIZE) build config/default > $(MANIFEST_DIR)/infrastructure-components.yaml
release-manifests: $(KUSTOMIZE)
mkdir -p templates && \
cd config/manager && \
$(GITROOT)/$(KUSTOMIZE) edit set image projects.registry.vmware.com/vmware-cloud-director/cluster-api-provider-cloud-director=$(REGISTRY)/$(CAPVCD_IMG):$(VERSION)
$(GITROOT)/$(KUSTOMIZE) build config/default > templates/infrastructure-components.yaml

.PHONY: build-within-docker
build-within-docker: vendor
Expand Down

0 comments on commit 55ae3fe

Please sign in to comment.