From 2b6731a20626c614d2e3e1f457e100138f41f7ea Mon Sep 17 00:00:00 2001 From: Ricardo Maraschini Date: Tue, 25 Aug 2020 22:19:30 +0200 Subject: [PATCH] Making logging parameter optional Logging has been deprecated in favour of LogLevel, therefore this field is now optional and should so be updated on api accordingly. --- imageregistry/v1/00-crd.yaml | 1 - imageregistry/v1/types.go | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/imageregistry/v1/00-crd.yaml b/imageregistry/v1/00-crd.yaml index d67d798feae..14297e9ac32 100644 --- a/imageregistry/v1/00-crd.yaml +++ b/imageregistry/v1/00-crd.yaml @@ -36,7 +36,6 @@ spec: description: ImageRegistrySpec defines the specs for the running registry. type: object required: - - logging - managementState - replicas properties: diff --git a/imageregistry/v1/types.go b/imageregistry/v1/types.go index 69be006a26d..a9988843a40 100644 --- a/imageregistry/v1/types.go +++ b/imageregistry/v1/types.go @@ -81,6 +81,7 @@ type ImageRegistrySpec struct { // replicas determines the number of registry instances to run. Replicas int32 `json:"replicas"` // logging is deprecated, use logLevel instead. + // +optional Logging int64 `json:"logging"` // resources defines the resource requests+limits for the registry pod. // +optional