Documentation ¶
Index ¶
- Variables
- func GetReleaseName(fhr ifv1.FluxHelmRelease) string
- type Action
- type Config
- type DeployInfo
- type InstallOptions
- type Release
- func (r *Release) Delete(name string) error
- func (r *Release) GetCurrent() (map[string][]DeployInfo, error)
- func (r *Release) GetDeployedRelease(name string) (*hapi_release.Release, error)
- func (r *Release) Install(repoDir, releaseName string, fhr ifv1.FluxHelmRelease, action Action, ...) (*hapi_release.Release, error)
- type Releaser
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrChartGitPathMissing = "Chart deploy configuration (%s) has empty Chart git path"
)
Functions ¶
func GetReleaseName ¶
func GetReleaseName(fhr ifv1.FluxHelmRelease) string
GetReleaseName either retrieves the release name from the Custom Resource or constructs a new one
in the form : $Namespace-$CustomResourceName
Types ¶
type DeployInfo ¶
type DeployInfo struct {
Name string
}
type InstallOptions ¶
type Release ¶
Release contains clients needed to provide functionality related to helm releases
func (*Release) GetCurrent ¶
func (r *Release) GetCurrent() (map[string][]DeployInfo, error)
GetCurrent provides Chart releases (stored in tiller ConfigMaps)
output: map[namespace][release name] = nil
func (*Release) GetDeployedRelease ¶
func (r *Release) GetDeployedRelease(name string) (*hapi_release.Release, error)
GetDeployedRelease returns a release with Deployed status
func (*Release) Install ¶
func (r *Release) Install(repoDir, releaseName string, fhr ifv1.FluxHelmRelease, action Action, opts InstallOptions) (*hapi_release.Release, error)
Install performs a Chart release given the directory containing the charts, and the FluxHelmRelease specifying the release. Depending on the release type, this is either a new release, or an upgrade of an existing one.
type Releaser ¶
type Releaser interface { GetCurrent() (map[string][]DeployInfo, error) GetDeployedRelease(name string) (*hapi_release.Release, error) Install(dir string, releaseName string, fhr ifv1.FluxHelmRelease, action Action, opts InstallOptions) (*hapi_release.Release, error) }
Click to show internal directories.
Click to hide internal directories.