diff --git a/service/controller/resource/ciliumnetpol/resource.go b/service/controller/resource/ciliumnetpol/resource.go index 5e21700ea..bb0ba4fca 100644 --- a/service/controller/resource/ciliumnetpol/resource.go +++ b/service/controller/resource/ciliumnetpol/resource.go @@ -91,9 +91,7 @@ func toCiliumNetworkPolicy(v interface{}) (*unstructured.Unstructured, error) { "fromEntities": []string{ "cluster", }, - }, - map[string]interface{}{ - "fromPorts": []map[string]interface{}{ + "toPorts": []map[string]interface{}{ map[string]interface{}{ "ports": []map[string]string{ map[string]string{