instrumenta / instrumenta/kubeval

Insufficied validation for `volumeMounts`

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

Description

Using `kubeval --strict` still passes malformed StatefulSet (`volumeMount` item containing `emptyDir` key).

Helm install will fail with the following error:
```
ValidationError(StatefulSet.spec.template.spec.containers[1].volumeMounts[5]): missing required field "mountPath" in io.k8s.api.core.v1.VolumeMount]
```

Simplified example:
```
apiVersion: apps/v1
kind: StatefulSet
spec:
template:
spec:
containers:
volumeMounts:
- name: socket
emptyDir: {}
- name: log-buffer
emptyDir: {}
```

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.