Create tools for resizing and stopping a replication controller via kubectl.

This commit is contained in:
Brian Grant
2014-11-20 16:50:50 +00:00
parent 99260aaf51
commit e107da34d2
4 changed files with 94 additions and 2 deletions

View File

@@ -393,8 +393,7 @@ func (p *TemplatePrinter) PrintObj(obj runtime.Object, w io.Writer) error {
func tabbedString(f func(io.Writer) error) (string, error) {
out := new(tabwriter.Writer)
b := make([]byte, 1024)
buf := bytes.NewBuffer(b)
buf := &bytes.Buffer{}
out.Init(buf, 0, 8, 1, '\t', 0)
err := f(out)