<p>In general, how can I get the group name for any type of resource?</p>
<p>And in particular, what should I use for group here:</p>
<pre class="lang-yaml prettyprint-override"><code>  - path: cm.patch.yaml
    target:
      kind: ConfigMap
      group: &quot;&quot;         # &lt;------
      version: v1
      name: my-confif
</code></pre>
<p>Is it the empty string?</p>

Behrang Saeedzadeh
<p>Look in the <a href="https://kubernetes.io/docs/reference/kubernetes-api/" rel="nofollow noreferrer">Kubernetes API documentation</a>.</p>
<p>If you look at, for example, <a href="https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/storage-class-v1/" rel="nofollow noreferrer">StorageClass</a>, it says at the top of the page</p>
<blockquote>
<p><code>apiVersion: storage.k8s.io/v1</code></p>
</blockquote>
<p>So for this object, the group is <code>storage.k8s.io</code>, the version is <code>v1</code>, and the kind is <code>StorageClass</code>.</p>
<p>The <a href="https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/config-map-v1/" rel="nofollow noreferrer">ConfigMap</a> page says just</p>
<blockquote>
<p><code>apiVersion: v1</code></p>
</blockquote>
<p>This is in the &quot;core&quot; group, and an empty string as you have it in the question is correct.</p>
