helm

package
v0.2.50 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TillerTag string = "v2.16.1"
)

Variables

This section is empty.

Functions

func MergeValueBytes added in v0.2.43

func MergeValueBytes(base []byte, override []byte) ([]byte, error)

func RenderJsonnetTemplate

func RenderJsonnetTemplate(template string, data map[string][]map[string]interface{}) (string, error)

Types

type Bind

type Bind struct {
	Template string `json:"template"`
}

type ChartValidationError

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

func NewChartValidationError

func NewChartValidationError(err error) *ChartValidationError

type HelmClientFactory

type HelmClientFactory interface {
	HelmClient(cluster k8s.Cluster) MyHelmClient
}

func NewHelmClientFactory

func NewHelmClientFactory(tlsConf *config.HelmTLSConfig, namespace string, logger *logrus.Logger) HelmClientFactory

type Installer

type Installer interface {
	Install() error
	SetMaxWait(duration time.Duration)
}

func InstallerFactoryDefault

func InstallerFactoryDefault(c *config.Config, cluster k8s.Cluster, client MyHelmClient, logger *logrus.Logger) Installer

func NewInstaller

func NewInstaller(c *config.Config, cluster k8s.Cluster, client MyHelmClient, logger *logrus.Logger) Installer

type InstallerFactory

type InstallerFactory func(c *config.Config, cluster k8s.Cluster, client MyHelmClient, logger *logrus.Logger) Installer

type MyChart

type MyChart struct {
	chart.Chart

	PrivateRegistryServer string          `json:"privateRegistryServer"`
	TransformedValues     []byte          `json:"transformedValues"`
	BindTemplate          string          `json:"bindTemplate"`
	Plans                 map[string]Plan `json:"plans"`
	ChartPath             string          `json:"chartPath"`
}

func LoadFromDir

func LoadFromDir(dir string, log *logrus.Logger) ([]*MyChart, error)

func NewChart

func NewChart(chartPath string, privateRegistryServer string, log *logrus.Logger) (*MyChart, error)

func (*MyChart) EnsureGlobalImageRegistry added in v0.2.41

func (c *MyChart) EnsureGlobalImageRegistry(rawVals map[string]interface{}) map[string]interface{}

func (*MyChart) LoadChartValues

func (c *MyChart) LoadChartValues() error

func (*MyChart) OverrideImageSources

func (c *MyChart) OverrideImageSources(rawVals map[string]interface{}) (map[string]interface{}, error)

func (*MyChart) SetPlanDefaultValues

func (c *MyChart) SetPlanDefaultValues(plan *Plan)

func (*MyChart) String

func (c *MyChart) String() string

type MyHelmClient

type MyHelmClient interface {
	helm.Interface
	ResourceReadiness(namespace string, cluster k8s.Cluster) (*string, hapi_release.Status_Code, error)
	Install(*helmstaller.Options) error
	Upgrade(*helmstaller.Options) error
	Uninstall(*helmstaller.Options) error
	InstallChart(registryConfig *config.RegistryConfig, namespace api_v1.Namespace, releaseName string, chart *MyChart, planName string, installValues []byte, opts ...helm.InstallOption) (*rls.InstallReleaseResponse, error)
	InstallOperator(chart *MyChart, namespace string) (*rls.InstallReleaseResponse, error)
	UpdateChart(chart *MyChart, rlsName string, planName string, updateValues []byte) (*rls.UpdateReleaseResponse, error)
	HasDifferentTLSConfig() bool
	PrintStatus(out io.Writer, deploymentName string) error
	RenderTemplatedValues(releaseOptions chartutil.ReleaseOptions, inputValues []byte, chart chart.Chart) ([]byte, error)
}

func NewMyHelmClient

func NewMyHelmClient(cluster k8s.Cluster, tlsConf *config.HelmTLSConfig, namespace string, logger *logrus.Logger) MyHelmClient

type Plan

type Plan struct {
	Name            string   `json:"name" json:"name"`
	Description     string   `json:"description" json:"description"`
	Bullets         []string `json:"bullets" json:"bullets"`
	File            string   `json:"file" json:"file"`
	Free            *bool    `json:"free,omitempty" json:"free"`
	Bindable        *bool    `json:"bindable,omitempty" json:"bindable"`
	CredentialsPath string   `json:"credentials" json:"credentialsPath"`

	Values        []byte         `json:"values"`
	ClusterConfig *k8sAPI.Config `json:"clusterConfig"`
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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