MCPcopy Create free account
hub / github.com/devfile/devworkspace-operator / GetNamespaceRegistryAuthSecret

Function GetNamespaceRegistryAuthSecret

pkg/secrets/backup.go:36–40  ·  view source on GitHub ↗

GetRegistryAuthSecret retrieves the registry authentication secret for accessing backup images based on the operator configuration.

(ctx context.Context, c client.Client, workspace *dw.DevWorkspace,
	dwOperatorConfig *controllerv1alpha1.OperatorConfiguration, scheme *runtime.Scheme, log logr.Logger,
)

Source from the content-addressed store, hash-verified

34// GetRegistryAuthSecret retrieves the registry authentication secret for accessing backup images
35// based on the operator configuration.
36func GetNamespaceRegistryAuthSecret(ctx context.Context, c client.Client, workspace *dw.DevWorkspace,
37 dwOperatorConfig *controllerv1alpha1.OperatorConfiguration, scheme *runtime.Scheme, log logr.Logger,
38) (*corev1.Secret, error) {
39 return HandleRegistryAuthSecret(ctx, c, workspace, dwOperatorConfig, "", scheme, log)
40}
41
42func HandleRegistryAuthSecret(ctx context.Context, c client.Client, workspace *dw.DevWorkspace,
43 dwOperatorConfig *controllerv1alpha1.OperatorConfiguration, operatorConfigNamespace string, scheme *runtime.Scheme, log logr.Logger,

Callers 1

Calls 1

HandleRegistryAuthSecretFunction · 0.85

Tested by

no test coverage detected