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:
@@ -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
|
||||
Reference in New Issue
Block a user