Skip to content

Ephemeral storage limit check not skipped when "kube-score/ignore": "container-resources" annotation is set #449

@zliebersbach

Description

@zliebersbach

Which version of kube-score are you using?

kube-score version: 1.14.0

What did you do?

I expect the "kube-score/ignore": "container-resources" to ignore the ephemeral storage resource limit checks.

v1/Pod test-connection                     💥
    [CRITICAL] Container Ephemeral Storage Request and Limit
        · wget -> Ephemeral Storage limit is not set
            Resource limits are recommended to avoid resource DDOS. Set
            resources.limits.ephemeral-storage

Pod spec:

apiVersion: v1
kind: Pod
metadata:
  name: "test-connection"
  annotations:
    "helm.sh/hook": test
    "kube-score/ignore": 'container-resources,container-image-pull-policy,pod-probes,container-security-context-user-group-id,container-security-context-readonlyrootfilesystem'
spec:
  containers:
    - name: wget
      image: busybox:1
      command: ['wget']
      args: ['http://my-api/health/live']
  restartPolicy: Never

What did you expect to see?

The ephemeral storage resource limit check is skipped.

What did you see instead?

The ephemeral storage resource limit check was not skipped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions