Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "resolve-tags", Short: "resolve-tags is a tool for replacing tagged images with fully qualified images in Kubernetes yamls", Long: `resolve-tags can be run as either a kubectl plugin or as a binary. It takes in paths to file and prints new manifests to STDOUT. Note: When running as a binary, if the KUBECTL_PLUGINS_LOCAL_FLAG_FILENAME env variable is set, it will override any files passed in.`, PersistentPreRunE: func(cmd *cobra.Command, args []string) error { if err := flag.CommandLine.Parse([]string{}); err != nil { return err } resolveApply() cwd, err := os.Getwd() if err != nil { return err } return resolveFilepaths(cwd) }, RunE: func(cmd *cobra.Command, args []string) error { substitutes, err := resolve.Execute(files) if err != nil { return fmt.Errorf("unable to resolve: %v", err) } return outputResults(substitutes, cmd.OutOrStdout()) }, SilenceUsage: true, }
RootCmd implements the resolve-tags command.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.