plugin

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeRelease added in v1.1.7

func DecodeRelease(rel *v1alpha1.Release) (*rspb.Release, error)

decodeRelease decodes the bytes in data into a release type. Data must contain a base64 encoded string of a valid protobuf encoding of a release, otherwise an error is returned.

Types

type CaptainContext

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

CaptainContext holds context for captain command

func NewCaptainContext

func NewCaptainContext(streams genericclioptions.IOStreams) *CaptainContext

func (*CaptainContext) Complete

func (p *CaptainContext) Complete(namespace string) (err error)

func (*CaptainContext) CreateChartRepo

func (p *CaptainContext) CreateChartRepo(new *v1alpha1.ChartRepo) (*v1alpha1.ChartRepo, error)

func (*CaptainContext) CreateEvent added in v1.0.0

func (p *CaptainContext) CreateEvent(et string, reason, message string, hr *v1alpha1.HelmRequest)

CreateEvent a event for upgrade/rollback...

func (*CaptainContext) CreateHelmRequest

func (p *CaptainContext) CreateHelmRequest(new *v1alpha1.HelmRequest) (*v1alpha1.HelmRequest, error)

func (*CaptainContext) GetChartRepo

func (p *CaptainContext) GetChartRepo(name, namespace string) (*v1beta1.ChartRepo, error)

func (*CaptainContext) GetConfigMap

func (p *CaptainContext) GetConfigMap(name string) (*v1.ConfigMap, error)

func (*CaptainContext) GetDeployedRelease added in v1.1.7

func (p *CaptainContext) GetDeployedRelease(name, namespace string) (*v1alpha1.Release, error)

there should be only one deployed release for each helmrequest

func (*CaptainContext) GetEventsMessage added in v1.1.8

func (p *CaptainContext) GetEventsMessage(hr *v1alpha1.HelmRequest) (string, error)

func (*CaptainContext) GetHelmRequest

func (p *CaptainContext) GetHelmRequest(name string) (*v1alpha1.HelmRequest, error)

func (*CaptainContext) GetNamespace

func (p *CaptainContext) GetNamespace() string

func (*CaptainContext) GetRestConfig

func (p *CaptainContext) GetRestConfig() *rest.Config

func (*CaptainContext) PatchChartRepo added in v1.1.1

func (p *CaptainContext) PatchChartRepo(name string, data []byte) (result *v1beta1.ChartRepo, err error)

func (*CaptainContext) UpdateChartRepo added in v1.1.0

func (p *CaptainContext) UpdateChartRepo(repo *v1beta1.ChartRepo) (*v1beta1.ChartRepo, error)

func (*CaptainContext) UpdateHelmRequest

func (p *CaptainContext) UpdateHelmRequest(new *v1alpha1.HelmRequest) (*v1alpha1.HelmRequest, error)

func (*CaptainContext) UpdateHelmRequestStatus

func (p *CaptainContext) UpdateHelmRequestStatus(new *v1alpha1.HelmRequest) (*v1alpha1.HelmRequest, error)

Jump to

Keyboard shortcuts

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