Exemplo n.º 1
0
// NewCmdImage is a wrapper for the Kubernetes CLI set image command
func NewCmdImage(fullName string, f *clientcmd.Factory, out, err io.Writer) *cobra.Command {
	cmd := set.NewCmdImage(f, out, err)
	cmd.Long = setImageLong
	cmd.Example = fmt.Sprintf(setImageExample, fullName)

	flags := cmd.Flags()
	f.ImageResolutionOptions().Bind(flags)

	return cmd
}
Exemplo n.º 2
0
// NewCmdImage is a wrapper for the Kubernetes CLI set image command
func NewCmdImage(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command {
	cmd := set.NewCmdImage(f.Factory, out)
	cmd.Long = setImageLong
	cmd.Example = fmt.Sprintf(setImageExample, fullName)
	return cmd
}