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 NewInstallSubcommand ¶ added in v0.2.0
func NewInstallSubcommand(cmd *cobra.Command, platform string, config installer.PlatformConfig) (*installer.InstallCmd, error)
Common initialisation for platform install subcommands
func NewLogFormatter ¶
NewLogFormatter creates a new log.Formatter customised for writer
func UpdateFlagDefaults ¶ added in v1.0.0
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 ¶
Click to show internal directories.
Click to hide internal directories.