<p>When I am developing an operator, I need to build a pod object. When I write pod.Spec.Volumes, what I need to mount is a configmap type, so I operate according to the structure in the core\v1 package to ConfigMapVolumeSource When I created the structure, I found that the name field of the configmap was not specified. There were only four other fields. The directory of my file was:</p>
<p><a href="https://i.stack.imgur.com/TreRW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TreRW.png" alt="enter image description here" /></a></p>
<p><a href="https://i.stack.imgur.com/z8sZr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/z8sZr.png" alt="enter image description here" /></a></p>
<p><a href="https://i.stack.imgur.com/xYcTd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xYcTd.png" alt="enter image description here" /></a>
So when I build the pod, it will report an error. This field is required</p>
<p><a href="https://i.stack.imgur.com/ENReK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ENReK.png" alt="enter image description here" /></a></p>
<p>Am I using the wrong version?
thank you very much for your help！</p>

gophergfer
<p>The <code>name</code> field is inherited from <code>LocalObjectReference</code> struct.</p>
