From 76511b01a00130ac6fc751d74296ece469d025fd Mon Sep 17 00:00:00 2001 From: Thomas Schuetz Date: Mon, 11 Apr 2022 16:59:11 +0200 Subject: [PATCH] fix: bug with duplicate crds Signed-off-by: Thomas Schuetz --- .../api/v1/keptngitrepository_types.go | 9 --------- .../api/v1/zz_generated.deepcopy.go | 19 ------------------- 2 files changed, 28 deletions(-) diff --git a/gitops-operator/api/v1/keptngitrepository_types.go b/gitops-operator/api/v1/keptngitrepository_types.go index df90f87..aa8f7f8 100644 --- a/gitops-operator/api/v1/keptngitrepository_types.go +++ b/gitops-operator/api/v1/keptngitrepository_types.go @@ -17,7 +17,6 @@ limitations under the License. package v1 import ( - keptnv1 "github.com/keptn-sandbox/keptn-gitops-operator/keptn-operator/api/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) @@ -64,14 +63,6 @@ type KeptnGitRepositoryList struct { Items []KeptnGitRepository `json:"items"` } -type KeptnProject struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec keptnv1.KeptnProjectSpec `json:"spec,omitempty"` - Status keptnv1.KeptnProjectStatus `json:"status,omitempty"` -} - func init() { SchemeBuilder.Register(&KeptnGitRepository{}, &KeptnGitRepositoryList{}) } diff --git a/gitops-operator/api/v1/zz_generated.deepcopy.go b/gitops-operator/api/v1/zz_generated.deepcopy.go index 4a9a59c..cf26200 100644 --- a/gitops-operator/api/v1/zz_generated.deepcopy.go +++ b/gitops-operator/api/v1/zz_generated.deepcopy.go @@ -113,22 +113,3 @@ func (in *KeptnGitRepositoryStatus) DeepCopy() *KeptnGitRepositoryStatus { in.DeepCopyInto(out) return out } - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *KeptnProject) DeepCopyInto(out *KeptnProject) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - out.Status = in.Status -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeptnProject. -func (in *KeptnProject) DeepCopy() *KeptnProject { - if in == nil { - return nil - } - out := new(KeptnProject) - in.DeepCopyInto(out) - return out -}