Skip to content
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

Re-use bundles at startup for podman runtime #386

Merged
merged 12 commits into from
Oct 29, 2024
Merged

Conversation

windsource
Copy link
Contributor

@windsource windsource commented Sep 26, 2024

Issue-Id: #260

Definition of Done

The PR shall be merged only if all items mentioned in CONTRIBUTING.md have been followed. In case an item is not applicable as described, please provide a short explanation in the description.

@windsource windsource marked this pull request as draft October 2, 2024 12:00
@windsource windsource marked this pull request as ready for review October 16, 2024 13:58
@windsource
Copy link
Contributor Author

All done. Ready for review.

@windsource windsource added enhancement New feature or request. Issue will appear in the change log "Features" ready for review labels Oct 16, 2024
@windsource
Copy link
Contributor Author

Currently this PR only handles agent restart and reuses containers that have the same configuration and are in state succeeded. But he agent might also restart workloads with restartPolicy: ALWAYS which currently does not reuse the existing container, even when workloads exits with state succeeded. To be consistent we also should implement reusing containers for that use-case.

@krucod3
Copy link
Contributor

krucod3 commented Oct 18, 2024

Should we create a ticket for the restarts? We can then add the constrains in (e.g., only for successfully finished workloads).

@krucod3 krucod3 self-assigned this Oct 18, 2024
@windsource
Copy link
Contributor Author

@krucod3 At first I thought about adding this right in this PR but we can also review it like it is today and have another isssue + PR for the restart policy.

Copy link
Contributor

@krucod3 krucod3 left a comment

Choose a reason for hiding this comment

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

Review done, findings documented.

agent/doc/swdesign/README.md Outdated Show resolved Hide resolved
justfile Show resolved Hide resolved
tests/resources/ankaios.resource Outdated Show resolved Hide resolved
tests/resources/ankaios.resource Outdated Show resolved Hide resolved
agent/src/runtime_manager.rs Outdated Show resolved Hide resolved
agent/src/runtime_connectors/podman/podman_runtime.rs Outdated Show resolved Hide resolved
agent/src/runtime_connectors/podman_cli.rs Outdated Show resolved Hide resolved
agent/src/runtime_connectors/podman_cli.rs Outdated Show resolved Hide resolved
@windsource
Copy link
Contributor Author

Fixed review findings.

Copy link
Contributor

@krucod3 krucod3 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@krucod3 krucod3 merged commit 6dc056c into main Oct 29, 2024
10 checks passed
@krucod3 krucod3 deleted the 260-reuse_bundles branch October 29, 2024 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request. Issue will appear in the change log "Features" ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants