Skip to content

Release v0.0.39

Compare
Choose a tag to compare
@github-actions github-actions released this 12 Nov 07:55
· 247 commits to main since this release
16e5ce6

PR Type:

Refactoring


PR Description:

This PR includes several changes:

  • The GenerateNetworkPolicy function has been moved to a separate package (networkpolicy) and made public.
  • Workload labels have been added to the NetworkPolicy object inside the GeneratedNetworkPolicy CRD.
  • A test has been added to check that labels are added successfully.

PR Main Files Walkthrough:

files:
  • pkg/registry/file/generatednetworkpolicy.go: The GenerateNetworkPolicy function calls have been updated to use the new package location.
  • pkg/apis/softwarecomposition/networkpolicy/networkpolicy.go: "This is a new file where the GenerateNetworkPolicy function has been moved. The function now includes the addition of workload labels to the NetworkPolicy object. It also includes the generation of ingress and egress rules for the network policy."
  • pkg/apis/softwarecomposition/networkpolicy/networkpolicy_test.go: This new file likely contains tests for the GenerateNetworkPolicy function, although the specific changes are not shown in the diff.

User Description:

  • Add workload labels to the NetworkPolicy object inside GeneratedNetworkPolicy CRD
  • Move GenerateNetworkPolicy to a separate package and make it public (as it is supposed to be used by other clients)
  • Add one test to check that labels are added succesfully