diff --git a/Makefile b/Makefile index c407ade2d..9abc35b3d 100644 --- a/Makefile +++ b/Makefile @@ -151,15 +151,9 @@ generate: $(CONTROLLER_GEN) #EXHELP Generate code containing DeepCopy, DeepCopyI $(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..." .PHONY: verify -verify: tidy fmt generate manifests crd-ref-docs update-k8s-values #HELP Verify all generated code is up-to-date. +verify: tidy fmt generate manifests crd-ref-docs #HELP Verify all generated code is up-to-date. git diff --exit-code -.PHONY: update-k8s-values # HELP Update PSA labels in config manifests with Kubernetes version -update-k8s-values: - find config -type f -name '*.yaml' -exec \ - sed -i.bak -E 's/(pod-security.kubernetes.io\/[a-zA-Z-]+-version:).*/\1 "v$(K8S_VERSION)"/g' {} +; - find config -type f -name '*.yaml.bak' -delete - .PHONY: fix-lint fix-lint: $(GOLANGCI_LINT) #EXHELP Fix lint issues $(GOLANGCI_LINT) run --fix --build-tags $(GO_BUILD_TAGS) $(GOLANGCI_LINT_ARGS) diff --git a/config/base/common/namespace.yaml b/config/base/common/namespace.yaml index 3faa861ed..99d47415f 100644 --- a/config/base/common/namespace.yaml +++ b/config/base/common/namespace.yaml @@ -4,5 +4,5 @@ metadata: labels: app.kubernetes.io/part-of: olm pod-security.kubernetes.io/enforce: restricted - pod-security.kubernetes.io/enforce-version: "v1.32" + pod-security.kubernetes.io/enforce-version: latest name: system