gitlab-system: Add Gatekeeper mutation that removes resource requests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Change-Id: I013da9f2c77fcae2a7665b6a860579a4bbf44d86
diff --git a/gitlab-system/no-resource-requests.yaml b/gitlab-system/no-resource-requests.yaml
new file mode 100644
index 0000000..31e146b
--- /dev/null
+++ b/gitlab-system/no-resource-requests.yaml
@@ -0,0 +1,21 @@
+apiVersion: mutations.gatekeeper.sh/v1
+kind: Assign
+metadata:
+ name: no-resource-requests
+ #namespace: gatekeeper-system
+spec:
+ applyTo:
+ - groups: [""]
+ kinds: ["Pod"]
+ versions: ["v1"]
+ match:
+ scope: Namespaced
+ kinds:
+ - apiGroups: ["*"]
+ kinds: ["Pod"]
+ namespaces: ["gitlab-system"]
+ location: "spec.containers[name:*].resources.requests.cpu"
+ parameters:
+ assign:
+ value: "1m"
+