Skip to content

Commit

Permalink
need to parse VirtletCPUModel in annotation
Browse files Browse the repository at this point in the history
Signed-off-by: yanxuean <[email protected]>
  • Loading branch information
yanxuean committed Jul 27, 2018
1 parent c236e86 commit 0792c28
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/metadata/types/annotations.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,11 @@ func (va *VirtletAnnotations) parsePodAnnotations(ns string, podAnnotations map[
}
va.CPUSetting = &cpuSetting
}


if cpuModelStr, found := podAnnotations[cpuModel]; found {
va.CPUModel = CPUModelType(cpuModelStr)
}

if podAnnotations[cloudInitUserDataOverwriteKeyName] == "true" {
va.UserDataOverwrite = true
}
Expand Down

0 comments on commit 0792c28

Please sign in to comment.