User Preference of Container Registry as mountable secret to inject authentication for podman command line #22863
Labels
area/che-operator
Issues and PRs related to Eclipse Che Kubernetes Operator
kind/enhancement
A feature request - must adhere to the feature request template.
Is your enhancement related to a problem? Please describe
It would be beneficial to use the user's preferred Container Registries not only for pulling images but also for authenticating the podman command line.
Describe the solution you'd like
After the user adds the registry entries through the dashboard, the operator should generate a secret with the appropriate labels and annotations for image pulling and mounting in the user's workspace.
In the init container, if the secret exists, it should make a copy at /home/user/.config/containers/auth.json. This ensures that the user can seamlessly use the podman login command without encountering any issues, as the file will be readable and writable.
Describe alternatives you've considered
A workaround involves mounting the secret generated by the dashboard at a designated location and using a specific command to copy it to the correct path for auth.json.
The purpose of the post-event is to ensure the availability of a read-write file in case a user executes the podman login command in the terminal.
A sample devfile:
Additional context
No response
The text was updated successfully, but these errors were encountered: