helm

package
v0.0.0-...-c9dffe9 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package helm provides utils for helm.

Package helm provides utils for helm.

Package helm provides utils for helm.

Package helm provides utils for helm.

Package helm provides utils for helm.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadChart

func DownloadChart(url string) (*chart.Chart, error)

func DownloadChartFiles

func DownloadChartFiles(url string) ([]*chart.File, error)

Types

type HelmClientImpl

type HelmClientImpl struct {
	Config       *genericclioptions.ConfigFlags
	ActionConfig *action.Configuration
}

func NewImpl

func NewImpl(kubeToken string, namespace string) (*HelmClientImpl, error)

func (*HelmClientImpl) Create

func (h *HelmClientImpl) Create(chart *chart.Chart, info IPineappleInfo) (*release.Release, error)

func (*HelmClientImpl) Delete

func (h *HelmClientImpl) Delete(releaseName string) error

func (*HelmClientImpl) DeleteListWithKeepHistory

func (h *HelmClientImpl) DeleteListWithKeepHistory(releases []*release.Release, description string) error

func (*HelmClientImpl) DeleteWithKeepHistory

func (h *HelmClientImpl) DeleteWithKeepHistory(releaseName string) error

func (*HelmClientImpl) GetPodList

func (h *HelmClientImpl) GetPodList(helmReleaseInfo IHelmReleaseInfo) (*[]v1.Pod, error)

func (*HelmClientImpl) GetServiceList

func (h *HelmClientImpl) GetServiceList(helmReleaseInfo IHelmReleaseInfo) (*[]v1.Service, error)

func (*HelmClientImpl) GetSpecifyInvolvedObjectEventList

func (h *HelmClientImpl) GetSpecifyInvolvedObjectEventList(involvedObjectName string) (*[]v1.Event, error)

func (*HelmClientImpl) List

func (h *HelmClientImpl) List(filter string) ([]*release.Release, error)

type IHelmReleaseInfo

type IHelmReleaseInfo interface {
	GetReleaseName() (string, error)
	GetType() (string, error)
}

type IPineappleInfo

type IPineappleInfo interface {
	SetValues(values map[string]interface{})
	GetName() string
	GetUserID() string
	GetPrefix() string
	GetValues() map[string]interface{}
	CreateChartValues() (map[string]interface{}, error)
}

type PineappleInfo

type PineappleInfo struct {
	Name   string
	UserID string
	Prefix string
	Values map[string]interface{}
}

func NewPineappleInfo

func NewPineappleInfo(name string, userID string, prefix string) (*PineappleInfo, error)

func (*PineappleInfo) CreateChartValues

func (p *PineappleInfo) CreateChartValues() (map[string]interface{}, error)

func (*PineappleInfo) GetName

func (p *PineappleInfo) GetName() string

func (*PineappleInfo) GetPrefix

func (p *PineappleInfo) GetPrefix() string

func (*PineappleInfo) GetUserID

func (p *PineappleInfo) GetUserID() string

func (*PineappleInfo) GetValues

func (p *PineappleInfo) GetValues() map[string]interface{}

func (*PineappleInfo) SetValues

func (p *PineappleInfo) SetValues(values map[string]interface{})

type PostRendererImpl

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

func NewPostRendererImpl

func NewPostRendererImpl() *PostRendererImpl

func (*PostRendererImpl) Run

func (p *PostRendererImpl) Run(renderedManifests *bytes.Buffer) (*bytes.Buffer, error)

func (*PostRendererImpl) WriteFile

func (p *PostRendererImpl) WriteFile(path string, content string) error

func (*PostRendererImpl) WriteKustomzation

func (p *PostRendererImpl) WriteKustomzation(path string, content string) error

Jump to

Keyboard shortcuts

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