Skip to content

Commit 9fc2c4e

Browse files
Mikalai Radchukci-robot
authored andcommitted
UPSTREAM: <carry>: Enable Validating Admission Policy APIs downstream
* This reverts commit 3f079c4. * Includes Validating Admission Policy manifests Signed-off-by: Mikalai Radchuk <[email protected]>
1 parent f9f69db commit 9fc2c4e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

openshift/generate-manifests.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,6 @@ for container_name in "${!IMAGE_MAPPINGS[@]}"; do
5858
$YQ -i 'select(.kind == "Namespace").metadata.annotations += {"workload.openshift.io/allowed": "management"}' "$TMP_KUSTOMIZE_OUTPUT"
5959
done
6060

61-
# Exclude ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding
62-
# APIs from downstream build as these API are currently not enabled by default.
63-
# In the OCP 4.17 (K8s 1.30) they will be become available
64-
# and we will be able to remove this to enforce admission policies
65-
$YQ -i 'del(select((.kind|downcase) == "validatingadmissionpolicy" or (.kind|downcase) == "validatingadmissionpolicybinding"))' "$TMP_KUSTOMIZE_OUTPUT"
66-
6761
# Use yq to split the single yaml file into 1 per document.
6862
# Naming convention: $index-$kind-$namespace-$name. If $namespace is empty, just use the empty string.
6963
(
@@ -107,3 +101,4 @@ cp "$TMP_MANIFEST_DIR"/* "$MANIFEST_DIR"/
107101
fi
108102
done
109103
)
104+

0 commit comments

Comments
 (0)