Skip to content

Commit 7e95f86

Browse files
Merge pull request #22747 from sanchezl/must-gather_default_image
fallback to quay.io/openshift/origin-must-gather:latest
2 parents 1b80b58 + 1a5f54b commit 7e95f86

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pkg/oc/cli/admin/mustgather/mustgather.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ func (o *MustGatherOptions) Complete(f kcmdutil.Factory, cmd *cobra.Command, arg
108108
}
109109
var ok bool
110110
if o.Image, ok = util.ResolveLatestTaggedImage(imageStream, "latest"); !ok {
111-
return fmt.Errorf("unable to to resolve must-gather image")
111+
o.Image = "quay.io/openshift/origin-must-gather:latest"
112+
fmt.Fprintf(o.Out, "Unable to resolve the openshift imagestream tag must-gather:latest; Using %s image instead.", o.Image)
112113
}
113114
}
114115
o.PrinterCreated, err = printers.NewTypeSetter(scheme.Scheme).WrapToPrinter(&printers.NamePrinter{Operation: "created"}, nil)

0 commit comments

Comments
 (0)