Documentation
¶
Index ¶
- Constants
- func DeleteHelmRelease(ctx context.Context, cl client.Client, name, namespace string) error
- func DownloadChart(ctx context.Context, chartURL, digest string) (*chart.Chart, error)
- func DownloadChartFromArtifact(ctx context.Context, artifact *fluxmeta.Artifact) (*chart.Chart, error)
- func ReconcileHelmRelease(ctx context.Context, cl client.Client, name string, namespace string, ...) (*helmcontrollerv2.HelmRelease, controllerutil.OperationResult, error)
- func ReconcileHelmRepository(ctx context.Context, cl client.Client, name, namespace string, ...) error
- func ShouldReportStatusOnArtifactReadiness(chart *sourcev1.HelmChart) (bool, error)
- type Actor
- func (*Actor) DownloadChartFromArtifact(ctx context.Context, artifact *fluxmeta.Artifact) (*chart.Chart, error)
- func (*Actor) EnsureReleaseWithValues(ctx context.Context, actionConfig *action.Configuration, hcChart *chart.Chart, ...) error
- func (a *Actor) InitializeConfiguration(clusterDeployment *kcmv1.ClusterDeployment, log action.DebugLog) (*action.Configuration, error)
- type DefaultRegistryConfig
- type MemoryRESTClientGetter
- func (c *MemoryRESTClientGetter) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)
- func (c *MemoryRESTClientGetter) ToRESTConfig() (*rest.Config, error)
- func (c *MemoryRESTClientGetter) ToRESTMapper() (meta.RESTMapper, error)
- func (*MemoryRESTClientGetter) ToRawKubeConfigLoader() clientcmd.ClientConfig
- type ReconcileHelmReleaseOpts
Constants ¶
View Source
const (
DefaultReconcileInterval = 10 * time.Minute
)
Variables ¶
This section is empty.
Functions ¶
func DeleteHelmRelease ¶
func DownloadChart ¶
func ReconcileHelmRelease ¶
func ReconcileHelmRelease(ctx context.Context, cl client.Client, name string, namespace string, opts ReconcileHelmReleaseOpts, ) (*helmcontrollerv2.HelmRelease, controllerutil.OperationResult, error)
func ReconcileHelmRepository ¶
func ShouldReportStatusOnArtifactReadiness ¶
ShouldReportStatusOnArtifactReadiness checks whether an artifact for the given chart is ready, returns error and the flags, signaling if the caller should report the status.
Types ¶
type Actor ¶ added in v0.0.7
type Actor struct {
Config *rest.Config
RESTMapper apimeta.RESTMapper
}
func NewActor ¶ added in v0.0.7
func NewActor(config *rest.Config, mapper apimeta.RESTMapper) *Actor
func (*Actor) DownloadChartFromArtifact ¶ added in v0.0.7
func (*Actor) EnsureReleaseWithValues ¶ added in v0.0.7
func (*Actor) EnsureReleaseWithValues( ctx context.Context, actionConfig *action.Configuration, hcChart *chart.Chart, clusterDeployment *kcmv1.ClusterDeployment, ) error
func (*Actor) InitializeConfiguration ¶ added in v0.0.7
func (a *Actor) InitializeConfiguration( clusterDeployment *kcmv1.ClusterDeployment, log action.DebugLog, ) (*action.Configuration, error)
type DefaultRegistryConfig ¶
type DefaultRegistryConfig struct {
// RepoType is the type specified by default in HelmRepository
// objects. Valid types are 'default' for http/https repositories, and
// 'oci' for OCI repositories. The RepositoryType is set in main based on
// the URI scheme of the DefaultRegistryURL.
RepoType string
URL string
CredentialsSecretName string
CertSecretName string
Insecure bool
}
func (*DefaultRegistryConfig) HelmRepositorySpec ¶
func (r *DefaultRegistryConfig) HelmRepositorySpec() sourcev1.HelmRepositorySpec
type MemoryRESTClientGetter ¶
type MemoryRESTClientGetter struct {
Config *rest.Config
RestMapper meta.RESTMapper
}
func NewMemoryRESTClientGetter ¶
func NewMemoryRESTClientGetter(cfg *rest.Config, mapper meta.RESTMapper) *MemoryRESTClientGetter
func (*MemoryRESTClientGetter) ToDiscoveryClient ¶
func (c *MemoryRESTClientGetter) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)
func (*MemoryRESTClientGetter) ToRESTConfig ¶
func (c *MemoryRESTClientGetter) ToRESTConfig() (*rest.Config, error)
func (*MemoryRESTClientGetter) ToRESTMapper ¶
func (c *MemoryRESTClientGetter) ToRESTMapper() (meta.RESTMapper, error)
func (*MemoryRESTClientGetter) ToRawKubeConfigLoader ¶
func (*MemoryRESTClientGetter) ToRawKubeConfigLoader() clientcmd.ClientConfig
type ReconcileHelmReleaseOpts ¶
type ReconcileHelmReleaseOpts struct {
Values *apiextv1.JSON
OwnerReference *metav1.OwnerReference
ChartRef *helmcontrollerv2.CrossNamespaceSourceReference
ReconcileInterval *time.Duration
Install *helmcontrollerv2.Install
KubeConfigRef *fluxmeta.SecretKeyReference
Labels map[string]string
ReleaseName string
TargetNamespace string
DependsOn []helmcontrollerv2.DependencyReference
Timeout time.Duration
}
Click to show internal directories.
Click to hide internal directories.