Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ConvertOut string ConvertBuildRepo string ConvertBuildBranch string ConvertBuild string ConvertVolumes string ConvertChart bool ConvertDeployment bool ConvertDaemonSet bool ConvertReplicationController bool ConvertYaml bool ConvertJSON bool ConvertStdout bool ConvertEmptyVols bool ConvertInsecureRepo bool ConvertDeploymentConfig bool ConvertReplicas int ConvertController string ConvertPushImage bool ConvertOpt kobject.ConvertOptions ConvertYAMLIndent int UpBuild string // WithKomposeAnnotation decides if we will add metadata about this convert to resource's annotation. // default is true. WithKomposeAnnotation bool )
TODO: comment
View Source
var ( GlobalBundle string GlobalProvider string GlobalVerbose bool GlobalSuppressWarnings bool GlobalErrorOnWarning bool GlobalFiles []string )
TODO: comment
View Source
var RootCmd = &cobra.Command{ Use: "kompose", Short: "A tool helping Docker Compose users move to Kubernetes", Long: `Kompose is a tool to help users who are familiar with docker-compose move to Kubernetes.`, PersistentPreRun: func(cmd *cobra.Command, args []string) { if GlobalVerbose { log.SetLevel(log.DebugLevel) } formatter := new(log.TextFormatter) formatter.DisableTimestamp = true formatter.ForceColors = true log.SetFormatter(formatter) if GlobalSuppressWarnings { log.SetLevel(log.ErrorLevel) } else if GlobalErrorOnWarning { hook := errorOnWarningHook{} log.AddHook(hook) } provider := strings.ToLower(GlobalProvider) if provider != "kubernetes" && provider != "openshift" { log.Fatalf("%s is an unsupported provider. Supported providers are: 'kubernetes', 'openshift'.", GlobalProvider) } }, }
RootCmd root level flags and commands
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.