From f5652df9da3a2a4b736f559b5a4f08bc7f2845f7 Mon Sep 17 00:00:00 2001 From: Dan Jones Date: Tue, 23 Aug 2022 16:26:19 +0100 Subject: [PATCH] remove old method definition Signed-off-by: Dan Jones --- .../v1beta2/supportbundle_types.go | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/pkg/apis/troubleshoot/v1beta2/supportbundle_types.go b/pkg/apis/troubleshoot/v1beta2/supportbundle_types.go index 4d324e37..0da842a9 100644 --- a/pkg/apis/troubleshoot/v1beta2/supportbundle_types.go +++ b/pkg/apis/troubleshoot/v1beta2/supportbundle_types.go @@ -48,24 +48,6 @@ type SupportBundle struct { Status SupportBundleStatus `json:"status,omitempty"` } -func (s *SupportBundle) concatSpec(bundle *SupportBundle) { - for _, v := range bundle.Spec.Collectors { - s.Spec.Collectors = append(bundle.Spec.Collectors, v) - } - for _, v := range bundle.Spec.AfterCollection { - s.Spec.AfterCollection = append(bundle.Spec.AfterCollection, v) - } - for _, v := range bundle.Spec.HostCollectors { - s.Spec.HostCollectors = append(bundle.Spec.HostCollectors, v) - } - for _, v := range bundle.Spec.HostAnalyzers { - s.Spec.HostAnalyzers = append(bundle.Spec.HostAnalyzers, v) - } - for _, v := range bundle.Spec.Analyzers { - s.Spec.Analyzers = append(bundle.Spec.Analyzers, v) - } -} - // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // SupportBundleList contains a list of SupportBundle