fix(new-service): lint only known placeholders

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
nholtware 2026-11-11 12:51:26 -06:00
parent e094cdbdd9
commit 5b4987a371

View file

@ -198,7 +198,7 @@ render_manifests() {
((PUBLIC)) && ud=$PUBLIC_DOMAIN
sed -i "s/__APP__/$NAME/g; s/__API__/$API_APP/g; s/__DOMAIN__/$INGRESS_DOMAIN/g; s/__PUBLIC_DOMAIN__/$PUBLIC_DOMAIN/g; s/__UNLEASH_DOMAIN__/$ud/g" "$out"/*.yaml
fi
! grep -rn '__[A-Z_]*__' "$out" || die "unrendered placeholder left in manifests"
! grep -rnE '__(APP|API|NS|DOMAIN|PUBLIC_DOMAIN|UNLEASH_DOMAIN|PUBLIC_BEGIN|PUBLIC_END)__' "$out" || die "unrendered placeholder left in manifests"
kustomize_build "$out" >/dev/null || die "kustomize build of rendered manifests failed"
}