Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &cli.Command{ Name: "build", Usage: "build image on cluster", Flags: []cli.Flag{ app.NamespaceFlag, &cli.StringFlag{ Name: "image", Usage: "image name (format: registry/repository:tag)", }, &cli.BoolFlag{ Name: "insecure", Usage: "use insecure registry", }, &cli.StringFlag{ Name: "username", Usage: "registry username", }, &cli.StringFlag{ Name: "password", Usage: "registry password", }, }, Action: func(ctx context.Context, cmd *cli.Command) error { client := app.MustClient(ctx, cmd) path, err := ParsePath(cmd.Args().Get(0)) if err != nil { return err } image, err := ParseImage(cmd.String("image")) if err != nil { return err } image.Insecure = cmd.Bool("insecure") image.Username = cmd.String("username") image.Password = cmd.String("password") return Run(ctx, client, "", image, path, "") }, }
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.