kubernetes

package
v1.154.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChartInfo

func GetChartInfo(chartYamlFile string, utils DeployUtils) (string, string, error)

GetChartInfo is used to get name and version of helm chart

Types

type DeployUtils

type DeployUtils interface {
	SetEnv(env []string)
	Stdout(out io.Writer)
	Stderr(err io.Writer)
	RunExecutable(e string, p ...string) error

	piperutils.FileUtils
	piperhttp.Uploader
}

DeployUtils interface

func NewDeployUtilsBundle

func NewDeployUtilsBundle(customTLSCertificateLinks []string) DeployUtils

NewDeployUtilsBundle initialize using deployUtilsBundle struct

type HelmExecute

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

HelmExecute struct

func (*HelmExecute) RunHelmInstall

func (h *HelmExecute) RunHelmInstall() error

RunHelmInstall is used to install a chart

func (*HelmExecute) RunHelmLint

func (h *HelmExecute) RunHelmLint() error

RunHelmLint is used to examine a chart for possible issues

func (*HelmExecute) RunHelmPackage

func (h *HelmExecute) RunHelmPackage() error

RunHelmPackage is used to package a chart directory into a chart archive

func (*HelmExecute) RunHelmPublish

func (h *HelmExecute) RunHelmPublish() error

RunHelmPublish is used to upload a chart to a registry

func (*HelmExecute) RunHelmTest

func (h *HelmExecute) RunHelmTest() error

RunHelmTest is used to run tests for a release

func (*HelmExecute) RunHelmUninstall

func (h *HelmExecute) RunHelmUninstall() error

RunHelmUninstall is used to uninstall a chart

func (*HelmExecute) RunHelmUpgrade

func (h *HelmExecute) RunHelmUpgrade() error

RunHelmUpgrade is used to upgrade a release

type HelmExecuteOptions

type HelmExecuteOptions struct {
	AdditionalParameters      []string `json:"additionalParameters,omitempty"`
	ChartPath                 string   `json:"chartPath,omitempty"`
	DeploymentName            string   `json:"deploymentName,omitempty"`
	ForceUpdates              bool     `json:"forceUpdates,omitempty"`
	HelmDeployWaitSeconds     int      `json:"helmDeployWaitSeconds,omitempty"`
	HelmValues                []string `json:"helmValues,omitempty"`
	Image                     string   `json:"image,omitempty"`
	KeepFailedDeployments     bool     `json:"keepFailedDeployments,omitempty"`
	KubeConfig                string   `json:"kubeConfig,omitempty"`
	KubeContext               string   `json:"kubeContext,omitempty"`
	Namespace                 string   `json:"namespace,omitempty"`
	DockerConfigJSON          string   `json:"dockerConfigJSON,omitempty"`
	PackageVersion            string   `json:"packageVersion,omitempty"`
	AppVersion                string   `json:"appVersion,omitempty"`
	DependencyUpdate          bool     `json:"dependencyUpdate,omitempty"`
	DumpLogs                  bool     `json:"dumpLogs,omitempty"`
	FilterTest                string   `json:"filterTest,omitempty"`
	TargetRepositoryURL       string   `json:"targetRepositoryURL,omitempty"`
	TargetRepositoryName      string   `json:"targetRepositoryName,omitempty"`
	TargetRepositoryUser      string   `json:"targetRepositoryUser,omitempty"`
	TargetRepositoryPassword  string   `json:"targetRepositoryPassword,omitempty"`
	HelmCommand               string   `json:"helmCommand,omitempty"`
	CustomTLSCertificateLinks []string `json:"customTlsCertificateLinks,omitempty"`
}

HelmExecuteOptions struct holds common parameters for functions RunHelm...

type HelmExecutor

type HelmExecutor interface {
	RunHelmUpgrade() error
	RunHelmLint() error
	RunHelmInstall() error
	RunHelmUninstall() error
	RunHelmPackage() error
	RunHelmTest() error
	RunHelmPublish() error
}

HelmExecutor is used for mock

func NewHelmExecutor

func NewHelmExecutor(config HelmExecuteOptions, utils DeployUtils, verbose bool, stdout io.Writer) HelmExecutor

NewHelmExecutor creates HelmExecute instance

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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