From f9792d486ecc750266028346a4281b7a9565ee27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bilqu=C3=A9?= <53470239+sbilque@users.noreply.github.com> Date: Wed, 3 Jul 2024 20:37:34 +0200 Subject: [PATCH] Fix: Enable the creation of a helm chart with a name other than awx-operator (#1884) Enable the proper creation of a helm chart with a name other than awx-operator Co-authored-by: Christian Adams --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c2ee3b5b..673aac40 100644 --- a/Makefile +++ b/Makefile @@ -341,7 +341,7 @@ helm-chart-generate: kustomize helm kubectl-slice yq charts rm -rf charts/$(CHART_NAME) # create new chart metadata in Chart.yaml cd charts && \ - $(HELM) create awx-operator --starter $(shell pwd)/.helm/starter ;\ + $(HELM) create $(CHART_NAME) --starter $(shell pwd)/.helm/starter ;\ $(YQ) -i '.version = "$(VERSION)"' $(CHART_NAME)/Chart.yaml ;\ $(YQ) -i '.appVersion = "$(VERSION)" | .appVersion style="double"' $(CHART_NAME)/Chart.yaml ;\ $(YQ) -i '.description = "$(CHART_DESCRIPTION)"' $(CHART_NAME)/Chart.yaml ;\ @@ -399,7 +399,7 @@ helm-package: helm-chart @echo "== Package Current Chart Version ==" mkdir -p .cr-release-packages # package the chart and put it in .cr-release-packages dir - $(HELM) package ./charts/awx-operator -d .cr-release-packages/$(VERSION) + $(HELM) package ./charts/$(CHART_NAME) -d .cr-release-packages/$(VERSION) # List all tags oldest to newest. TAGS := $(shell git ls-remote --tags --sort=version:refname --refs -q | cut -d/ -f3)