Had append targets inverted
@@ -2,18 +2,18 @@ package v1beta2
func (s *SupportBundle) ConcatSpec(bundle *SupportBundle) {
for _, v := range bundle.Spec.Collectors {
- s.Spec.Collectors = append(bundle.Spec.Collectors, v)
+ s.Spec.Collectors = append(s.Spec.Collectors, v)
}
for _, v := range bundle.Spec.AfterCollection {
- s.Spec.AfterCollection = append(bundle.Spec.AfterCollection, v)
+ s.Spec.AfterCollection = append(s.Spec.AfterCollection, v)
}
for _, v := range bundle.Spec.HostCollectors {
- s.Spec.HostCollectors = append(bundle.Spec.HostCollectors, v)
+ s.Spec.HostCollectors = append(s.Spec.HostCollectors, v)
}
for _, v := range bundle.Spec.HostAnalyzers {
- s.Spec.HostAnalyzers = append(bundle.Spec.HostAnalyzers, v)
+ s.Spec.HostAnalyzers = append(s.Spec.HostAnalyzers, v)
}
for _, v := range bundle.Spec.Analyzers {
- s.Spec.Analyzers = append(bundle.Spec.Analyzers, v)
+ s.Spec.Analyzers = append(s.Spec.Analyzers, v)
}
}
