Files
hello-svc/Makefile
T
rod 5d9a159e07 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>
2026-05-17 13:09:35 +02:00

20 lines
490 B
Makefile

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