diff --git a/samples/best_practices/disallow_host_network_port.yaml b/samples/best_practices/disallow_host_network_port.yaml index 4818d6d2f6..71cf3e10a0 100644 --- a/samples/best_practices/disallow_host_network_port.yaml +++ b/samples/best_practices/disallow_host_network_port.yaml @@ -1,7 +1,7 @@ apiVersion: kyverno.io/v1 kind: ClusterPolicy metadata: - name: host-network-port + name: disallow-host-network-port annotations: policies.kyverno.io/category: Workload Isolation policies.kyverno.io/description: Using 'hostPort' and 'hostNetwork' allows pods to share diff --git a/test/scenarios/samples/best_practices/disallow_host_network_port.yaml b/test/scenarios/samples/best_practices/disallow_host_network_port.yaml index 4b1d414308..a28ce93c04 100644 --- a/test/scenarios/samples/best_practices/disallow_host_network_port.yaml +++ b/test/scenarios/samples/best_practices/disallow_host_network_port.yaml @@ -5,7 +5,7 @@ input: expected: validation: policyresponse: - policy: host-network-port + policy: disallow-host-network-port resource: kind: Pod apiVersion: v1