const ChaosMeshHelmRepo = "https://charts.chaos-mesh.org"
func DownloadChaosMeshChartTgz(ctx context.Context, version string) (string, error)
▹ Example
func FetchChaosMeshChart(ctx context.Context, version, local string) (*chart.Chart, error)
▹ Example
func GetChaosMeshChartTgzPath(ctx context.Context, version, local string) (string, error)
func NewRESTClientGetter(clientConfig clientcmd.ClientConfig) genericclioptions.RESTClientGetter
type HelmClient struct {
// contains filtered or unexported fields
}
func NewHelmClient(restClientGetter genericclioptions.RESTClientGetter, logger logr.Logger) (*HelmClient, error)
func (h *HelmClient) GetRelease(namespace string, releaseName string) (*release.Release, error)
func (h *HelmClient) InstallRelease(namespace string, releaseName string, chart *chart.Chart, values map[string]interface{}) (*release.Release, error)
func (h *HelmClient) UninstallRelease(namespace string, releaseName string) (*release.UninstallReleaseResponse, error)
func (h *HelmClient) UpgradeRelease(namespace string, releaseName string, chart *chart.Chart, values map[string]interface{}) (*release.Release, error)
ReleaseService introduces all the operations about Helm Release
type ReleaseService interface { /*GetRelease would fetch the installed release. */ GetRelease(namespace string, releaseName string) (*release.Release, error) /*UpgradeOrInstall would upgrade the existed release or install a new one. namespace is the namespace of the release, it should be an existed namespace. releaseName introduces the name of the release. chart is the chart with certain version to be installed. values is the values to be used in the chart, it is also so-called Config in helm's codes. It will return the installed/upgraded release and error if any. */ UpgradeOrInstall(namespace string, releaseName string, chart *chart.Chart, values map[string]interface{}) (*release.Release, error) UninstallRelease(namespace string, releaseName string) (*release.UninstallReleaseResponse, error) }