Skip to content
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

Insufficied validation for volumeMounts #253

Open
vbence opened this issue Sep 2, 2020 · 0 comments
Open

Insufficied validation for volumeMounts #253

vbence opened this issue Sep 2, 2020 · 0 comments

Comments

@vbence
Copy link

vbence commented Sep 2, 2020

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: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant