install

package
v0.0.0-...-5a6645a Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2019 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var (
	// These will get cleaned up by uninstall always
	GlooSystemKinds []string
	// These will get cleaned up only if uninstall all is chosen
	GlooRbacKinds []string
	// These will get cleaned up by uninstall if delete-crds or all is chosen
	GlooCrdNames []string

	// Set up during pre-install (for OS gloo, namespace only)
	GlooPreInstallKinds     []string
	GlooInstallKinds        []string
	GlooGatewayUpgradeKinds []string
	ExpectedLabels          map[string]string

	KnativeCrdNames []string
)

Functions

func InstallCmd

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

func InstallGloo

func InstallGloo(opts *options.Options, spec GlooInstallSpec, client GlooKubeInstallClient) error

func RenderKnativeManifests

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

used by e2e test

func UninstallCmd

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

func UninstallGloo

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

Types

type DefaultGlooKubeInstallClient

type DefaultGlooKubeInstallClient struct{}

func (*DefaultGlooKubeInstallClient) KubectlApply

func (i *DefaultGlooKubeInstallClient) KubectlApply(manifest []byte) error

func (*DefaultGlooKubeInstallClient) WaitForCrdsToBeRegistered

func (i *DefaultGlooKubeInstallClient) WaitForCrdsToBeRegistered(ctx context.Context, crds []string) error

type DefaultGlooStagedInstaller

type DefaultGlooStagedInstaller struct {
	// contains filtered or unexported fields
}

func (*DefaultGlooStagedInstaller) DoCrdInstall

func (i *DefaultGlooStagedInstaller) DoCrdInstall() error

func (*DefaultGlooStagedInstaller) DoInstall

func (i *DefaultGlooStagedInstaller) DoInstall() error

func (*DefaultGlooStagedInstaller) DoPreInstall

func (i *DefaultGlooStagedInstaller) DoPreInstall() error

type DryRunManifestInstaller

type DryRunManifestInstaller struct{}

func (*DryRunManifestInstaller) InstallCrds

func (i *DryRunManifestInstaller) InstallCrds(ctx context.Context, crdNames []string, manifest []byte) error

func (*DryRunManifestInstaller) InstallManifest

func (i *DryRunManifestInstaller) InstallManifest(manifest []byte) error

type GlooInstallSpec

type GlooInstallSpec struct {
	ProductName       string // gloo or glooe
	HelmArchiveUri    string
	ValueFileName     string
	UserValueFileName string
	ExtraValues       map[string]interface{}
	ValueCallbacks    []install.ValuesCallback
	ExcludeResources  install.ResourceMatcherFunc
}

func GetEnterpriseInstallSpec

func GetEnterpriseInstallSpec(opts *options.Options) (*GlooInstallSpec, error)

enterprise

func GetInstallSpec

func GetInstallSpec(opts *options.Options, valueFileName string) (*GlooInstallSpec, error)

type GlooKubeInstallClient

type GlooKubeInstallClient interface {
	KubectlApply(manifest []byte) error
	WaitForCrdsToBeRegistered(ctx context.Context, crds []string) error
}

type GlooKubeManifestInstaller

type GlooKubeManifestInstaller struct {
	GlooKubeInstallClient GlooKubeInstallClient
}

func (*GlooKubeManifestInstaller) InstallCrds

func (i *GlooKubeManifestInstaller) InstallCrds(ctx context.Context, crdNames []string, manifest []byte) error

func (*GlooKubeManifestInstaller) InstallManifest

func (i *GlooKubeManifestInstaller) InstallManifest(manifest []byte) error

type GlooStagedInstaller

type GlooStagedInstaller interface {
	DoCrdInstall() error
	DoPreInstall() error
	DoInstall() error
}

func NewGlooStagedInstaller

func NewGlooStagedInstaller(opts *options.Options, spec GlooInstallSpec, client GlooKubeInstallClient) (GlooStagedInstaller, error)

type KnativeInstallStatus

type KnativeInstallStatus struct {
	// contains filtered or unexported fields
}

type ManifestInstaller

type ManifestInstaller interface {
	InstallManifest(manifest []byte) error
	InstallCrds(ctx context.Context, crdNames []string, manifest []byte) error
}

type NamespacedGlooKubeInstallClient

type NamespacedGlooKubeInstallClient struct {
	Namespace string
	Delegate  GlooKubeInstallClient
	Executor  func(stdin io.Reader, args ...string) error
}

func (*NamespacedGlooKubeInstallClient) KubectlApply

func (i *NamespacedGlooKubeInstallClient) KubectlApply(manifest []byte) error

func (*NamespacedGlooKubeInstallClient) WaitForCrdsToBeRegistered

func (i *NamespacedGlooKubeInstallClient) WaitForCrdsToBeRegistered(ctx context.Context, crds []string) error

Jump to

Keyboard shortcuts

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