deploy

package
v0.13.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdRunResultBuffer added in v0.13.0

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

func NewCmdRunResultBuffer added in v0.13.0

func NewCmdRunResultBuffer() *CmdRunResultBuffer

func (*CmdRunResultBuffer) Copy added in v0.13.0

func (*CmdRunResultBuffer) WriteStderr added in v0.13.0

func (w *CmdRunResultBuffer) WriteStderr(data []byte) (int, error)

func (*CmdRunResultBuffer) WriteStdout added in v0.13.0

func (w *CmdRunResultBuffer) WriteStdout(data []byte) (int, error)

type Deploy

type Deploy interface {
	Deploy(tplOutput string, startedApplyingFunc func(),
		changedFunc func(exec.CmdRunResult)) exec.CmdRunResult

	Delete(startedApplyingFunc func(),
		changedFunc func(exec.CmdRunResult)) exec.CmdRunResult

	Inspect() exec.CmdRunResult
}

type Factory added in v0.13.0

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

func NewFactory added in v0.13.0

func NewFactory(coreClient kubernetes.Interface, allowSharedServiceAccount bool) Factory

func (Factory) NewKapp added in v0.13.0

func (f Factory) NewKapp(opts v1alpha1.AppDeployKapp, saName string,
	clusterOpts *v1alpha1.AppCluster, genericOpts GenericOpts, cancelCh chan struct{}) (*Kapp, error)

type GenericOpts

type GenericOpts struct {
	Name           string
	Namespace      string
	KubeconfigYAML string
}

type Kapp

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

func NewKapp

func NewKapp(opts v1alpha1.AppDeployKapp, genericOpts GenericOpts, cancelCh chan struct{}) *Kapp

func (*Kapp) Delete

func (a *Kapp) Delete(startedApplyingFunc func(), changedFunc func(exec.CmdRunResult)) exec.CmdRunResult

func (*Kapp) Deploy

func (a *Kapp) Deploy(tplOutput string, startedApplyingFunc func(),
	changedFunc func(exec.CmdRunResult)) exec.CmdRunResult

func (*Kapp) Inspect

func (a *Kapp) Inspect() exec.CmdRunResult

type KubeconfigSecrets added in v0.13.0

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

func NewKubeconfigSecrets added in v0.13.0

func NewKubeconfigSecrets(coreClient kubernetes.Interface) *KubeconfigSecrets

func (*KubeconfigSecrets) Find added in v0.13.0

func (s *KubeconfigSecrets) Find(genericOpts GenericOpts, clusterOpts *v1alpha1.AppCluster) (GenericOpts, error)

type ServiceAccounts added in v0.13.0

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

func NewServiceAccounts added in v0.13.0

func NewServiceAccounts(coreClient kubernetes.Interface) *ServiceAccounts

func (*ServiceAccounts) Find added in v0.13.0

func (s *ServiceAccounts) Find(genericOpts GenericOpts, saName string) (GenericOpts, error)

type WriterFunc added in v0.13.0

type WriterFunc func([]byte) (int, error)

func (WriterFunc) Write added in v0.13.0

func (f WriterFunc) Write(data []byte) (int, error)

Jump to

Keyboard shortcuts

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