source

package
v2.22.10 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitSource

type GitSource struct {
	Ctx context.Context

	// SeedClient to seed cluster.
	SeedClient ctrlruntimeclient.Client

	Source *appskubermaticv1.GitSource

	// Namespace where credential secrets are stored.
	SecretNamespace string
}

GitSource download the application's source from a git repository.

func (GitSource) DownloadSource

func (g GitSource) DownloadSource(destination string) (string, error)

DownloadSource clone the repository into destination and return the full path to the application's sources.

type HelmSource

type HelmSource struct {
	Ctx context.Context
	// Kubeconfig of the user-cluster.
	Kubeconfig string
	CacheDir   string
	Log        *zap.SugaredLogger
	Source     *appskubermaticv1.HelmSource
	// Namespace where credential secrets are stored.
	SecretNamespace string

	// SeedClient to seed cluster.
	SeedClient ctrlruntimeclient.Client
}

HelmSource downloads Helm chart from Helm HTTP or OCI registry.

func (HelmSource) DownloadSource

func (h HelmSource) DownloadSource(destination string) (string, error)

DownloadSource downloads the chart into destination folder and return the full path to the chart. The destination folder must exist.

Jump to

Keyboard shortcuts

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