Skip to content

Add Support for .kubevalignore file #358

@rufreakde

Description

@rufreakde

Hi there,
a tool like this - that can be used accross a lot of different repositories - would benefit in its flexibility by a lot if we could configure it to ignore specific files even if they are in the recursive list of resources.

Example scenario we have a repository with a lot of k8s files and this is fine but now we got additionally a kustomize patch and this is where it breaks.

echo "# Kubeval - Checking dev/"
kubeval  --ignore-missing-schemas --directories ./dev || exit 4

Ideally we would like to add a ".kubevalignore" with something like this:

# Match only directories containing kustomization or overlay
*kustomization*/
*overlay*/

This way we can ignore the patches and other kustomization that is not a valid manifest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions