kubernetes

package
v1.202.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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
}

DeployUtils interface

func NewDeployUtilsBundle

func NewDeployUtilsBundle() DeployUtils

NewDeployUtilsBundle initialize using deployUtilsBundle struct

type HelmExecute

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

HelmExecute struct

func (*HelmExecute) RunHelmAdd

func (h *HelmExecute) RunHelmAdd() error

RunHelmAdd is used to add a chart repository

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) RunHelmPush

func (h *HelmExecute) RunHelmPush() error

RunHelmPush is used to upload a chart to a registry

func (*HelmExecute) RunHelmRegistryLogin

func (h *HelmExecute) RunHelmRegistryLogin() error

RunHelmRegistryLogin is used to login private registry

func (*HelmExecute) RunHelmRegistryLogout

func (h *HelmExecute) RunHelmRegistryLogout() error

RunHelmRegistryLogout is logout to login private 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"`
	ContainerRegistryPassword string   `json:"containerRegistryPassword,omitempty"`
	ContainerImageName        string   `json:"containerImageName,omitempty"`
	ContainerImageTag         string   `json:"containerImageTag,omitempty"`
	ContainerRegistryURL      string   `json:"containerRegistryUrl,omitempty"`
	ContainerRegistryUser     string   `json:"containerRegistryUser,omitempty"`
	ContainerRegistrySecret   string   `json:"containerRegistrySecret,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"`
	DryRun                    bool     `json:"dryRun,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"`
	ChartRepo                 string   `json:"chartRepo,omitempty"`
	HelmRegistryUser          string   `json:"helmRegistryUser,omitempty"`
	HelmChartServer           string   `json:"helmChartServer,omitempty"`
}

HelmExecuteOptions struct holds common parameters for functions RunHelm...

type HelmExecutor

type HelmExecutor interface {
	RunHelmAdd() error
	RunHelmUpgrade() error
	RunHelmLint() error
	RunHelmInstall() error
	RunHelmUninstall() error
	RunHelmPackage() error
	RunHelmTest() error
	RunHelmRegistryLogin() error
	RunHelmRegistryLogout() error
	RunHelmPush() 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