--- apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingAdmissionPolicy metadata: creationTimestamp: "2026-10-30T21:36:27Z" generation: 1 managedFields: - apiVersion: admissionregistration.k8s.io/v1 fieldsType: FieldsV1 fieldsV1: f:status: f:observedGeneration: {} f:typeChecking: {} manager: validatingadmissionpolicy-status operation: Apply subresource: status time: "2026-10-30T21:36:28Z" - apiVersion: admissionregistration.k8s.io/v1 fieldsType: FieldsV1 fieldsV1: f:metadata: f:ownerReferences: k:{"uid":"6ff0ef04-c56f-476e-ab07-28010f810eb4"}: {} f:spec: f:failurePolicy: {} f:matchConstraints: {} f:validations: {} manager: cluster-network-operator/operconfig operation: Apply time: "2026-10-30T21:37:03Z" name: egressip-mark-annotation-validation ownerReferences: - apiVersion: operator.openshift.io/v1 blockOwnerDeletion: true controller: true kind: Network name: cluster uid: 6ff0ef04-c56f-476e-ab07-28010f810eb4 resourceVersion: "4340" uid: 6f5f53d3-3f34-4212-9a73-5ff51f4ad7c8 spec: failurePolicy: Fail matchConstraints: matchPolicy: Equivalent namespaceSelector: {} objectSelector: {} resourceRules: - apiGroups: - k8s.ovn.org apiVersions: - v1 operations: - CREATE - UPDATE resources: - egressips scope: '*' validations: - expression: request.operation != "CREATE" || !has(object.metadata.annotations) || !("k8s.ovn.org/egressip-mark" in object.metadata.annotations) message: EgressIP resources cannot be created with the "k8s.ovn.org/egressip-mark" annotation. This annotation is managed by the system. reason: Invalid - expression: request.operation != "UPDATE" || !has(oldObject.metadata.annotations) || !("k8s.ovn.org/egressip-mark" in oldObject.metadata.annotations) || (has(object.metadata.annotations) && ("k8s.ovn.org/egressip-mark" in object.metadata.annotations) && oldObject.metadata.annotations["k8s.ovn.org/egressip-mark"] == object.metadata.annotations["k8s.ovn.org/egressip-mark"]) message: The "k8s.ovn.org/egressip-mark" annotation cannot be modified or removed once set. This annotation is managed by the system. reason: Invalid - expression: request.operation != "UPDATE" || !has(object.metadata.annotations) || !("k8s.ovn.org/egressip-mark" in object.metadata.annotations) || (has(oldObject.metadata.annotations) && ("k8s.ovn.org/egressip-mark" in oldObject.metadata.annotations)) || request.userInfo.username == "system:serviceaccount:openshift-ovn-kubernetes:ovn-kubernetes-control-plane" message: A regular user must not add "k8s.ovn.org/egressip-mark" annotation to an EgressIP custom resource. reason: Invalid status: observedGeneration: 1 typeChecking: {}