Skip to content

[collector][supervisor] Fix custom image helper#218

Merged
douglascamata merged 5 commits into
mainfrom
supervisor-custom-image-fix
Jun 12, 2025
Merged

[collector][supervisor] Fix custom image helper#218
douglascamata merged 5 commits into
mainfrom
supervisor-custom-image-fix

Conversation

@douglascamata

Copy link
Copy Markdown
Member

Fixes ES-629.

This PR fixes an issue in the image helper. Before we had the default Collector image hardcoded in values so it would always be picked even when the Supervisor preset was enabled. Now by default there is no image hardcoded in the values. This allows the helper logic to work correctly:

  • If an image is given via values, no matter the circusmtances, always use it.
  • If no image is given via values and Supervisor preset is disabled: use the hardcoded default one.
  • If no image is given via values and Supervisor preset is enabled: use the custom supervised collector image.

Unfortunately this bug happened because I was using a custom image repository during my tests without realizing.

Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
@douglascamata douglascamata requested review from a team, nicolastakashi and oded-dd as code owners June 12, 2025 15:17
@douglascamata douglascamata changed the title Supervisor-custom-image-fix [collector][supervisor] Fix custom image helper Jun 12, 2025
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
@douglascamata douglascamata merged commit 52a9ce5 into main Jun 12, 2025
3 checks passed
@douglascamata douglascamata deleted the supervisor-custom-image-fix branch June 12, 2025 15:30
douglascamata added a commit to coralogix/telemetry-shippers that referenced this pull request Jun 13, 2025
veronikaambar pushed a commit to coralogix/telemetry-shippers that referenced this pull request Jun 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants