From 5072091eb54caee0a0cbd75ff02b55256cc38371 Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Mon, 11 Jul 2022 18:00:05 +0300 Subject: [PATCH] Remove the default tag value from the CRD Signed-off-by: Stefan Prodan --- api/v1beta2/ocirepository_types.go | 1 - config/crd/bases/source.toolkit.fluxcd.io_ocirepositories.yaml | 1 - 2 files changed, 2 deletions(-) diff --git a/api/v1beta2/ocirepository_types.go b/api/v1beta2/ocirepository_types.go index b35ccca5..39a90c30 100644 --- a/api/v1beta2/ocirepository_types.go +++ b/api/v1beta2/ocirepository_types.go @@ -102,7 +102,6 @@ type OCIRepositoryRef struct { SemVer string `json:"semver,omitempty"` // Tag is the image tag to pull, defaults to latest. - // +kubebuilder:default:=latest // +optional Tag string `json:"tag,omitempty"` } diff --git a/config/crd/bases/source.toolkit.fluxcd.io_ocirepositories.yaml b/config/crd/bases/source.toolkit.fluxcd.io_ocirepositories.yaml index b7eb96c1..4980cd2c 100644 --- a/config/crd/bases/source.toolkit.fluxcd.io_ocirepositories.yaml +++ b/config/crd/bases/source.toolkit.fluxcd.io_ocirepositories.yaml @@ -88,7 +88,6 @@ spec: latest within the range, takes precedence over Tag. type: string tag: - default: latest description: Tag is the image tag to pull, defaults to latest. type: string type: object