Skip to content

rule 'no-resource-limits-pods' has typo #61

@hiondal

Description

@hiondal

Describe the bug

The condition of rule 'no-resource-limits-pods' is '!container.resources.limit'.
but, It should be '!container.resources.limits' as followed.
You omit 's' at 'limit'.
for(var container of item.config.spec.containers)
{
if (!container.resources.limits)
{
warning('No resource limit set');
}
}

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Environment Details:

  • Kubernetes Distribution/Version [e.g. GKE v1.13.12-gke.25, OpenShift 4.3]
  • Browser [e.g. chrome, safari]
  • Version [e.g. v0.3]

Additional context

Add any other context about the problem here.

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