Skip to content

fix(ROX-33305): add StackRox image pull secret to qa-image-scanning-test namespace#19182

Draft
tommartensen wants to merge 2 commits into
masterfrom
tm/ROX-33305
Draft

fix(ROX-33305): add StackRox image pull secret to qa-image-scanning-test namespace#19182
tommartensen wants to merge 2 commits into
masterfrom
tm/ROX-33305

Conversation

@tommartensen

Copy link
Copy Markdown
Contributor

Image metadata from registry tests run in qa-image-scanning-test. The default service account in that namespace was never given image pull secrets; only per-deployment secrets (e.g. quay-image-scanning-test) were created for specific iterations. Call addStackroxImagePullSecret in ImageScanningTest.setupSpec() after ensuring the namespace exists so the default SA has quay and public-dockerhub secrets and can pull StackRox/Quay images when deployments do not set their own.

Partially generated by AI.

Description

change me!

User-facing documentation

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

How I validated my change

change me!

…est namespace

Image metadata from registry tests run in qa-image-scanning-test. The
default service account in that namespace was never given image pull
secrets; only per-deployment secrets (e.g. quay-image-scanning-test)
were created for specific iterations. Call addStackroxImagePullSecret
in ImageScanningTest.setupSpec() after ensuring the namespace exists
so the default SA has quay and public-dockerhub secrets and can pull
StackRox/Quay images when deployments do not set their own.

Partially generated by AI.
@tommartensen tommartensen self-assigned this Feb 25, 2026
@tommartensen

Copy link
Copy Markdown
Contributor Author

/test help

@openshift-ci

openshift-ci Bot commented Feb 25, 2026

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@tommartensen

Copy link
Copy Markdown
Contributor Author

/test gke-latest-qa-e2e-tests

@rhacs-bot

rhacs-bot commented Feb 25, 2026

Copy link
Copy Markdown
Contributor

Images are ready for the commit at f29555f.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.11.x-174-gf29555f2e7.

@tommartensen

Copy link
Copy Markdown
Contributor Author

/test gke-latest-qa-e2e-tests

@tommartensen

Copy link
Copy Markdown
Contributor Author

/test gke-latest-qa-e2e-tests

@codecov

codecov Bot commented Feb 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.56%. Comparing base (b61ea14) to head (f29555f).
⚠️ Report is 14 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #19182      +/-   ##
==========================================
+ Coverage   49.53%   49.56%   +0.02%     
==========================================
  Files        2674     2675       +1     
  Lines      201755   201820      +65     
==========================================
+ Hits        99945   100025      +80     
+ Misses      94348    94337      -11     
+ Partials     7462     7458       -4     
Flag Coverage Δ
go-unit-tests 49.56% <ø> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@openshift-ci

openshift-ci Bot commented Feb 26, 2026

Copy link
Copy Markdown

@tommartensen: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/gke-latest-qa-e2e-tests f29555f link false /test gke-latest-qa-e2e-tests

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@davdhacs davdhacs left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this is desired for new kubernetes with default security setting to only allow image pulls by pods that have access to pull the image from the remote registry.

@davdhacs

Copy link
Copy Markdown
Contributor

With the help of 🤖 claude, I think these are still failing because the nodes are hitting garbage collection because of exceeding 85% disk usage. Maybe increase to a 100 GB disk by default?

@davdhacs

davdhacs commented Feb 27, 2026

Copy link
Copy Markdown
Contributor

With the help of 🤖 claude, I think these are still failing because the nodes are hitting garbage collection because of exceeding 85% disk usage. Maybe increase to a 100 GB disk by default?

I tested with a 120GB disk, but still hit the same failure. Then I tried removing the SHA from the test image pulls, and that appeared to fix the issue for many of the tests but I still saw one image pull failure (after 30 minutes of an image not being used, the kubelet deleted it. I'm guessing from garbage collection).

So maybe we need more disk space, and to change/update the SHA in the tests or in the prefetched (so they match), and still to do something to prevent deletion.

latest commit tests adding io.cri-containerd.pinned=pinned to the images after the prefetcher finishes: #19218

@tommartensen

Copy link
Copy Markdown
Contributor Author

@davdhacs please continue with your approach if you see good results!

@davdhacs

Copy link
Copy Markdown
Contributor

@davdhacs please continue with your approach if you see good results!

ok, and I think we'll need this change also for when the image access requirement is enforced. I'll update here with my (re/pro)gress on the other PR before closing or code-review there.

@openshift-ci

openshift-ci Bot commented Apr 12, 2026

Copy link
Copy Markdown

PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

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.

3 participants