Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Add .status.runtime.id the VM container's ID #294

Merged
merged 2 commits into from
Aug 8, 2019

Conversation

twelho
Copy link
Contributor

@twelho twelho commented Aug 8, 2019

Not enabled for now, ignite-spawn needs to stop writing to the VM metadata on startup. This PR is part of the API changes for v0.5.0.

cc @luxas

Fixes: #210

@twelho twelho added kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API kind/design Categorizes issue or PR as related to the design of the project. labels Aug 8, 2019
@twelho twelho added this to the v0.5.0 milestone Aug 8, 2019
Copy link
Contributor

@luxas luxas left a comment

Choose a reason for hiding this comment

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

LGTM, thanks 👍

@@ -107,6 +107,9 @@ func StartVM(vm *api.VM, debug bool) error {
return fmt.Errorf("failed to start container for VM %q: %v", vm.GetUID(), err)
}

// Set the container ID for the VM
vm.Status.Runtime = &api.Runtime{ID: containerID}
Copy link
Contributor

Choose a reason for hiding this comment

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

We'll decide on some conventions here, but probably we'll follow Kubernetes' style docker://abcdef...

}

// TODO: Enable this when ignite-spawn doesn't write to the file anymore
//if err := providers.Client.VMs().Set(vm); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

Cool, this needs to wait for later 👍

@luxas luxas merged commit 0b216e1 into weaveworks:master Aug 8, 2019
@twelho twelho deleted the runtime-id branch August 8, 2019 11:33
@luxas luxas changed the title Add runtime.id for tracking the VM container's ID Add .status.runtime.id for tracking the VM container's ID Aug 12, 2019
@luxas luxas changed the title Add .status.runtime.id for tracking the VM container's ID Add .status.runtime.id the VM container's ID Aug 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API kind/design Categorizes issue or PR as related to the design of the project.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add .status.runtime.id to the VM API object
2 participants