Skip to content

Commit 31740f9

Browse files
1gtmtamalsaha
andauthored
[cherry-pick] Make chart registry configurable (#67) (#70)
/cherry-pick Signed-off-by: Tamal Saha <tamal@appscode.com> Co-authored-by: Tamal Saha <tamal@appscode.com>
1 parent ced3feb commit 31740f9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,10 @@ manifests: gen-crds patch-crds label-crds gen-bindata gen-values-schema gen-char
283283
.PHONY: gen
284284
gen: clientset gen-crd-protos manifests openapi
285285

286-
CHART_VERSION ?=
287-
APP_VERSION ?= $(CHART_VERSION)
286+
CHART_REGISTRY ?= appscode
287+
CHART_REGISTRY_URL ?= https://charts.appscode.com/stable/
288+
CHART_VERSION ?=
289+
APP_VERSION ?= $(CHART_VERSION)
288290

289291
.PHONY: update-charts
290292
update-charts: $(shell find $$(pwd)/charts -maxdepth 1 -mindepth 1 -type d -printf 'chart-%f ')
@@ -293,6 +295,8 @@ chart-%:
293295
@$(MAKE) chart-contents-$* gen-chart-doc-$* --no-print-directory
294296

295297
chart-contents-%:
298+
@yq w -i ./charts/$*/doc.yaml repository.name --tag '!!str' $(CHART_REGISTRY)
299+
@yq w -i ./charts/$*/doc.yaml repository.url --tag '!!str' $(CHART_REGISTRY_URL)
296300
@if [ ! -z "$(CHART_VERSION)" ]; then \
297301
yq w -i ./charts/$*/Chart.yaml version --tag '!!str' $(CHART_VERSION); \
298302
yq w -i ./charts/$*/doc.yaml chart.version --tag '!!str' $(CHART_VERSION); \

0 commit comments

Comments
 (0)