Documentation ¶
Index ¶
- func GetChartInfo(chartYamlFile string, utils DeployUtils) (string, string, error)
- type DeployUtils
- type HelmExecute
- func (h *HelmExecute) RunHelmDependency() error
- func (h *HelmExecute) RunHelmInstall() error
- func (h *HelmExecute) RunHelmLint() error
- func (h *HelmExecute) RunHelmPublish() error
- func (h *HelmExecute) RunHelmTest() error
- func (h *HelmExecute) RunHelmUninstall() error
- func (h *HelmExecute) RunHelmUpgrade() error
- type HelmExecuteOptions
- type HelmExecutor
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 DownloadFile(url, filename string, header http.Header, cookies []*http.Cookie) 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) RunHelmDependency ¶
func (h *HelmExecute) RunHelmDependency() error
RunHelmDependency is used to manage a chart's dependencies
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) 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"` Version string `json:"version,omitempty"` AppVersion string `json:"appVersion,omitempty"` PublishVersion string `json:"publishVersion,omitempty"` Dependency string `json:"dependency,omitempty" validate:"possible-values=build list update"` PackageDependencyUpdate bool `json:"packageDependencyUpdate,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 RunHelmTest() error RunHelmPublish() error RunHelmDependency() error }
HelmExecutor is used for mock
func NewHelmExecutor ¶
func NewHelmExecutor(config HelmExecuteOptions, utils DeployUtils, verbose bool, stdout io.Writer) HelmExecutor
NewHelmExecutor creates HelmExecute instance