Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetReleaseName ¶
func GetReleaseName(fhr flux_v1beta1.HelmRelease) 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) 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(chartPath, releaseName string, fhr flux_v1beta1.HelmRelease, action Action, opts InstallOptions, kubeClient *kubernetes.Clientset) (*hapi_release.Release, error)
Install performs a Chart release given the directory containing the charts, and the HelmRelease specifying the release. Depending on the release type, this is either a new release, or an upgrade of an existing one.
TODO(michael): cloneDir is only relevant if installing from git; either split this procedure into two varieties, or make it more general and calculate the path to the chart in the caller.
type Releaser ¶
type Releaser interface { GetDeployedRelease(name string) (*hapi_release.Release, error) Install(dir string, releaseName string, fhr flux_v1beta1.HelmRelease, action Action, opts InstallOptions) (*hapi_release.Release, error) }