Documentation ¶
Index ¶
- Constants
- Variables
- func IsHelmOciRepo(repoURL string) bool
- func IsMissingDependencyErr(err error) bool
- func IsVersion(text string) bool
- func Version(shortForm bool) (string, error)
- type Client
- type ClientOpts
- type Cmd
- func (c *Cmd) Close()
- func (c *Cmd) Fetch(repo, chartName, version, destination string, creds Creds, ...) (string, error)
- func (c *Cmd) Freestyle(args ...string) (string, error)
- func (c *Cmd) InspectChart() (string, error)
- func (c *Cmd) PullOCI(repo string, chart string, version string, destination string, creds Creds) (string, error)
- func (c *Cmd) RegistryLogin(repo string, creds Creds) (string, error)
- func (c *Cmd) RegistryLogout(repo string, creds Creds) (string, error)
- func (c *Cmd) RepoAdd(name string, url string, opts Creds, passCredentials bool) (string, error)
- type Creds
- type Entries
- type Entry
- type Helm
- type HelmRepository
- type Index
- type TagsList
- type TemplateOpts
Constants ¶
View Source
const ( ResourcePolicyAnnotation = "helm.sh/resource-policy" ResourcePolicyKeep = "keep" )
Variables ¶
View Source
var (
OCINotEnabledErr = errors.New("could not perform the action when oci is not enabled")
)
Functions ¶
func IsHelmOciRepo ¶
Ensures that given OCI registries URL does not have protocol
func IsMissingDependencyErr ¶
IsMissingDependencyErr tests if the error is related to a missing chart dependency
Types ¶
type Client ¶
type Client interface { CleanChartCache(chart string, version string, project string) error ExtractChart(chart string, version string, project string, passCredentials bool, manifestMaxExtractedSize int64, disableManifestMaxExtractedSize bool) (string, argoio.Closer, error) GetIndex(noCache bool, maxIndexSize int64) (*Index, error) GetTags(chart string, noCache bool) (*TagsList, error) TestHelmOCI() (bool, error) }
type ClientOpts ¶ added in v2.1.0
type ClientOpts func(c *nativeHelmChart)
func WithChartPaths ¶ added in v2.3.0
func WithChartPaths(chartPaths argoio.TempPaths) ClientOpts
func WithIndexCache ¶ added in v2.1.0
func WithIndexCache(indexCache indexCache) ClientOpts
type Cmd ¶
type Cmd struct { WorkDir string IsLocal bool IsHelmOci bool // contains filtered or unexported fields }
A thin wrapper around the "helm" command, adding logging and error translation.
func NewCmdWithVersion ¶
func (*Cmd) InspectChart ¶ added in v2.8.0
func (*Cmd) RegistryLogin ¶ added in v2.2.0
func (*Cmd) RegistryLogout ¶ added in v2.2.0
type Helm ¶
type Helm interface { // Template returns a list of unstructured objects from a `helm template` command Template(opts *TemplateOpts) (string, string, error) // GetParameters returns a list of chart parameters taking into account values in provided YAML files. GetParameters(valuesFiles []pathutil.ResolvedFilePath, appPath, repoRoot string) (map[string]string, error) // DependencyBuild runs `helm dependency build` to download a chart's dependencies DependencyBuild() error // Dispose deletes temp resources Dispose() }
Helm provides wrapper functionality around the `helm` command.
type TagsList ¶ added in v2.6.0
type TagsList struct {
Tags []string
}
func (TagsList) MaxVersion ¶ added in v2.6.0
type TemplateOpts ¶
type TemplateOpts struct { Name string Namespace string KubeVersion string APIVersions []string Set map[string]string SetString map[string]string SetFile map[string]pathutil.ResolvedFilePath Values []pathutil.ResolvedFilePath // ExtraValues is the randomly-generated path to the temporary values file holding the contents of // spec.source.helm.values/valuesObject. ExtraValues pathutil.ResolvedFilePath SkipCrds bool }
Click to show internal directories.
Click to hide internal directories.