From 717e24f524a2b40ac37632febb1d8ed22835c364 Mon Sep 17 00:00:00 2001 From: juliankatz Date: Tue, 27 Aug 2024 12:49:11 -0700 Subject: [PATCH] chore: Bump GATOR_VERSION to 1.17.0 from 1.16.3 In the 1.17.0 version of gator (which I've been using on my machine), the `--experimental-enable-k8s-native-validation` flag has been renamed to `--enable-k8s-native-validation`. This was preventing me from using the `make verify-gator` target. This PR fixes updates the GATOR_VERSION and changes the flag. Signed-off-by: juliankatz --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index bc7908f22..064e6ec94 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ KUBERNETES_VERSION ?= 1.30.0 KUSTOMIZE_VERSION ?= 4.5.5 GATEKEEPER_VERSION ?= 3.16.3 BATS_VERSION ?= 1.8.2 -GATOR_VERSION ?= 3.16.3 +GATOR_VERSION ?= 3.17.0 GOMPLATE_VERSION ?= 3.11.6 POLICY_ENGINE ?= rego @@ -50,17 +50,17 @@ test-integration: .PHONY: verify-gator verify-gator: ifeq ($(POLICY_ENGINE), rego) - gator verify ./... --experimental-enable-k8s-native-validation=false + gator verify ./... --enable-k8s-native-validation=false else ifeq ($(POLICY_ENGINE), cel) - gator verify ./... --experimental-enable-k8s-native-validation=true + gator verify ./... --enable-k8s-native-validation=true endif .PHONY: verify-gator-dockerized verify-gator-dockerized: __build-gator ifeq ($(POLICY_ENGINE), rego) - $(docker) run -i -v $(shell pwd):/gatekeeper-library gator-container verify ./... --experimental-enable-k8s-native-validation=false + $(docker) run -i -v $(shell pwd):/gatekeeper-library gator-container verify ./... --enable-k8s-native-validation=false else ifeq ($(POLICY_ENGINE), cel) - $(docker) run -i -v $(shell pwd):/gatekeeper-library gator-container verify ./... --experimental-enable-k8s-native-validation=true + $(docker) run -i -v $(shell pwd):/gatekeeper-library gator-container verify ./... --enable-k8s-native-validation=true endif .PHONY: build-gator