func (in Install) GetRemediation() Remediation {
	if in.Remediation == nil {
		return InstallRemediation{}
	}
	return *in.Remediation
}
GetRemediation returns the configured Remediation for the Helm install action.
package v2beta1
import (
	"encoding/json"
	"strings"
	"time"
	apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	"k8s.io/apimachinery/pkg/types"
	"github.com/fluxcd/pkg/apis/kustomize"
	"github.com/fluxcd/pkg/apis/meta"
	"github.com/fluxcd/pkg/runtime/dependency"
)
const HelmReleaseKind = "HelmRelease"
const HelmReleaseFinalizer = "finalizers.fluxcd.io"
type Kustomize struct {
	PatchesStrategicMerge []apiextensionsv1.JSON `json:"patchesStrategicMerge,omitempty"`
	PatchesJSON6902 []kustomize.JSON6902Patch `json:"patchesJson6902,omitempty"`
	Images []kustomize.Image `json:"images,omitempty" yaml:"images,omitempty"`
}
type PostRenderer struct {
	Kustomize *Kustomize `json:"kustomize,omitempty"`
}
type HelmReleaseSpec struct {
	Chart HelmChartTemplate `json:"chart"`
	Interval metav1.Duration `json:"interval"`
	KubeConfig *KubeConfig `json:"kubeConfig,omitempty"`
	Suspend bool `json:"suspend,omitempty"`
	ReleaseName string `json:"releaseName,omitempty"`
	TargetNamespace string `json:"targetNamespace,omitempty"`
	StorageNamespace string `json:"storageNamespace,omitempty"`
	DependsOn []dependency.CrossNamespaceDependencyReference `json:"dependsOn,omitempty"`
	Timeout *metav1.Duration `json:"timeout,omitempty"`
	MaxHistory *int `json:"maxHistory,omitempty"`
	ServiceAccountName string `json:"serviceAccountName,omitempty"`
	Install *Install `json:"install,omitempty"`
	Upgrade *Upgrade `json:"upgrade,omitempty"`
	Test *Test `json:"test,omitempty"`
	Rollback *Rollback `json:"rollback,omitempty"`
	Uninstall *Uninstall `json:"uninstall,omitempty"`
	ValuesFrom []ValuesReference `json:"valuesFrom,omitempty"`
	Values *apiextensionsv1.JSON `json:"values,omitempty"`
	PostRenderers []PostRenderer `json:"postRenderers,omitempty"`
}
func (in HelmReleaseSpec) GetInstall() Install {
	if in.Install == nil {
		return Install{}
	}
	return *in.Install
}
func (in HelmReleaseSpec) GetUpgrade() Upgrade {
	if in.Upgrade == nil {
		return Upgrade{}
	}
	return *in.Upgrade
}
func (in HelmReleaseSpec) GetTest() Test {
	if in.Test == nil {
		return Test{}
	}
	return *in.Test
}
func (in HelmReleaseSpec) GetRollback() Rollback {
	if in.Rollback == nil {
		return Rollback{}
	}
	return *in.Rollback
}
func (in HelmReleaseSpec) GetUninstall() Uninstall {
	if in.Uninstall == nil {
		return Uninstall{}
	}
	return *in.Uninstall
}
type KubeConfig struct {
	SecretRef meta.LocalObjectReference `json:"secretRef,omitempty"`
}
type HelmChartTemplate struct {
	Spec HelmChartTemplateSpec `json:"spec"`
}
type HelmChartTemplateSpec struct {
	Chart string `json:"chart"`
	Version string `json:"version,omitempty"`
	SourceRef CrossNamespaceObjectReference `json:"sourceRef"`
	Interval *metav1.Duration `json:"interval,omitempty"`
	ReconcileStrategy string `json:"reconcileStrategy,omitempty"`
	ValuesFiles []string `json:"valuesFiles,omitempty"`
	ValuesFile string `json:"valuesFile,omitempty"`
}
func (in HelmChartTemplate) GetInterval(defaultInterval metav1.Duration) metav1.Duration {
	if in.Spec.Interval == nil {
		return defaultInterval
	}
	return *in.Spec.Interval
}
func (in HelmChartTemplate) GetNamespace(defaultNamespace string) string {
	if in.Spec.SourceRef.Namespace == "" {
		return defaultNamespace
	}
	return in.Spec.SourceRef.Namespace
}
type DeploymentAction interface {
	GetDescription() string
	GetRemediation() Remediation
}
type Remediation interface {
	GetRetries() int
	MustIgnoreTestFailures(bool) bool
	MustRemediateLastFailure() bool
	GetStrategy() RemediationStrategy
	GetFailureCount(hr HelmRelease) int64
	IncrementFailureCount(hr *HelmRelease)
	RetriesExhausted(hr HelmRelease) bool
}
type Install struct {
	Timeout *metav1.Duration `json:"timeout,omitempty"`
	Remediation *InstallRemediation `json:"remediation,omitempty"`
	DisableWait bool `json:"disableWait,omitempty"`
	DisableWaitForJobs bool `json:"disableWaitForJobs,omitempty"`
	DisableHooks bool `json:"disableHooks,omitempty"`
	DisableOpenAPIValidation bool `json:"disableOpenAPIValidation,omitempty"`
	Replace bool `json:"replace,omitempty"`
	SkipCRDs bool `json:"skipCRDs,omitempty"`
	CRDs CRDsPolicy `json:"crds,omitempty"`
	CreateNamespace bool `json:"createNamespace,omitempty"`
}
func (in Install) GetTimeout(defaultTimeout metav1.Duration) metav1.Duration {
	if in.Timeout == nil {
		return defaultTimeout
	}
	return *in.Timeout
}
func (in Install) GetDescription() string {
	return "install"
}