Switch kustomize base from helmCharts to pre-rendered manifests

kustomize 5.4.3 (bundled in ArgoCD) removed localChartPath and chartPath
from its JSON schema, making helmCharts: with a local chart path invalid.
Pre-render the base manifests with 'make render-helm' instead; overlays
patch the plain YAML as before. ServiceMonitor excluded until Prometheus
is installed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
rod
2026-05-17 13:09:35 +02:00
parent bd3c6b5e25
commit 5d9a159e07
4 changed files with 97 additions and 6 deletions
+19
View File
@@ -0,0 +1,19 @@
IMAGE := git.samidare.dev/rod/hello-svc
CHART_DIR := helm/hello-svc
BASE_DIR := k8s/base
.PHONY: build push render-helm
build:
docker build -t $(IMAGE):latest .
push: build
docker push $(IMAGE):latest
# Re-render k8s/base/manifest.yaml from the Helm chart.
# Run this whenever helm/hello-svc/ templates or values.yaml change.
render-helm:
helm template hello-svc $(CHART_DIR) \
-f $(BASE_DIR)/values.yaml \
--set serviceMonitor.enabled=false \
> $(BASE_DIR)/manifest.yaml