helm

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

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

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

func ShouldReportStatusOnArtifactReadiness

func ShouldReportStatusOnArtifactReadiness(chart *sourcev1.HelmChart) (bool, error)

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) DownloadChartFromArtifact(ctx context.Context, artifact *sourcev1.Artifact) (*chart.Chart, error)

func (*Actor) EnsureReleaseWithValues added in v0.0.7

func (*Actor) EnsureReleaseWithValues(
	ctx context.Context,
	actionConfig *action.Configuration,
	hcChart *chart.Chart,
	clusterDeployment *v1alpha1.ClusterDeployment,
) error

func (*Actor) InitializeConfiguration added in v0.0.7

func (a *Actor) InitializeConfiguration(
	clusterDeployment *v1alpha1.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
	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 (*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
}

Jump to

Keyboard shortcuts

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