Skip to content

[BUG] ignore in annotations are ignored #1180

Description

@Arjunasvr

System info:

  • OS: [e.g. Linux? MaxOS? Windows?] kubernetes/helm charts. Tested in ubuntu WSL image.

Describe the bug
A clear and concise description of the bug.
Trying to ignore a specific check for a k8s deployment. According to documentation you can use metadata.annonation to ignore checks:

Image

But after testing this option does not work.

To Reproduce
Steps to reproduce the behavior:
Add annotions to a chart or deployment:
ignore-check.kube-linter.io/<check_name>: "" or kube-linter.io/ignore-all: ""
Should ignore a specific or all checks.

Sample YAML input
If applicable, sample YAML input which reproduces the issue.
template:
metadata:
annotations:
ignore-check.kube-linter.io/no-read-only-root-fs: ""

Expected behavior
A clear and concise description of what you expected to happen.
Should ignore a check on the specific deployment.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
After a week I checked some other things in the the file. When u using this:

metadata:
  annotations:
    ignore-check.kube-linter.io

It will ignore all checks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions