util

package
v2.21.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthFromCredentials

func AuthFromCredentials(ctx context.Context, client ctrlruntimeclient.Client, registryConfigFilePath string, secretNamespace string, source *appskubermaticv1.HelmSource) (helmclient.AuthSettings, error)

AuthFromCredentials builds helmclient.AuthSettings from source.Credentials. registryConfigFilePath is the path of the file that stores credentials for OCI registry.

func CleanUpHelmTempDir

func CleanUpHelmTempDir(cacheDir string, logger *zap.SugaredLogger)

CleanUpHelmTempDir removes the helm cache directory. If deletion fails error is looged using the logger.

func CreateHelmTempDir

func CreateHelmTempDir(cacheDir string) (string, error)

CreateHelmTempDir creates a temporary directory inside cacheDir where helm caches will be download.

func GetCredentialFromSecret

func GetCredentialFromSecret(ctx context.Context, client ctrlruntimeclient.Client, namespce string, name string, key string) (string, error)

GetCredentialFromSecret get the secret and returns secret.Data[key].

Types

type StatusUpdater

type StatusUpdater func(status *appskubermaticv1.ApplicationInstallationStatus)

StatusUpdater is a function that postpone the update of the applicationInstallation.

Jump to

Keyboard shortcuts

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