[go: nahoru, domu]

Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Commit

Permalink
k8s_tools: fix URL for olm-bundle download
Browse files Browse the repository at this point in the history
Signed-off-by: Muvaffak Onus <me@muvaf.com>
  • Loading branch information
muvaf committed May 5, 2021
1 parent 8e7a7c5 commit a6ef254
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions makelib/image.mk
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,8 @@ help-special: img.help
# tools

$(MANIFEST_TOOL):
@$(INFO) installing manifest-tool $(HOST_PLATFORM)
@$(INFO) installing manifest-tool $(MANIFEST_TOOL_VERSION)
@mkdir -p $(TOOLS_HOST_DIR) || $(FAIL)
@curl -fsSL https://github.com/estesp/manifest-tool/releases/download/$(MANIFEST_TOOL_VERSION)/manifest-tool-$(HOSTOS)-$(SAFEHOSTARCH) > $@ || $(FAIL)
@chmod +x $@ || $(FAIL)
@$(OK) installing manifest-tool $(HOST_PLATFORM)
@$(OK) installing manifest-tool $(MANIFEST_TOOL_VERSION)
10 changes: 5 additions & 5 deletions makelib/k8s_tools.mk
Original file line number Diff line number Diff line change
Expand Up @@ -105,26 +105,26 @@ $(KUSTOMIZE):
# olm-bundle download and install
$(OLMBUNDLE):
@$(INFO) installing olm-bundle $(OLMBUNDLE_VERSION)
@curl -fsSLo $(OLMBUNDLE) https://github.com/upbound/olm-bundle/releases/download/$(OLMBUNDLE_VERSION)/olm-bundle_$(HOST_PLATFORM) || $(FAIL)
@curl -fsSLo $(OLMBUNDLE) https://github.com/upbound/olm-bundle/releases/download/$(OLMBUNDLE_VERSION)/olm-bundle_$(SAFEHOSTPLATFORM) || $(FAIL)
@chmod +x $(OLMBUNDLE)
@$(OK) installing olm-bundle $(OLMBUNDLE_VERSION)

# helm download and install only if helm3 not enabled
ifeq ($(USE_HELM3),false)
$(HELM):
@$(INFO) installing helm $(SAFEHOSTPLATFORM)
@$(INFO) installing helm $(HELM_VERSION)
@mkdir -p $(TOOLS_HOST_DIR)/tmp-helm
@curl -fsSL https://storage.googleapis.com/kubernetes-helm/helm-$(HELM_VERSION)-$(SAFEHOSTPLATFORM).tar.gz | tar -xz -C $(TOOLS_HOST_DIR)/tmp-helm
@mv $(TOOLS_HOST_DIR)/tmp-helm/$(SAFEHOSTPLATFORM)/helm $(HELM)
@rm -fr $(TOOLS_HOST_DIR)/tmp-helm
@$(OK) installing helm $(SAFEHOSTPLATFORM)
@$(OK) installing helm $(HELM_VERSION)
endif

# helm3 download and install
$(HELM3):
@$(INFO) installing helm3 $(SAFEHOSTPLATFORM)
@$(INFO) installing helm3 $(HELM_VERSION)
@mkdir -p $(TOOLS_HOST_DIR)/tmp-helm3
@curl -fsSL https://get.helm.sh/helm-$(HELM3_VERSION)-$(SAFEHOSTPLATFORM).tar.gz | tar -xz -C $(TOOLS_HOST_DIR)/tmp-helm3
@mv $(TOOLS_HOST_DIR)/tmp-helm3/$(SAFEHOSTPLATFORM)/helm $(HELM3)
@rm -fr $(TOOLS_HOST_DIR)/tmp-helm3
@$(OK) installing helm3 $(SAFEHOSTPLATFORM)
@$(OK) installing helm3 $(HELM_VERSION)

0 comments on commit a6ef254

Please sign in to comment.