Replace fmt.Print with printer in upgrade plan code and fix configVersions are not printed when output is json or yaml