mirror of https://github.com/kubernetes/kops.git
Fix type mismatch
This commit is contained in:
parent
ac5a2ec2a0
commit
8584fd731d
|
|
@ -388,7 +388,7 @@ func (b *KubeAPIServerBuilder) buildPod() (*v1.Pod, error) {
|
|||
}
|
||||
|
||||
requestCPU := resource.MustParse("150m")
|
||||
if b.Cluster.Spec.KubeAPIServer.CPURequest != nil {
|
||||
if b.Cluster.Spec.KubeAPIServer.CPURequest != "" {
|
||||
requestCPU = resource.MustParse(b.Cluster.Spec.KubeAPIServer.CPURequest)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue