cmd

package
v0.0.0-...-98771fd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagManifests      = "manifests"
	FlagOnlyGenerate   = "only-generate"
	FlagPlatformConfig = "config"
)
View Source
const (
	ReleaseNamespace = "kubeprod"
	ReleaseName      = "release"
)

Variables

View Source
var InstallCmd = &cobra.Command{
	Use:   "install",
	Short: "Install Bitnami Production Runtime for Kubernetes",
	Args:  cobra.NoArgs,
}
View Source
var ReleasesBaseUrl = "https://releases.kubeprod.io"
View Source
var RootCmd = &cobra.Command{
	Use:           "kubeprod",
	Short:         "Install the Bitnami Kubernetes Production Runtime",
	SilenceErrors: true,
	SilenceUsage:  true,
	PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
		goflag.CommandLine.Parse([]string{})
		out := cmd.OutOrStderr()
		log.SetOutput(out)

		logFmt := NewLogFormatter(out)
		log.SetFormatter(logFmt)

		if glog.V(1) {
			log.SetLevel(log.DebugLevel)
		} else {
			log.SetLevel(log.InfoLevel)
		}

		return nil
	},
}
View Source
var Version = "(dev build)"

NB: These are overridden by main()

Functions

func DefaultManifestBase

func DefaultManifestBase() string

func IsRelease

func IsRelease() bool

func NewInstallSubcommand

func NewInstallSubcommand(cmd *cobra.Command, platform string, config installer.PlatformConfig) (*installer.InstallCmd, error)

Common initialisation for platform install subcommands

func NewLogFormatter

func NewLogFormatter(out io.Writer) log.Formatter

NewLogFormatter creates a new log.Formatter customised for writer

func UpdateFlagDefaults

func UpdateFlagDefaults()

Called at top of main() to re-set any flags that may have changed default value. Hack to force this to occur after init().

Types

type Release

type Release struct {
	Release string `json:"release"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL