mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-25 23:11:57 +00:00
FC: remove API Ready state
Since we decide to adopt config file to configure, we could bypass API Ready state. Here, we also create a new config ready state: `cfReady`, to represent configuration part is done. Fixes: #2199 Signed-off-by: Penny Zheng <penny.zheng@arm.com>
This commit is contained in:
parent
62cd08044d
commit
9ce2113535
@ -46,7 +46,7 @@ type vmmState uint8
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
notReady vmmState = iota
|
notReady vmmState = iota
|
||||||
apiReady
|
cfReady
|
||||||
vmReady
|
vmReady
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -96,8 +96,8 @@ func (s vmmState) String() string {
|
|||||||
switch s {
|
switch s {
|
||||||
case notReady:
|
case notReady:
|
||||||
return "FC not ready"
|
return "FC not ready"
|
||||||
case apiReady:
|
case cfReady:
|
||||||
return "FC API ready"
|
return "FC configure ready"
|
||||||
case vmReady:
|
case vmReady:
|
||||||
return "FC VM ready"
|
return "FC VM ready"
|
||||||
}
|
}
|
||||||
@ -446,7 +446,7 @@ func (fc *firecracker) fcInit(timeout int) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
fc.state.set(apiReady)
|
fc.state.set(cfReady)
|
||||||
|
|
||||||
// Store VMM information
|
// Store VMM information
|
||||||
if fc.store != nil {
|
if fc.store != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user