apiVersion: meta/v1
import "k8s.io/apimachinery/pkg/apis/meta/v1"
GroupVersionForDiscovery {#GroupVersionForDiscovery}
GroupVersion 包含版本号的 group/version 和 version 字符串。它被定义为结构体以保持可扩展性。
<hr>
<table> <thead><tr><th>字段</th><th>描述</th></tr></thead> <tbody> <tr> <td><code>groupVersion</code> <strong>*</strong><br/><em>string</em></td> <td>
groupVersion 指定了 API 组和版本,格式为 "group/version"。
</td>
</tr>
<tr>
<td><code>version</code> <strong>*</strong><br/><em>string</em></td>
<td>
version 以 "version" 的格式指定版本。这样做是为了避免客户端需要拆分 GroupVersion 的麻烦。
</td>
</tr>
</tbody> </table>
来源:Kubernetes 文档贡献者 · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
