Issues icon indicating copy to clipboard operation
Issues copied to clipboard

Kubernetes Agent Helm-Chart: Unable to perform `helm registry login` in script step

Open rain-on opened this issue 1 year ago • 0 comments

Severity

No response

Version

2.7.0+ and 1.18.2 ->2.0.0

Latest Version

None

What happened?

If a script running in the agent attempts to call helm registry login - it fails, indicating a readonly file system.

This is caused by the recent changes which mount a readonly secret at the default helm registry config location (And thus, the helm command is unable to update the file).

Reproduction

Install an affected version of the agent - the agent.upgrade.dockerAuth values do not need to be set.

Attempt to execute a script on the worker (eg via the script console). This script should perform a valid helm registry login operation.

The script will fail, with helm indicating that the filesystem is readonly.

Error and Stacktrace

No response

More Information

No response

Workaround

Prior to calling Helm registry login the environment variable HELM_REGISTRY_CONFIG can be set to an arbitrary file location (eg ~/helm_registry_config.json). For the remainder of the step, this file will be used for tracking registry logins, rather than the default file.

rain-on avatar Dec 02 '24 22:12 rain-on