install

package
v1.2.23 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: Apache-2.0 Imports: 42 Imported by: 2

Documentation

Index

Constants

View Source
const (
	GlooEHelmRepoTemplate = "https://storage.googleapis.com/gloo-ee-helm/charts/gloo-ee-%s.tgz"
)

Variables

View Source
var (
	GlooAlreadyInstalled = func(namespace string) error {
		return errors.Errorf("Gloo has already been installed to namespace %s", namespace)
	}
	NoReleaseForCRDs        = errors.New("Could not find a release from which to pull CRDs")
	MultipleReleasesForCRDs = errors.New("Found multiple releases from which to pull CRDs")
)
View Source
var (
	GlooNamespacedKinds    []string
	GlooClusterScopedKinds []string
	GlooCrdNames           []string

	GlooComponentLabels map[string]string

	KnativeCrdNames []string
)

Functions

func InstallCmd

func InstallCmd(opts *options.Options, optionsFunc ...cliutils.OptionsFunc) *cobra.Command

func LabelsToFlagString added in v1.2.11

func LabelsToFlagString(labelMap map[string]string) (labelString string)

func NewCLISettings added in v1.2.3

func NewCLISettings(namespace string) *cli.EnvSettings

Build a Helm EnvSettings struct basically, abstracted cli.New() into our own function call because of the weirdness described in the big comment below

func RenderKnativeManifests added in v0.17.0

func RenderKnativeManifests(opts options.Knative) (string, error)

used by e2e test

func RenderKnativeValues added in v1.2.0

func RenderKnativeValues(version string) (string, error)

func UninstallCmd

func UninstallCmd(opts *options.Options, optionsFunc ...cliutils.OptionsFunc) *cobra.Command

func UninstallGloo added in v0.12.0

func UninstallGloo(opts *options.Options, cli install.KubeCli) error

Types

type HelmClient added in v1.2.0

type HelmClient interface {
	// Prepare an installation object that can then be .Run() with a chart object
	NewInstall(namespace, releaseName string, dryRun bool) (HelmInstallation, *cli.EnvSettings, error)

	// Prepare an un-installation object that can then be .Run() with a release name
	NewUninstall(namespace string) (HelmUninstallation, error)

	// List the already-existing releases in the given namespace
	ReleaseList(namespace string) (HelmReleaseListRunner, error)

	// Returns the Helm chart archive located at the given URI (can be either an http(s) address or a file path)
	DownloadChart(chartArchiveUri string) (*chart.Chart, error)

	// Returns true if the release with the given name exists in the given namespace
	ReleaseExists(namespace, releaseName string) (releaseExists bool, err error)
}

This interface implements the Helm CLI actions. The implementation relies on the Helm 3 libraries.

func DefaultHelmClient added in v1.2.0

func DefaultHelmClient() HelmClient

a HelmClient that talks to the kube api server and creates resources

type HelmInstallation added in v1.2.0

type HelmInstallation interface {
	Run(chrt *chart.Chart, vals map[string]interface{}) (*release.Release, error)
}

an interface around Helm's action.Install struct

type HelmReleaseListRunner added in v1.2.0

type HelmReleaseListRunner interface {
	Run() ([]*release.Release, error)
	SetFilter(filter string)
}

an interface around Helm's action.List struct

type HelmUninstallation added in v1.2.0

type HelmUninstallation interface {
	Run(name string) (*release.UninstallReleaseResponse, error)
}

an interface around Helm's action.Uninstall struct

type Installer added in v1.2.0

type Installer interface {
	Install(installerConfig *InstallerConfig) error
}

func NewInstaller added in v1.2.0

func NewInstaller(helmClient HelmClient) Installer

func NewInstallerWithWriter added in v1.2.0

func NewInstallerWithWriter(helmClient HelmClient, kubeCli install.KubeCli, outputWriter io.Writer) Installer

visible for testing

type InstallerConfig added in v1.2.0

type InstallerConfig struct {
	InstallCliArgs *options.Install
	ExtraValues    map[string]interface{}
	Enterprise     bool
	Verbose        bool
}

type Uninstaller added in v1.2.0

type Uninstaller interface {
	Uninstall(cliArgs *options.Options) error
}

func NewUninstaller added in v1.2.0

func NewUninstaller(helmClient HelmClient, kubeCli install.KubeCli) Uninstaller

func NewUninstallerWithOutput added in v1.2.0

func NewUninstallerWithOutput(helmClient HelmClient, kubeCli install.KubeCli, output io.Writer) Uninstaller

visible for testing

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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