Skip to content

[Multi_K8s-Plugin] Extract images from initContainers and CronJob templates#6808

Open
mohammedfirdouss wants to merge 1 commit into
pipe-cd:masterfrom
mohammedfirdouss:feat/multicluster-container-images
Open

[Multi_K8s-Plugin] Extract images from initContainers and CronJob templates#6808
mohammedfirdouss wants to merge 1 commit into
pipe-cd:masterfrom
mohammedfirdouss:feat/multicluster-container-images

Conversation

@mohammedfirdouss
Copy link
Copy Markdown
Contributor

What this PR does:
Extends FindContainerImages to also extract images from initContainers and from CronJob jobTemplate paths. Previously only spec.template.spec.containers[*].image was checked, so init container images and all CronJob images were silently ignored.

Why we need it:
Applications using init containers or CronJobs would have their images missing from version tracking and drift detection.

Which issue(s) this PR fixes:
Fixes #6446

Does this PR introduce a user-facing change?:

  • How are users affected by this change: Version tracking and drift detection now correctly include images from initContainers and CronJobs.
  • Is this breaking change: No
  • How to migrate (if breaking change): N/A

…CronJob templates

Signed-off-by: Mohammed Firdous <124298708+mohammedfirdouss@users.noreply.github.com>
Copy link
Copy Markdown
Member

@Warashi Warashi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[LFX Mentorship T-1 2026] Kubernetes Multi-Cluster Plugin #6446

2 participants