-
Notifications
You must be signed in to change notification settings - Fork 9
add build expiry #239
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
add build expiry #239
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion | 🟠 Major
Reminder: regenerate CRDs/DeepCopy after type changes.
The PR checklist shows
make manifests generateis unchecked. AddingSpec.TTLandStatus.ExpiresAtrequires regenerating both the CRD manifests (for validation,additionalPrinterColumns, etc.) andzz_generated.deepcopy.gosoImageBuildStatus.ExpiresAt(pointer type) is correctly deep-copied. Please ensuremake generate manifestsis run and committed.As per coding guidelines: "After modifying types in api/v1alpha1/, run
make generate manifeststo regenerate DeepCopy methods and CRDs".🤖 Prompt for AI Agents
🧩 Analysis chain
🏁 Script executed:
Repository: centos-automotive-suite/automotive-dev-operator
Length of output: 423
🏁 Script executed:
Repository: centos-automotive-suite/automotive-dev-operator
Length of output: 1471
🏁 Script executed:
Repository: centos-automotive-suite/automotive-dev-operator
Length of output: 3777
🏁 Script executed:
Repository: centos-automotive-suite/automotive-dev-operator
Length of output: 261
🏁 Script executed:
Repository: centos-automotive-suite/automotive-dev-operator
Length of output: 2551
🏁 Script executed:
Repository: centos-automotive-suite/automotive-dev-operator
Length of output: 957
🏁 Script executed:
Repository: centos-automotive-suite/automotive-dev-operator
Length of output: 910
🏁 Script executed:
Repository: centos-automotive-suite/automotive-dev-operator
Length of output: 129
🏁 Script executed:
Repository: centos-automotive-suite/automotive-dev-operator
Length of output: 1223
🏁 Script executed:
Repository: centos-automotive-suite/automotive-dev-operator
Length of output: 961
🏁 Script executed:
Repository: centos-automotive-suite/automotive-dev-operator
Length of output: 8935
🏁 Script executed:
Repository: centos-automotive-suite/automotive-dev-operator
Length of output: 220
🏁 Script executed:
Repository: centos-automotive-suite/automotive-dev-operator
Length of output: 396
🏁 Script executed:
Repository: centos-automotive-suite/automotive-dev-operator
Length of output: 2729
🏁 Script executed:
Repository: centos-automotive-suite/automotive-dev-operator
Length of output: 1013
🏁 Script executed:
Repository: centos-automotive-suite/automotive-dev-operator
Length of output: 909
TTL can delete builds in any phase, including in-progress ones — clarify intent and update documentation.
The code allows deletion of builds in Pending/Uploading/Building/Pushing/Flashing phases if their
CreationTimestamp + TTLelapses (sinceCompletionTimeis nil). The constant comment inapi/v1alpha1/operatorconfig_types.go(line 63) states "for completed/failed builds," but the actualcheckExpirylogic (lines 425-430 ofinternal/controller/imagebuild/controller.go) applies TTL deletion to any phase without filtering. This creates a documentation-code mismatch.Either confirm this behavior is intentional and update the doc comments accordingly, or restrict expiry to terminal phases (Completed/Failed) only. If intentional, also note that user-set short TTLs combined with long artifact uploads could trigger mid-flight deletion despite the 24h default.
🤖 Prompt for AI Agents