From 4724a8d2217876b53f551b83de4d1381fd16d677 Mon Sep 17 00:00:00 2001 From: Tom Lebreux Date: Tue, 21 Jan 2025 09:28:15 -0500 Subject: [PATCH] Update extension apiserver documentation --- pkg/ext/apiserver.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/ext/apiserver.go b/pkg/ext/apiserver.go index 935cc06b9..f97a8e65f 100644 --- a/pkg/ext/apiserver.go +++ b/pkg/ext/apiserver.go @@ -210,6 +210,12 @@ func (s *ExtensionAPIServer) GetAuthorizer() authorizer.Authorizer { // Install adds a new store to the extension API server. // +// resourceName should be the plural form of the resource, the same that usually +// goes in a [schema.GroupVersionResource]. For example, for a token store, it would be tokens. +// +// gvk is the [schema.GroupVersionKind] that defines the input / output for the store. The kind must be +// singular name and in PascalCase. For example, for a token store, the kind would be Token. +// // A store implements handlers for the various operations (verbs) supported for // a defined GVK / GVR. For example, a store for a (apiVersion: // ext.cattle.io/v1, kind: Tokens) Custom Resource could implement create and