instrumenta / instrumenta/kubeval

Warning that causes Kubeval to exit with non-zero status

Open
#260 2 comments 7 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
3.2k
Forks
227
PR merge metrics
No merged PRs in 30d

Description

Hi,

I am having a warning that causes Kubeval to exit with non-zero status .
```
WARN - ***.yaml contains an invalid ClusterIssuer (letsencrypt-staging) - spec.acme.solvers.0.dns01: Invalid type. Expected: object, given: null
```

After fixing it everything works fine - other warnings do not cause the kubeval failure.

In my opinion this is issue shouldn't be reported as `WARN` but as `ERR`.

Here is how I am running it:
```
kubeval --skip-kinds CustomResourceDefinition --ignored-filename-patterns "crd,knative-services" --force-color -d /tmp/k8s --schema-location /tmp/schema --kubernetes-version "1.16.0"
```

and versions:
```
kubeval --version
Version: 0.15.0
Commit: df50ea7fd4fd202458002a40a6a39ffbb3125bad
Date: 2020-04-14T09:32:29Z
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.