Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ImageRunModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ export class ImageRunModal extends React.Component {
}

getCreateConfig() {
const createConfig = {};
const createConfig = { annotations: { created_by: "cockpit" } };

if (this.props.pod) {
createConfig.pod = this.props.pod.Id;
Expand Down
2 changes: 2 additions & 0 deletions test/check-application
Original file line number Diff line number Diff line change
Expand Up @@ -1543,6 +1543,8 @@ class TestApplication(testlib.MachineCase):
state='Running', owner="system" if auth else "admin")
hasTTY = self.execute(auth, "podman inspect --format '{{.Config.Tty}}' busybox-with-tty").strip()
self.assertEqual(hasTTY, 'true')
annotated = self.execute(auth, "podman inspect --format '{{.Config.Annotations.created_by}}' busybox-with-tty").strip()
self.assertEqual(annotated, 'cockpit')
# Only works with CGroupsV2
if auth or self.has_cgroupsV2:
memory = self.execute(auth, "podman inspect --format '{{.HostConfig.Memory}}' busybox-with-tty").strip()
Expand Down