Skip to content

Commit 2bcebed

Browse files
authored
Merge pull request kubernetes#91890 from zhouya0/fix_clusterdump_info_namespaces_not_working
Fix clusterdump info namespaces flag not working
2 parents 7a68eac + 461fbad commit 2bcebed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

staging/src/k8s.io/kubectl/pkg/cmd/clusterinfo/clusterinfo_dump.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ func (o *ClusterInfoDumpOptions) Run() error {
200200
metav1.NamespaceSystem,
201201
o.Namespace,
202202
}
203+
} else {
204+
namespaces = o.Namespaces
203205
}
204206
}
205207
for _, namespace := range namespaces {

0 commit comments

Comments
 (0)