File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ $(MOCKGEN): $(LOCALBIN)
170170 test -s
$(MOCKGEN ) || GOBIN=
$(LOCALBIN ) go install github.com/golang/mock/
[email protected] 171171
172172GOARCH =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
174174BASE_IMAGE =public.ecr.aws/eks-distro-build-tooling/eks-distro-minimal-base-nonroot:latest.2
175175GO_RUNNER_IMAGE =public.ecr.aws/eks-distro/kubernetes/go-runner:v0.15.0-eks-1-27-3
176176.PHONY : docker-buildx
Original file line number Diff line number Diff 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+
2630type 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 ,
You can’t perform that action at this time.
0 commit comments