cmd

package
v0.0.0-...-1bb2835 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: MIT Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GITCOMMIT string

GITCOMMIT The gitcommit the application was built from

View Source
var RootCmd = &cobra.Command{
	Use:          "binnacle",
	Short:        "An opinionated automation tool for Kubernetes' Helm.",
	Long:         ``,
	SilenceUsage: true,
	Version:      fmt.Sprintf("%s-%s", VERSION, GITCOMMIT),
}

RootCmd represents the base command when called without any subcommands

View Source
var VERSION string

VERSION The version of the application

Functions

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func PluginInstalled

func PluginInstalled(plugin string) (bool, error)

PluginInstalled returns if the given plugin is installed

func ReleaseExists

func ReleaseExists(namespace string, release string, args ...string) bool

func SetupBinnacleWorkingDir

func SetupBinnacleWorkingDir() (string, error)

func SetupKustomize

func SetupKustomize(tmpDir string, configPath string, chart config.ChartConfig) (string, error)

Set up the kustomize post-renderer script and kustomization.yml

Types

type Result

type Result struct {
	Stdout   string
	Stderr   string
	ExitCode int
}

Result definition

func NewResult

func NewResult() *Result

NewResult definition

func RunHelmCommand

func RunHelmCommand(args ...string) (Result, error)

RunHelmCommand runs the given command against helm

func (*Result) Error

func (r *Result) Error() string

Jump to

Keyboard shortcuts

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