helm

package
v0.1.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultChartsCache = ".gtctl/charts-cache"

	GreptimeChartIndexURL           = "https://raw.githubusercontent.com/GreptimeTeam/helm-charts/gh-pages/index.yaml"
	GreptimeChartReleaseDownloadURL = "https://github.com/GreptimeTeam/helm-charts/releases/download"
	GreptimeCNCharts                = "https://downloads.greptime.cn/releases/charts"

	GreptimeDBChartName         = "greptimedb"
	GreptimeDBOperatorChartName = "greptimedb-operator"
	EtcdBitnamiOCIRegistry      = "oci://registry-1.docker.io/bitnamicharts/etcd"
	DefaultEtcdChartVersion     = "9.2.0"
)

Variables

This section is empty.

Functions

func WithChartsCacheDir

func WithChartsCacheDir(chartsCacheDir string) func(*Manager)

Types

type Manager

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

Manager is the Helm charts manager. The implementation is based on Helm SDK. The main purpose of Manager is: 1. Load the chart from remote charts and save them in cache directory. 2. Generate the manifests from the chart with the values.

func NewManager

func NewManager(l logger.Logger, opts ...Option) (*Manager, error)

func (*Manager) LoadAndRenderChart

func (r *Manager) LoadAndRenderChart(ctx context.Context, name, namespace, chartName, chartVersion string, useGreptimeCNArtifacts bool, options interface{}) ([]byte, error)

LoadAndRenderChart loads the chart from the remote charts and render the manifests with the values.

type Option

type Option func(*Manager)

Jump to

Keyboard shortcuts

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