Documentation ¶
Index ¶
- Constants
- func ApplyChart(ctx context.Context, cfg *rest.Config, rlsname, namespace string, ...) (*release.Release, error)
- func AtomicWriteFile(filename string, reader io.Reader, mode os.FileMode) error
- func Download(ctx context.Context, repo, name, version, cachedir string) (string, *chart.Chart, error)
- func Expand(dir string, r io.Reader) error
- func ExpandChart(chartfile string) (string, error)
- func HTTPGet(ctx context.Context, href string) (io.ReadCloser, error)
- func KubegemsUserAgent() string
- func LoadAndUpdateChart(ctx context.Context, repo, nameOrPath, version string) (string, *chart.Chart, error)
- func LoadChartWithFileOverride(cht *chart.Chart, files map[string][]byte) (*chart.Chart, error)
- func LoadIndex(ctx context.Context, uri string) (*repo.IndexFile, error)
- func LoadIndexData(data []byte) (*repo.IndexFile, error)
- func LoadLocalIndex(path string) (*repo.IndexFile, error)
- func LoadRemoteIndex(ctx context.Context, repo string) (*repo.IndexFile, error)
- func LocateChart(ctx context.Context, repoURL, name, version string, cachedir string) (string, error)
- func LocateChartSuper(ctx context.Context, repoURL, name, version string) (string, error)
- func NewHelmConfig(ctx context.Context, namespace string, cfg *rest.Config) (*action.Configuration, error)
- func ParseResourceReferences(resources []byte) []v1beta1.ManagedResource
- func RemoveChart(ctx context.Context, cfg *rest.Config, rlsname, namespace string) (*release.Release, error)
- func TemplateChart(ctx context.Context, rlsname, namespace string, chartPath string, ...) ([]byte, error)
- type Apply
- type ApplyOptions
- type ChartDownloader
- type ReleaseManager
- type RemoveOptions
Constants ¶
View Source
const ( DefaultFileMode os.FileMode = 0o644 DefaultDirectoryMode os.FileMode = 0o755 )
View Source
const FileProtocolSchema = "file"
View Source
const IndexFileName = "index.yaml"
Variables ¶
This section is empty.
Functions ¶
func ApplyChart ¶
func AtomicWriteFile ¶
func Download ¶
func Download(ctx context.Context, repo, name, version, cachedir string) (string, *chart.Chart, error)
Download helm chart into cachedir saved as {name}-{version}.tgz file.
func ExpandChart ¶
func KubegemsUserAgent ¶
func KubegemsUserAgent() string
func LoadAndUpdateChart ¶
func LoadAndUpdateChart(ctx context.Context, repo, nameOrPath, version string) (string, *chart.Chart, error)
name is the name of the chart repo is the url of the chart repository,eg: http://charts.example.com if repopath is not empty,download it from repo and set chartNameOrPath to repo/repopath. LoadChart loads the chart from the repository
func LoadChartWithFileOverride ¶ added in v1.24.1
func LoadIndexData ¶
The source parameter is only used for logging. This will fail if API Version is not set (ErrNoAPIVersion) or if the unmarshal fails.
func LoadRemoteIndex ¶
func LocateChart ¶
func LocateChart(ctx context.Context, repoURL, name, version string, cachedir string) (string, error)
LocateChart looks for a chart directory in known places, and returns either the full path or an error.
func LocateChartSuper ¶
func NewHelmConfig ¶
func ParseResourceReferences ¶
func ParseResourceReferences(resources []byte) []v1beta1.ManagedResource
func RemoveChart ¶
Types ¶
type ApplyOptions ¶
type ChartDownloader ¶
type ChartDownloader struct {
// contains filtered or unexported fields
}
type ReleaseManager ¶
type RemoveOptions ¶
type RemoveOptions struct {
DryRun bool
}
Click to show internal directories.
Click to hide internal directories.