utils

package
v0.0.0-...-3b8117c Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultEnv = &cli.EnvSettings{
	KubeConfig:  "",
	KubeContext: "",
}

Functions

func DecodeRelease

func DecodeRelease(data string) (*rspb.Release, error)

DecodeRelease decodes release data from a tiller resource (configmap/secret)

func Execute

func Execute(cmd []string) []byte

Execute executes a command

func ExecuteCombined

func ExecuteCombined(cmd []string) []byte

ExecuteCombined executes a command and resturns the combined output

func GetClientSet

func GetClientSet() (*kubernetes.Clientset, error)

GetClientSet returns a kubernetes ClientSet

func GetClientSetWithConfig

func GetClientSetWithConfig(config *cli.EnvSettings) (*kubernetes.Clientset, error)

func GetClientSetWithKubeConfig

func GetClientSetWithKubeConfig(kubeConfigFile, context string) *kubernetes.Clientset

GetClientSetWithKubeConfig returns a kubernetes ClientSet

func GetTillerStorage

func GetTillerStorage(tillerNamespace string) string

GetTillerStorage returns the storage type of tiller (configmaps/secrets)

func GetTillerStorageWithKubeConfig

func GetTillerStorageWithKubeConfig(tillerNamespace string, config *cli.EnvSettings) string

GetTillerStorageWithKubeConfig returns the storage type of tiller (configmaps/secrets)

func ListReleaseNamesInNamespace

func ListReleaseNamesInNamespace(o ListReleaseNamesInNamespaceOptions) (string, error)

ListReleaseNamesInNamespace returns a string list of all releases in a provided namespace

func ListReleaseNamesInNamespaceWithKubeConfig

func ListReleaseNamesInNamespaceWithKubeConfig(o ListReleaseNamesInNamespaceOptions, config *cli.EnvSettings) (string, error)

ListReleaseNamesInNamespaceWithKubeConfig returns a string list of all releases in a provided namespace

Types

type ListOptions

type ListOptions struct {
	ReleaseName     string
	TillerNamespace string
	TillerLabel     string
}

type ListReleaseNamesInNamespaceOptions

type ListReleaseNamesInNamespaceOptions struct {
	Namespace       string
	TillerNamespace string
}

type ReleaseData

type ReleaseData struct {
	Name      string
	Revision  int32
	Updated   string
	Status    string
	Chart     string
	Namespace string
	Time      time.Time
	Manifest  string
}

func GetReleaseData

func GetReleaseData(itemReleaseData string) *ReleaseData

GetReleaseData returns a decoded structed release data

func ListReleases

func ListReleases(o ListOptions) ([]ReleaseData, error)

ListReleases lists all releases according to provided options

func ListReleasesWithKubeConfig

func ListReleasesWithKubeConfig(o ListOptions, config *cli.EnvSettings) ([]ReleaseData, error)

ListReleasesWithKubeConfig lists all releases according to provided options

Jump to

Keyboard shortcuts

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