-
Notifications
You must be signed in to change notification settings - Fork 472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not validate with go template in command arguments #423
Comments
I also faced the same problem. |
Can confirm. Also applies to checking for IPs that listening ports bind to. |
In my case,
|
Since the yaml file is parsed as a go-template, you would have to escape the curly braces: Example: command:
echo "{{`{{`}}foo{{`}}`}}":
exit-status: 0
timeout: 10000 Or the whole line can be escaped for easier readability:
or using double quotes.
Any valid golang template escapes should work. @elliotweiser can you post a snippet of the resource that was causing you issues? |
The following is the command for check local registry port on docker daemon.
goss creates
goss.yaml
Then
goss v
result as follows:The text was updated successfully, but these errors were encountered: