From 4c7fdfcce583afa3e5b9126e3a59d7650de679fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Fern=C3=A1ndez?= <7312236+fernandezcuesta@users.noreply.github.com> Date: Sun, 27 Oct 2024 10:19:18 +0100 Subject: [PATCH] fix: make field optional MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> --- Makefile | 2 +- apis/v1beta1/types.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index fb7c939..5e059e5 100644 --- a/Makefile +++ b/Makefile @@ -38,7 +38,7 @@ NPROCS ?= 1 # to half the number of CPU cores. GO_TEST_PARALLEL := $(shell echo $$(( $(NPROCS) / 2 ))) -GO_REQUIRED_VERSION ?= 1.21 +GO_REQUIRED_VERSION ?= 1.22 GO_STATIC_PACKAGES = $(GO_PROJECT)/cmd/provider $(GO_PROJECT)/cmd/generator GO_LDFLAGS += -X $(GO_PROJECT)/internal/version.Version=$(VERSION) GO_SUBDIRS += cmd internal apis diff --git a/apis/v1beta1/types.go b/apis/v1beta1/types.go index 34b0951..7f7d1b5 100644 --- a/apis/v1beta1/types.go +++ b/apis/v1beta1/types.go @@ -16,7 +16,7 @@ type ProviderConfigSpec struct { Credentials ProviderCredentials `json:"credentials"` // The PagerDuty service region to use. If omitted uses US region. // +kubebuilder:validation:Enum=eu - // +optional + // +kubebuilder:validation:Optional ServiceRegion string `json:"serviceRegion"` }