From b2135cfa0ed0c099d21609e87b9510bfbd56e91c Mon Sep 17 00:00:00 2001 From: Ara Park Date: Tue, 10 Dec 2024 10:33:44 +0000 Subject: [PATCH] fix: add omitempty --- api/v1/revision_types.go | 2 +- config/crd/bases/uniflow.dev_revisions.yaml | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/api/v1/revision_types.go b/api/v1/revision_types.go index 2a1c018c..532f7729 100644 --- a/api/v1/revision_types.go +++ b/api/v1/revision_types.go @@ -48,7 +48,7 @@ type RevisionStatus struct { LastCreatedDeploymentName string `json:"lastCreatedDeploymentName,omitempty"` LastCreatedServiceName string `json:"lastCreatedServiceName,omitempty"` LastCreatedServingNames map[string]string `json:"lastCreatedServingNames,omitempty"` - LastBinedNamspases map[string]string `json:"lastBinedNamespases"` + LastBinedNamspases map[string]string `json:"lastBinedNamespases,omitempty"` } // +kubebuilder:object:root=true diff --git a/config/crd/bases/uniflow.dev_revisions.yaml b/config/crd/bases/uniflow.dev_revisions.yaml index f6f7e7ba..94969cce 100644 --- a/config/crd/bases/uniflow.dev_revisions.yaml +++ b/config/crd/bases/uniflow.dev_revisions.yaml @@ -7891,8 +7891,6 @@ spec: additionalProperties: type: string type: object - required: - - lastBinedNamespases type: object type: object served: true