diff --git a/changelogs/unreleased/1918-raghavendrabhat b/changelogs/unreleased/1918-raghavendrabhat new file mode 100644 index 000000000..b8d4775e0 --- /dev/null +++ b/changelogs/unreleased/1918-raghavendrabhat @@ -0,0 +1,4 @@ +clarify the wording for restore describe for namespaces included + +Instead of showing it as "*" explicitly mention that all the namespaces +from the backup object are included. diff --git a/pkg/cmd/util/output/restore_describer.go b/pkg/cmd/util/output/restore_describer.go index a4e9119fb..10b1f83bb 100644 --- a/pkg/cmd/util/output/restore_describer.go +++ b/pkg/cmd/util/output/restore_describer.go @@ -65,7 +65,9 @@ func DescribeRestore(restore *v1.Restore, podVolumeRestores []v1.PodVolumeRestor d.Printf("Namespaces:\n") var s string if len(restore.Spec.IncludedNamespaces) == 0 { - s = "*" + s = "all namespaces found in the backup" + } else if len(restore.Spec.IncludedNamespaces) == 1 && restore.Spec.IncludedNamespaces[0] == "*" { + s = "all namespaces found in the backup" } else { s = strings.Join(restore.Spec.IncludedNamespaces, ", ") }