Documentation
¶
Index ¶
- Constants
- func ArtifactReady(chart *sourcev1.HelmChart) (reportStatus bool, _ error)
- 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
- 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 ¶ added in v0.0.2
Types ¶
type DefaultRegistryConfig ¶ added in v0.0.2
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 ¶ added in v0.0.2
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 ¶ added in v0.0.2
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.