Skip to content

ROX-33816: proto changes for deployment soft deletes#19991

Draft
stehessel wants to merge 1 commit intomasterfrom
ROX-33816/proto-changes
Draft

ROX-33816: proto changes for deployment soft deletes#19991
stehessel wants to merge 1 commit intomasterfrom
ROX-33816/proto-changes

Conversation

@stehessel
Copy link
Copy Markdown
Collaborator

@stehessel stehessel commented Apr 14, 2026

Description

The purpose of this PR stack is to support soft deletes for deployments. That is, when workloads are deleted with the kube-api, the corresponding deployments in ACS are marked as deleted. This is done to surface such deployments and their vulnerabilities to the user. Deleted deployments are then pruned from the database in regular intervals. Also see ACS Soft-Delete for Deployments for high level discussion.

I have decided to go with a single timestamp to reduce the overall proto fields. The pruning time would then be calculated dynamically as deleted_at + pruning_interval. The state enum is intended to make filtering and querying more convenient for the UI (as there is no need to handle timestamps directly).

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!

@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Apr 14, 2026

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

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 14, 2026

🚀 Build Images Ready

Images are ready for commit 4a1d1c4. To use with deploy scripts:

export MAIN_IMAGE_TAG=4.11.x-668-g4a1d1c4a6e

@stehessel stehessel force-pushed the ROX-33816/proto-changes branch from 2c46d47 to 3175673 Compare April 15, 2026 08:27
@stehessel stehessel changed the title Rox 33816/proto changes ROX-33816: proto changes for deployment soft deletes Apr 15, 2026
@stehessel stehessel force-pushed the ROX-33816/proto-changes branch 3 times, most recently from e0e556b to b1d0c6d Compare April 15, 2026 09:31
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 15, 2026

Codecov Report

❌ Patch coverage is 23.52941% with 26 lines in your changes missing coverage. Please review.
✅ Project coverage is 49.67%. Comparing base (ee5bfc4) to head (4a1d1c4).
⚠️ Report is 6 commits behind head on master.

Files with missing lines Patch % Lines
central/graphql/resolvers/generated.go 10.34% 26 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #19991      +/-   ##
==========================================
+ Coverage   49.65%   49.67%   +0.01%     
==========================================
  Files        2765     2765              
  Lines      208823   209072     +249     
==========================================
+ Hits       103698   103849     +151     
- Misses      97458    97546      +88     
- Partials     7667     7677      +10     
Flag Coverage Δ
go-unit-tests 49.67% <23.52%> (+0.01%) ⬆️

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.

@stehessel stehessel force-pushed the ROX-33816/proto-changes branch from b1d0c6d to 9aec835 Compare April 15, 2026 13:47
@stehessel stehessel force-pushed the ROX-33816/proto-changes branch 2 times, most recently from bd51b28 to dffeb27 Compare April 16, 2026 14:12
@stehessel stehessel force-pushed the ROX-33816/proto-changes branch from dffeb27 to 51ea8df Compare April 16, 2026 15:05
@stehessel stehessel force-pushed the ROX-33816/proto-changes branch from 51ea8df to 4a1d1c4 Compare April 16, 2026 18:30
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.

1 participant