Fix type mismatch

This commit is contained in:
Ryan Bonham 2019-03-29 14:32:29 -05:00
parent ac5a2ec2a0
commit 8584fd731d
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}