v2.0.0
API changes from v1.9.0, which break backwards compatibility:
- All code now resides in a single package called
analyzer
. Hence, exported types from thecommon
package are now underanalyzer
. NotK8sResourceError
andMalformedYamlDocError
types are no longer available. Both are replaced byFailedReadingFileError
.- Not finding any Kubernetes workload in the set of given resource, is now a critical error.
- Lots of internal types and functions are no longer exported.
Other changes from v1.9.0:
PoliciesSynthesizer
has two new methods:PoliciesFromInfos
andConnectionsFromInfos
. These functions skip scanning file-system directories and rather directly analyze resources given in a slice ofresource.Info
(as defined ink8s.io/cli-runtime/pkg/resource
).- YAML parsing is now done using the
fsscanner
package fromgithub.com/np-guard/netpol-analyzer
. - Adding missing docstrings for exported types and functions.