• Kubernetes Submit Queue's avatar
    Merge pull request #36909 from sttts/sttts-discovery-with-verbs · 45a436ac
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 37370, 37003, 36909)
    
    Add verbs to APIResourceInfo for discovery
    
    Verbs will be used by generic controllers (gc, namespace) to avoid unnecessary API calls, reducing load on the apiserver. E.g. not all objects can be deleted.
    
    Example:
    ```json
    {
      "kind": "APIResourceList",
      "apiVersion": "v1",
      "groupVersion": "batch/v1",
      "resources": [
        {
          "name": "jobs",
          "namespaced": true,
          "kind": "Job",
          "verbs": [
            "create",
            "delete",
            "deletecollection",
            "get",
            "list",
            "update",
            "watch"
          ]
        },
        {
          "name": "jobs/status",
          "namespaced": true,
          "kind": "Job",
          "verbs": [
            "create",
            "get"
          ]
        }
      ]
    }
    ```
    45a436ac
Name
Last commit
Last update
..
cache Loading commit data...
chaosclient Loading commit data...
clientset_generated Loading commit data...
conditions Loading commit data...
informers Loading commit data...
leaderelection Loading commit data...
listers Loading commit data...
metrics Loading commit data...
record Loading commit data...
restclient Loading commit data...
retry Loading commit data...
testdata Loading commit data...
testing Loading commit data...
transport Loading commit data...
typed Loading commit data...
unversioned Loading commit data...
OWNERS Loading commit data...