helm

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultReconcileInterval = 10 * time.Minute
)

Variables

This section is empty.

Functions

func ArtifactReady

func ArtifactReady(chart *sourcev1.HelmChart) (reportStatus bool, _ error)

func DeleteHelmRelease

func DeleteHelmRelease(ctx context.Context, cl client.Client, name, namespace string) error

func DownloadChart

func DownloadChart(ctx context.Context, chartURL, digest string) (*chart.Chart, error)

func DownloadChartFromArtifact

func DownloadChartFromArtifact(ctx context.Context, artifact *sourcev1.Artifact) (*chart.Chart, error)

func ReconcileHelmRepository added in v0.0.2

func ReconcileHelmRepository(ctx context.Context, cl client.Client, name, namespace string, spec sourcev1.HelmRepositorySpec) error

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 (*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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL