From 71cc2f6950f6227fb36a9e22bbd4ed06a8524a10 Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Tue, 16 Jan 2024 19:36:35 +0100 Subject: [PATCH] =?UTF-8?q?Add=20go.version=20support=20with=20an=20enum?= =?UTF-8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … to list the only go version allowed/supported. Signed-off-by: Vincent Demeester --- go-crane-image/go-crane-image.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/go-crane-image/go-crane-image.yaml b/go-crane-image/go-crane-image.yaml index 1f268be..588a2b0 100644 --- a/go-crane-image/go-crane-image.yaml +++ b/go-crane-image/go-crane-image.yaml @@ -49,11 +49,15 @@ spec: Golang options, such as flags, … type: object properties: + version: + type: string + enum: ["1.19", "1.20", "1.21", "1.22"] GOFLAGS: {type: string} GOOS: {type: string} GOARCH: {type: string} CGO_ENABLED: {type: string} default: + version: "1.21" GOFLAGS: "-v" GOOS: "" GOARCH: ""