You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Helm chart that I test for Kubernetes API deprecations using deprek8ion policies.
Here is the command and output I have :
helm template my-chart-1.0.0.tgz | conftest test -o json -
[
{
"filename": "",
"namespace": "main",
"successes": 71,
"warnings": [
{
"msg": "Ingress/my-ingress: API networking.k8s.io/v1beta1 for Ingress is deprecated from Kubernetes 1.19, use networking.k8s.io/v1 instead."
}
]
}
]
In the result, the filename is missing.
My chart I have one file by resource (one file for deployment, another file for service, yet another file for ingress...), but the helm template command render one output with a multi document YAML like that
Each resource is prefixed with a comment indicating the file containing the resource definition. But this information is not reported in conftest output.
How to proceed ?
The text was updated successfully, but these errors were encountered:
Hi @fredgate. This comment in the Helm output is a Helm-specific thing, and is not a part of the YAML specification so it is not parsed by conftest. I will take a look into what can be done here to make this clearer in the output when testing helm files.
@fredgate The YAML package we use [1] does not return us any comments, so adding this would be a significant refactor. Time allowing we may still add this, but I wanted to let you know it probably won't be soon. That said, I'd welcome a PR if you have the time!
I have a Helm chart that I test for Kubernetes API deprecations using deprek8ion policies.
Here is the command and output I have :
In the result, the filename is missing.
My chart I have one file by resource (one file for deployment, another file for service, yet another file for ingress...), but the
helm template
command render one output with a multi document YAML like thatEach resource is prefixed with a comment indicating the file containing the resource definition. But this information is not reported in
conftest
output.How to proceed ?
The text was updated successfully, but these errors were encountered: