common

package
v2.2.7-rc7+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteCharts

func DeleteCharts(tempDirs *HelmPath, port string, obj *v3.App) error

func GenerateAnswerSetValues

func GenerateAnswerSetValues(app *v3.App, tempDir *HelmPath, extraArgs map[string]string) ([]string, error)

func GenerateRandomPort

func GenerateRandomPort() string

func GetExtraArgs

func GetExtraArgs(app *v3.App) map[string]string

func InstallCharts

func InstallCharts(tempDirs *HelmPath, port string, obj *v3.App) error

func JailCommand

func JailCommand(cmd *exec.Cmd, jailPath string) (*exec.Cmd, error)

func ParseExternalID

func ParseExternalID(externalID string) (string, string, error)

func SplitExternalID

func SplitExternalID(externalID string) (string, string, string, string, string, error)

func StartTiller

func StartTiller(context context.Context, tempDirs *HelmPath, port, namespace string) error

StartTiller start tiller server and return the listening address of the grpc address

Types

type HelmPath

type HelmPath struct {
	// /opt/jail/<app-name>
	FullPath string
	// /
	InJailPath string
	// /opt/jail/<app-name>/.kubeconfig
	KubeConfigFull string
	// /.kubeconfig
	KubeConfigInJail string
	// /opt/jail/<app-name>/<app-sub>
	AppDirFull string
	// /<app-sub>
	AppDirInJail string
}

type InjectAppArgsFunc

type InjectAppArgsFunc func(obj *v3.App) (content map[string]string)

Jump to

Keyboard shortcuts

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