Documentation ¶
Index ¶
- func AuthFromCredentials(ctx context.Context, client ctrlruntimeclient.Client, ...) (helmclient.AuthSettings, error)
- func CleanUpHelmTempDir(cacheDir string, logger *zap.SugaredLogger)
- func CreateHelmTempDir(cacheDir string) (string, error)
- func GetCredentialFromSecret(ctx context.Context, client ctrlruntimeclient.Client, namespce string, ...) (string, error)
- type StatusUpdater
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 ¶
CreateHelmTempDir creates a temporary directory inside cacheDir where helm caches will be download.
Types ¶
type StatusUpdater ¶
type StatusUpdater func(status *appskubermaticv1.ApplicationInstallationStatus)
StatusUpdater is a function that postpone the update of the applicationInstallation.
Click to show internal directories.
Click to hide internal directories.