File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,12 @@ for container_name in "${!IMAGE_MAPPINGS[@]}"; do
58
58
$YQ -i ' select(.kind == "Namespace").metadata.annotations += {"workload.openshift.io/allowed": "management"}' " $TMP_KUSTOMIZE_OUTPUT "
59
59
done
60
60
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
+
61
67
# Use yq to split the single yaml file into 1 per document.
62
68
# Naming convention: $index-$kind-$namespace-$name. If $namespace is empty, just use the empty string.
63
69
(
@@ -101,4 +107,3 @@ cp "$TMP_MANIFEST_DIR"/* "$MANIFEST_DIR"/
101
107
fi
102
108
done
103
109
)
104
-
You can’t perform that action at this time.
0 commit comments