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 ¶
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 (*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.
Click to show internal directories.
Click to hide internal directories.