diff --git a/knowledge base/jq.md b/knowledge base/jq.md index cc15044..e2ec36d 100644 --- a/knowledge base/jq.md +++ b/knowledge base/jq.md @@ -100,6 +100,9 @@ helm template chartName \ | select(.) | select(.|test(".*:.*")|not), select(.|test(".*:$")), select(.|test(".*:latest"))' \ - + +# Check that the 'backend.url key' in a 'Pulumi.yaml' file is not 'file://' and fail otherwise. +yq -e '(.backend.url|test("^file://")?)|not' 'Pulumi.yaml' ``` ## Further readings