8000 refactor: include all workload resources by wcrum · Pull Request #3640 · zarf-dev/zarf · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

refactor: include all workload resources #3640

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 8, 2025
Merged

refactor: include all workload resources #3640

merged 1 commit into from
Apr 8, 2025

Conversation

wcrum
Copy link
Contributor
@wcrum wcrum commented Apr 7, 2025

add pod, cronjob, and replicationcontroller to minimize usage of standard submatching

Description

This pull request does not add any features or changes any code flow.

The processUnstructuredImages() function iterates over resources and passes child PodSpec resources into appendToImageMap() to grab a list of all required images.

While following logic, thought it would be more cohesive to support all resources that include Pod specs, include Pod itself, CronJob and ReplicationController (although legacy).

...

Related Issue

Not related to any existing issues.

Checklist before merging

@wcrum wcrum requested review from a team as code owners April 7, 2025 22:54
Copy link
netlify bot commented Apr 7, 2025

Deploy Preview for zarf-docs canceled.

Name Link
🔨 Latest commit 05d55a0
🔍 Latest deploy log https://app.netlify.com/sites/zarf-docs/deploys/67f457dcc773500008fa3186

add pod, cronjob, and replicationcontroller to minimize usage of standard submatching

Signed-off-by: William Crum <will@wcrum.dev>
Copy link
codecov bot commented Apr 7, 2025

Codecov Report

Attention: Patch coverage is 16.66667% with 15 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/pkg/packager/prepare.go 16.66% 14 Missing and 1 partial ⚠️
Files with missing lines Coverage Δ
src/pkg/packager/prepare.go 50.81% <16.66%> (-2.89%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member
@brandtkeller brandtkeller left a comment

Choose a reason for hiding this comment

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

Thanks for the changes!

It does improve the output regarding packages that have these resources.

Current output of main with: zarf dev find-images src/test/packages/38-ephemeral-container/

components:
      # Possible images - basic-pod - alpine
      - ghcr.io/zarf-dev/images/alpine:3.21.3

After including these changes:

components:

  - name: alpine
    images:
      - ghcr.io/zarf-dev/images/alpine:3.21.3

Copy link
Contributor
@mkcp mkcp left a comment

Choose a reason for hiding this comment

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

LGTM

@mkcp mkcp added this pull request to the merge queue Apr 8, 2025
Merged via the queue into zarf-dev:main with commit e6c47c5 Apr 8, 2025
26 checks passed
nevinaragam pushed a commit to nevinaragam/zarf that referenced this pull request May 20, 2025
Signed-off-by: William Crum <will@wcrum.dev>
Signed-off-by: NevinAragam <nevin.aragam@gmail.com>
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.

3 participants
0