From 1d173f25223074aeddff850d217a91a65396529c Mon Sep 17 00:00:00 2001 From: hedge-sparrow Date: Fri, 29 Nov 2024 15:42:10 +0000 Subject: [PATCH] add kubernetes system namespaces to generated support bundles --- pkg/supportbundle/spec.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/supportbundle/spec.go b/pkg/supportbundle/spec.go index 17a2782343..d59474951b 100644 --- a/pkg/supportbundle/spec.go +++ b/pkg/supportbundle/spec.go @@ -99,6 +99,11 @@ func CreateRenderedSpec(app *apptypes.App, sequence int64, kotsKinds *kotsutil.K namespacesToCollect = append(namespacesToCollect, util.PodNamespace) namespacesToCollect = append(namespacesToCollect, kotsKinds.KotsApplication.Spec.AdditionalNamespaces...) } + } else { + // re-enable collection of k8s system namespaces + namespacesToCollect = append(namespacesToCollect, "kube-system") + namespacesToCollect = append(namespacesToCollect, "kube-node-lease") + namespacesToCollect = append(namespacesToCollect, "kube-public") } // split the default kotsadm support bundle into multiple support bundles