Skip to content

"This resource kind is not supported by kubesec" when scanning files containing multiple seperated specs #287

@huornlmj

Description

@huornlmj

Describe the bug
If a file contains multiple specifications separated by three hyphens (---), kubesec fails the scan with "This resource kind is not supported by kubesec".

To Reproduce
kubesec scan (a pod spec file containing multiple specs separated by triple hyphens)

Expected behaviour
A pass / fail result should be shown, with kubesec parsing each spec individually.

Additional context
A workaround is to manually separate the individual specs into individual files and scan them with kubesec. But only one of the resulting files is scannable by kubesec.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions