warn user if they try to apply on an object without the annotation

This commit is contained in:
ymqytw
2016-11-11 14:38:36 -08:00
parent 8820922997
commit b6cfa9aa98
3 changed files with 81 additions and 9 deletions

View File

@@ -281,7 +281,7 @@ func NewKubectlCommand(f cmdutil.Factory, in io.Reader, out, err io.Writer) *cob
{
Message: "Advanced Commands:",
Commands: []*cobra.Command{
NewCmdApply(f, out),
NewCmdApply(f, out, err),
NewCmdPatch(f, out),
NewCmdReplace(f, out),
NewCmdConvert(f, out),