fix(new-service): lint only known placeholders
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
e094cdbdd9
commit
5b4987a371
1 changed files with 1 additions and 1 deletions
|
|
@ -198,7 +198,7 @@ render_manifests() {
|
||||||
((PUBLIC)) && ud=$PUBLIC_DOMAIN
|
((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
|
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
|
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"
|
kustomize_build "$out" >/dev/null || die "kustomize build of rendered manifests failed"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue