<p>I didn't find any information about priority of configMaps vs secrets. If I have the same keys in both, which one wins?</p>
<p>Here's an example of a template:</p>
<pre class="lang-yaml prettyprint-override"><code>spec:
  containers:
  - envFrom:
    - configMapRef:
      name: my-configmap
    - secretRef:
      name: my-secret
</code></pre>

mnj
<p>According to the kubernetes <a href="https://github.com/kubernetes/kubernetes/blob/ea0764452222146c47ec826977f49d7001b0ea8c/staging/src/k8s.io/client-go/applyconfigurations/core/v1/container.go#L118" rel="nofollow noreferrer">code</a>, it iterates over the list in sequence.</p>
<pre class="lang-golang prettyprint-override"><code>func (b *ContainerApplyConfiguration) WithEnvFrom(values ...*EnvFromSourceApplyConfiguration) *ContainerApplyConfiguration {
    for i := range values {
.
.
</code></pre>
<p>So the order matters, whatever comes later in the list will overwrite the previous value. In the example you provided, the value from <code>my-secret</code> will win.</p>
