Skip to content

Commit 1357cf6

Browse files
authored
Merge branch 'main' into dependabot/go_modules/github.com/stretchr/testify-1.8.4
2 parents a6f713f + caaf15f commit 1357cf6

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ $(MOCKGEN): $(LOCALBIN)
170170
test -s $(MOCKGEN) || GOBIN=$(LOCALBIN) go install github.com/golang/mock/[email protected]
171171

172172
GOARCH=amd64
173-
BUILD_IMAGE=public.ecr.aws/docker/library/golang:1.20.6
173+
BUILD_IMAGE=public.ecr.aws/docker/library/golang:1.21.3
174174
BASE_IMAGE=public.ecr.aws/eks-distro-build-tooling/eks-distro-minimal-base-nonroot:latest.2
175175
GO_RUNNER_IMAGE=public.ecr.aws/eks-distro/kubernetes/go-runner:v0.15.0-eks-1-27-3
176176
.PHONY: docker-buildx

pkg/policyendpoints/manager.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ import (
2323
"github.com/aws/amazon-network-policy-controller-k8s/pkg/resolvers"
2424
)
2525

26+
const (
27+
LabelKeyToParentPolicyName = "networking.k8s.io/parent-network-policy-name"
28+
)
29+
2630
type PolicyEndpointsManager interface {
2731
Reconcile(ctx context.Context, policy *networking.NetworkPolicy) error
2832
Cleanup(ctx context.Context, policy *networking.NetworkPolicy) error
@@ -298,6 +302,9 @@ func (m *policyEndpointsManager) newPolicyEndpoint(policy *networking.NetworkPol
298302
Controller: &isController,
299303
},
300304
},
305+
Labels: map[string]string{
306+
LabelKeyToParentPolicyName: policy.Name,
307+
},
301308
},
302309
Spec: policyinfo.PolicyEndpointSpec{
303310
PodSelector: &policy.Spec.PodSelector,

0 commit comments

Comments
 (0)