retina icon indicating copy to clipboard operation
retina copied to clipboard

Option not working: RETINA_AGENT_IMAGE variable doesn't work with Retina Capture Create

Open heyarb00 opened this issue 1 year ago • 1 comments

Describe the bug Thanks in advance for taking a look at this. When providing the RETINA_AGENT_IMAGE variable to retina capture create, it still uses the default retina agent image instead of the provided custom image.

To Reproduce Steps to reproduce the behavior:

  1. Define and export the variable RETINA_AGENT_IMAGE with some custom image
  2. Run the kubectl retina capture create
  3. Check the image being used in k8s jobs

Expected behavior Retina cli creates k8s jobs using the custom image designated in the RETINA_AGENT_IMAGE variable

Platform (please complete the following information):

  • OS: macOS 13.3.1 (22E261) + Darwin 22.4.0
  • Kubernetes Version: 1.29
  • Host: AWS EKS
  • Retina Version: v0.0.12

Additional context Add any other context about the problem here.

heyarb00 avatar Jun 18 '24 12:06 heyarb00

@heyarb00 the RETINA_AGENT_IMAGE envvar is only used when --debug is also set, can you confirm you ran in debug?

rbtr avatar Jul 26 '24 19:07 rbtr

Hi @heyarb00 , I was able to run a capture create using the RETINA_AGENT_IMAGE. As you can see it used the image which I passed, not the default one.

Image

As @rbtr rightly mentioned, you need to pass the --debug flag when using this environment variable. Documentation on that is available here - https://retina.sh/docs/Captures/cli#debug-mode

If you encounter any further issues let me know, otherwise I will close the issue in a couple of days :)

kamilprz avatar Dec 31 '24 12:12 kamilprz