Skip to content

Commit c268a57

Browse files
committed
Make chart registry configurable
Signed-off-by: Tamal Saha <tamal@appscode.com>
1 parent bed8319 commit c268a57

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
@@ -242,8 +242,10 @@ manifests: gen-crds label-crds gen-bindata gen-values-schema gen-chart-doc
242242
.PHONY: gen
243243
gen: clientset gen-crd-protos manifests openapi
244244

245-
CHART_VERSION ?=
246-
APP_VERSION ?= $(CHART_VERSION)
245+
CHART_REGISTRY ?= appscode
246+
CHART_REGISTRY_URL ?= https://charts.appscode.com/stable/
247+
CHART_VERSION ?=
248+
APP_VERSION ?= $(CHART_VERSION)
247249

248250
.PHONY: update-charts
249251
update-charts: $(shell find $$(pwd)/charts -maxdepth 1 -mindepth 1 -type d -printf 'chart-%f ')
@@ -252,6 +254,8 @@ chart-%:
252254
@$(MAKE) chart-contents-$* gen-chart-doc-$* --no-print-directory
253255

254256
chart-contents-%:
257+
@yq w -i ./charts/$*/doc.yaml repository.name --tag '!!str' $(CHART_REGISTRY)
258+
@yq w -i ./charts/$*/doc.yaml repository.url --tag '!!str' $(CHART_REGISTRY_URL)
255259
@if [ ! -z "$(CHART_VERSION)" ]; then \
256260
yq w -i ./charts/$*/Chart.yaml version --tag '!!str' $(CHART_VERSION); \
257261
fi

0 commit comments

Comments
 (0)