apiserver/pkg
Andrew DeMaria 81abb60d67 generate fully qualified type references
Currently type references for non-local names are output as relative
types which is subject to the resolution rules as defined at
https://protobuf.com/docs/language-spec#reference-resolution
This works fine within the k8s.io namespace where no subpackages are
named k8s, but other users of go-to-protobuf likely have k8s in their
package name. This causes conflicts in the search resolution when
executing `go-to-protobuf`:

```
company.example.com/k8s/custom/pkg/apis/custom.k8s.example.com/v1/generated.proto:64:12: "k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta" is resolved to "company.example.com.k8s.custom.pkg.apis.custom.k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta", which is not defined. The innermost scope is searched first in name resolution. Consider using a leading '.'(i.e., ".k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta") to start from the outermost scope.
```

To avoid this we can output fully qualified type references using a
preceding dot (.)

This results in a change for k8s generated.proto files, but the
effect is a noop.

Fixes kubernetes/code-generator#147

Signed-off-by: Andrew DeMaria <ademaria@cloudflare.com>

Kubernetes-commit: 9edf1fc51c56d565348c48f3765cf094518ba7ed
2023-03-20 18:02:14 -06:00
..
admission update to inject only the list of excluded resources. 2024-03-05 10:27:35 -08:00
apis generate fully qualified type references 2023-03-20 18:02:14 -06:00
audit Initialize the AuditEvent with the AuditContext (#113611) 2023-07-03 18:28:13 +00:00
authentication Require email_verified to be used when email is set as username via CEL 2024-03-05 17:20:18 -05:00
authorization Add authorization webhook duration/count/failopen metrics 2024-03-02 01:44:28 -05:00
cel add support for map 2024-02-27 13:55:08 -08:00
endpoints Fix SetFeatureGateDuringTest handling of Parallel tests 2024-03-05 21:56:40 +01:00
features Serve watch without resourceVersion from cache and introduce a WatchFromStorageWithoutResourceVersion feature gate to allow serving watch from storage. 2024-03-14 15:20:29 +01:00
quota/v1 benchmark test to evaluate the overhead of podMatchesScopeFunc 2023-05-04 16:55:32 -07:00
reconcilers storage/factory: extend the Create method by newList and resourcePrefix params 2023-07-28 09:53:01 +02:00
registry Add retry around create 2024-01-19 16:10:30 -05:00
server Add metrics for authentication config reload 2024-03-09 13:29:56 -08:00
storage Rename `cluster` to `storage_cluster_id` for apiserver_storage_size_bytes metric 2024-04-11 15:06:03 -04:00
storageversion add list of served versions to storage version 2023-07-12 18:27:27 -04:00
util adds portforward streamtunnel unit tests 2024-03-06 16:37:17 -08:00
warning track legacy service account tokens 2022-03-21 14:21:41 -07:00