helm

package
v0.10.2 Latest Latest
Warning

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

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

Documentation

Overview

Package helm provides functionality to manage helm charts on a remote cluster

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HelmHelperContract

type HelmHelperContract interface {
	// AddRepository adds the new repository to the local helm repo list
	// name: Mandaory. the helm repo name to add
	// url: Mandaory. the helm repo url to add
	// Returns error if something goes wrong
	AddRepository(name, url string) error

	// UpdateCharts updates the charts list for the local helm repo
	// Returns error if something goes wrong
	UpdateCharts() error

	// InstallChart installs chart on a remote cluster using the provided kubeconfig.
	// If the helm chart was already registered, the method will try to upgrade the chart
	// using the new provided value
	// kubeconfig: Mandatory. string represents the kubeconfig of the remote cluster
	// namespace: Mandatory. the namespace the helm chart should be installed to
	// name: Mandaory. the name of the helm chart release
	// chart: Mandaory. the name of the chart to install
	// repo: Mandaory. the name of the repo to install
	// args: Mandaory. extra arguments to install the helm chart with
	// Returns error if something goes wrong
	InstallChart(kubeconfig, namespace, name, repo, chart string, args map[string]string) error
}

HelmHelperContract declares the contract that can manage helm charts on remote cluster

func NewHelmHelperService

func NewHelmHelperService(
	logger *zap.Logger) (HelmHelperContract, error)

NewHelmHelperService creates new instance of the helmHelper, setting up all dependencies and returns the instance logger: Mandatory. Reference to the logger service Returns the new service or error if something goes wrong

Directories

Path Synopsis
Package mock_helm is a generated GoMock package.
Package mock_helm is a generated GoMock package.

Jump to

Keyboard shortcuts

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