mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-25 06:52:13 +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 (
|
||||
notReady vmmState = iota
|
||||
apiReady
|
||||
cfReady
|
||||
vmReady
|
||||
)
|
||||
|
||||
@ -96,8 +96,8 @@ func (s vmmState) String() string {
|
||||
switch s {
|
||||
case notReady:
|
||||
return "FC not ready"
|
||||
case apiReady:
|
||||
return "FC API ready"
|
||||
case cfReady:
|
||||
return "FC configure ready"
|
||||
case vmReady:
|
||||
return "FC VM ready"
|
||||
}
|
||||
@ -446,7 +446,7 @@ func (fc *firecracker) fcInit(timeout int) error {
|
||||
return err
|
||||
}
|
||||
|
||||
fc.state.set(apiReady)
|
||||
fc.state.set(cfReady)
|
||||
|
||||
// Store VMM information
|
||||
if fc.store != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user