Release v0.0.39
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 theGeneratedNetworkPolicy
CRD. - A test has been added to check that labels are added successfully.
PR Main Files Walkthrough:
files:
pkg/registry/file/generatednetworkpolicy.go
: TheGenerateNetworkPolicy
function calls have been updated to use the new package location.pkg/apis/softwarecomposition/networkpolicy/networkpolicy.go
: "This is a new file where theGenerateNetworkPolicy
function has been moved. The function now includes the addition of workload labels to theNetworkPolicy
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 theGenerateNetworkPolicy
function, although the specific changes are not shown in the diff.
User Description:
- Add workload labels to the
NetworkPolicy
object insideGeneratedNetworkPolicy
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