KustomizeScanner#

class neophile.scanner.kustomize.KustomizeScanner#

Bases: BaseScanner

Scan a source tree for Kustomize version references.

This recognizes external resources in the formats:

github.com/<owner>/<repo>(.git)?//<path>?ref=<version>
https://github.com/<owner>/<repo>/<path>?ref=<version>

Attributes Summary

RESOURCE_REGEXES

The regexes to match external resources and extract data from them.

name

Name of the scanner type.

Methods Summary

scan(root)

Scan a source tree for version references.

Attributes Documentation

RESOURCE_REGEXES = [re.compile('github\\.com/([^/]+)/([^/.]+).*?ref=(.*)'), re.compile('https://github\\.com/([^/]+)/([^/.]+).*?ref=(.*)')]#

The regexes to match external resources and extract data from them.

The first match group will be the repository owner, the second match group will be the repository name, and the third match group will be the tag.

name#

Methods Documentation

scan(root)#

Scan a source tree for version references.

Parameters:

root (Path) – The root of the source tree.

Returns:

A list of all discovered dependencies.

Return type:

list of KustomizeDependency