Closed zachdorame closed 3 months ago
Regardless of how we replace the "." character, we want to make sure the controller has no issues when the name of the pod is changed. Did you try creating and deleting on the pod on a real cluster? And applying and removing network policies to the pod?
I verified manually on a real cluster that I can create a pod my.pod.with.dots
and that a network policy can be successfully applied and revoked.
But, as part of my next revision, I've also added an integration test that performs this validation as well
Hye @zachdorame anything blocking this PR ? Would be happy to help if needed 🙂
Issue #, if available: https://github.com/aws/aws-network-policy-agent/issues/118
Description of changes: Pods with
.
in their pod name will now have.
changed to_
.Testing: I applied
Sample Deployment
andSample Policy
from this comment: https://github.com/aws/aws-network-policy-agent/issues/118#issue-1967965139 to a cluster. With this change, I observed that the network policy reconciler was no longer crashing and thatSample Policy
was being successfully applied:network-policy-agent.log:
Cyclonus tests also passed
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.