cmd

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2019 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuildConfig string
View Source
var BuildDockerBuildArg opts.ListOpts

https://github.com/docker/cli/blob/v18.06.2-ce/cli/command/image/build.go#L41-L75

View Source
var BuildDockerLabel opts.ListOpts
View Source
var BuildDockerNetwork string
View Source
var BuildPush bool
View Source
var BuildRemove bool
View Source
var BuildTagPrefix string
View Source
var BuildTagSuffix string
View Source
var BuildTags []string
View Source
var InstallDefaultPWL bool
View Source
var InstallPatchFiles []string
View Source
var InstallPatches []string
View Source
var InstallVarFiles []string
View Source
var InstallVarFlags []string
View Source
var RootCmd = &cobra.Command{
	Use:   "carbon",
	Short: "Carbon is a Kubernetes package management command-line utility.",
	Long: `
Carbon is a command-line utlity designed to let you to operate with your application
and related Kubernetes manifests as a signle package.
It uses standard Docker images as a foundation, but adds Kubernetes manifest templates
to Docker image lables. Hence you can use already existing Docker ecosystem in order to
distribute and store your Carbon packages.
More details can be found here: https://github.com/StarOfService/carbon`,

	PersistentPreRun: func(cmd *cobra.Command, args []string) {
		log.SetFormatter(&log.TextFormatter{
			FullTimestamp: true,
		})
		switch logLevel {
		case "trace":
			log.SetLevel(log.TraceLevel)
		case "debug":
			log.SetLevel(log.DebugLevel)
		case "info":
			log.SetLevel(log.InfoLevel)
		case "warn":
			log.SetLevel(log.WarnLevel)
		case "error":
			log.SetLevel(log.ErrorLevel)
		case "fatal":
			log.SetLevel(log.FatalLevel)
		default:
			log.Fatal("Unsupported log level: ", logLevel)
		}

		if rootMinikube {
			err := minikube.CheckStatus()
			if err != nil {
				log.Fatalf("Failed to verify Minikube status due to the error: %s", err)
			}
			minikube.Enabled = true
			if err := minikube.SetDockerEnv(); err != nil {
				log.Fatalf("Failed to set up Docker environment variables for Minikube due to the error: %s", err)
			}
		}

		kubernetes.SetNamespace(namespace)

		err := homecfg.InitHomeConfig()
		if err != nil {
			log.Fatalf("Failed to initialize Carbon config directory at user home due to the error: %s", err)
		}
	},
}
View Source
var StatusFull bool

Functions

func Execute

func Execute()

Types

This section is empty.

Jump to

Keyboard shortcuts

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