images

package
v3.0.0-...-d6c4d9c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyImage

func CopyImage(ctx context.Context, log logrus.FieldLogger, image ImageSourceDest, userAgent string) error

func ExtractAddons

func ExtractAddons(ctx context.Context, log logrus.FieldLogger, addonImageName string) (string, error)

func GetCNIPlugins

func GetCNIPlugins() []*kubermaticv1.CNIPluginSettings

list all the supported CNI plugins along with their supported versions.

func GetCloudSpecs

func GetCloudSpecs() []kubermaticv1.CloudSpec

list all the cloudSpecs for all the Cloud providers for which we are currently using the external CCM/CSI.

func GetImagesForHelmChart

func GetImagesForHelmChart(log logrus.FieldLogger, config *kubermaticv1.KubermaticConfiguration, helmClient helm.Client, chartPath string, valuesFile string, registryPrefix string) ([]string, error)

func GetImagesForHelmCharts

func GetImagesForHelmCharts(ctx context.Context, log logrus.FieldLogger, config *kubermaticv1.KubermaticConfiguration, helmClient helm.Client, chartsPath string, valuesFile string, registryPrefix string) ([]string, error)

func GetImagesForVersion

func GetImagesForVersion(log logrus.FieldLogger, clusterVersion *version.Version, cloudSpec kubermaticv1.CloudSpec, cniPlugin *kubermaticv1.CNIPluginSettings, konnectivityEnabled bool, config *kubermaticv1.KubermaticConfiguration, addonsPath string, kubermaticVersions kubermatic.Versions, caBundle resources.CABundle, registryPrefix string) (images []string, err error)

func GetImagesFromSystemApplicationDefinitions

func GetImagesFromSystemApplicationDefinitions(logger logrus.FieldLogger, config *kubermaticv1.KubermaticConfiguration, helmClient helm.Client, helmTimeout time.Duration, registryPrefix string) ([]string, error)

func GetVersions

func GetVersions(log logrus.FieldLogger, config *kubermaticv1.KubermaticConfiguration, versionFilter string) ([]*version.Version, error)

func ProcessImages

func ProcessImages(ctx context.Context, log logrus.FieldLogger, dryRun bool, images []string, registry string, userAgent string) (int, int, error)

Types

type ImageSourceDest

type ImageSourceDest struct {
	Source      string
	Destination string
}

func GetImageSourceDestList

func GetImageSourceDestList(ctx context.Context, log logrus.FieldLogger, images []string, registry string) ([]ImageSourceDest, error)

func RewriteImage

func RewriteImage(log logrus.FieldLogger, sourceImage, registry string) (ImageSourceDest, error)

Jump to

Keyboard shortcuts

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