Skip to content

[dmt] add NamespaceLabelsRule to container exclusion settings#394

Open
riptide-01 wants to merge 7 commits into
mainfrom
fix/exclude-container-namespace-linter
Open

[dmt] add NamespaceLabelsRule to container exclusion settings#394
riptide-01 wants to merge 7 commits into
mainfrom
fix/exclude-container-namespace-linter

Conversation

@riptide-01

Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Smyslov Maxim <maksim.smyslov@flant.com>
@riptide-01 riptide-01 requested a review from ldmonster June 16, 2026 11:54
@riptide-01 riptide-01 self-assigned this Jun 16, 2026
Signed-off-by: Smyslov Maxim <maksim.smyslov@flant.com>
…ainerRules struct

Signed-off-by: Smyslov Maxim <maksim.smyslov@flant.com>
@riptide-01 riptide-01 force-pushed the fix/exclude-container-namespace-linter branch from 26be33e to 01475d2 Compare June 16, 2026 12:07
Signed-off-by: Smyslov Maxim <maksim.smyslov@flant.com>
- Introduced new test cases in `framework_test.go` to validate the behavior of the `Match` function with respect to expected lint findings and rules that should pass.
- Enhanced the `framework.go` file to support the new `ExpectPass` feature, allowing specification of rules that must not produce any matching findings.
- Updated the README to document the new `expectPass` functionality.
- Added test data for a namespace that should be ignored by the container linter on the `object-namespace-labels` rule.

This commit improves the testing framework for linting rules and ensures better compliance with expected behavior in various scenarios.

Signed-off-by: Smyslov Maxim <maksim.smyslov@flant.com>
…iguration

Signed-off-by: Smyslov Maxim <maksim.smyslov@flant.com>
@riptide-01 riptide-01 force-pushed the fix/exclude-container-namespace-linter branch from 3012031 to 84a9740 Compare June 16, 2026 15:32
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

Successfully merging this pull request may close these issues.

1 participant