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 *sourcev1.Artifact) (*chart.Chart, error)
- func ReconcileHelmRelease(ctx context.Context, cl client.Client, name string, namespace string, ...) (*hcv2.HelmRelease, controllerutil.OperationResult, error)
- func ReconcileHelmRepository(ctx context.Context, cl client.Client, name, namespace string, ...) error
- func ShouldReportStatusOnArtifactReadiness(chart *sourcev1.HelmChart) (bool, 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, ) (*hcv2.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 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
CredentialsSecret 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 *apiextensionsv1.JSON
OwnerReference *metav1.OwnerReference
ChartRef *hcv2.CrossNamespaceSourceReference
ReconcileInterval *time.Duration
TargetNamespace string
DependsOn []meta.NamespacedObjectReference
CreateNamespace bool
}
Click to show internal directories.
Click to hide internal directories.