--- apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingAdmissionPolicy metadata: creationTimestamp: "2026-11-04T04:04:28Z" 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-11-04T04:04:28Z" - apiVersion: admissionregistration.k8s.io/v1 fieldsType: FieldsV1 fieldsV1: f:metadata: f:ownerReferences: k:{"uid":"2abc85da-737a-4bba-8c87-b6df7ef374e7"}: {} f:spec: f:failurePolicy: {} f:matchConstraints: {} f:validations: {} manager: cluster-network-operator/operconfig operation: Apply time: "2026-11-04T04:04:56Z" name: egressip-mark-annotation-validation ownerReferences: - apiVersion: operator.openshift.io/v1 blockOwnerDeletion: true controller: true kind: Network name: cluster uid: 2abc85da-737a-4bba-8c87-b6df7ef374e7 resourceVersion: "4350" uid: 754f4b60-834b-477e-8b4c-bf3bddf7ed13 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: {}