Skip to content

v2.0.0

Compare
Choose a tag to compare
@zivnevo zivnevo released this 20 Nov 13:00
· 73 commits to main since this release
6c740a1

API changes from v1.9.0, which break backwards compatibility:

  • All code now resides in a single package called analyzer. Hence, exported types from the common package are now under analyzer.
  • NotK8sResourceError and MalformedYamlDocError types are no longer available. Both are replaced by FailedReadingFileError.
  • 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 and ConnectionsFromInfos. These functions skip scanning file-system directories and rather directly analyze resources given in a slice of resource.Info (as defined in k8s.io/cli-runtime/pkg/resource).
  • YAML parsing is now done using the fsscanner package from github.com/np-guard/netpol-analyzer.
  • Adding missing docstrings for exported types and functions.