apiVersion: authorization.k8s.io/v1
import "k8s.io/api/authorization/v1"
NonResourceRule {#NonResourceRule}
NonResourceRule 包含描述非资源规则的信息。
<hr>
<table> <thead><tr><th>字段</th><th>描述</th></tr></thead> <tbody> <tr> <td><code>nonResourceURLs</code><br/><em>string array</em></td> <td>
nonResourceURLs 是一组用户应有权访问的部分 URL。允许使用 "*",但仅限于作为路径的完整末尾部分;"*" 表示所有动词。
</td>
</tr>
<tr>
<td><code>verbs</code> <strong>*</strong><br/><em>string array</em></td>
<td>
verbs 是 Kubernetes 非资源 API 动词的列表,例如:get、post、put、delete、patch、head、options。其中 "*" 表示所有动词。
</td>
</tr>
</tbody> </table>
来源:Kubernetes 文档贡献者 · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
