Knative common packages
Go to file
Dave Protasowski 5dd89c68db
Support istio *List types where Items is an array of pointer types (#2613)
Generally K8s types have a list type where the 'Items' member is an
array of structs.

ie. https://pkg.go.dev/k8s.io/api@v0.25.3/apps/v1#DeploymentList

type DeploymentList struct {
	...
	// Items is the list of Deployments.
	Items []Deployment `json:"items" protobuf:"bytes,2,rep,name=items"`
}

Istio is an exception where the list contains pointers to structs

type GatewayList struct {
	...
	Items       []*Gateway `json:"items" protobuf:"bytes,2,rep,name=items"`
}

To hint that the list types are pointers you can now pass the flag
'--lister-has-pointer-elem'.

Ideally we could infer this info by inspecting the types but
unfortunately the generator doesn't load this information
2022-10-20 14:09:13 +00:00
.github Update actions (#2607) 2022-10-06 19:02:31 +00:00
apiextensions Ignore migration of CRDs that aren't installed (#2493) 2022-04-28 19:25:52 +00:00
apis Bump to k8s v0.24.4 client packages (#2586) 2022-09-09 15:07:30 +00:00
changeset fix linting (#2555) 2022-07-22 15:28:21 +00:00
client/injection update k8s to 1.25.2 (#2599) 2022-10-07 21:10:32 +00:00
codegen Support istio *List types where Items is an array of pointer types (#2613) 2022-10-20 14:09:13 +00:00
configmap fix lint warnings (#2589) 2022-09-12 18:15:45 +00:00
controller Electors can provide an initial set of buckets (#2473) 2022-03-25 11:21:49 -07:00
depcheck Fix revive related linting issues (#2131) 2021-05-26 01:10:28 -07:00
environment Use default Kubeconfig loading rules (#2197) 2021-07-22 11:42:03 -07:00
hack Add reconcile for ValidatingWebhookConfiguration and MutatingWebhookConfiguration. (#2550) 2022-07-20 22:08:01 +00:00
hash add popany to bucketer (#2445) 2022-03-15 08:28:03 -07:00
injection Support fetching observability from ctx. (#2610) 2022-10-14 16:45:53 +00:00
kflag Update OWNERS_ALIASES to match autogen in community (#2078) 2021-04-08 07:42:51 -07:00
kmap kmap changes (#2355) 2021-11-19 15:11:11 -08:00
kmeta kmap (#2354) 2021-11-19 09:07:23 -08:00
kmp v2 (#1754) 2020-09-29 13:18:29 -07:00
kref Add KReference.Group field and ResolveGroup function (#2127) 2021-06-15 02:27:20 -07:00
kvstore Fix nil pointer panic in kvstore (#2002) 2021-01-27 08:35:30 -08:00
leaderelection Support fetching configs from `ctx`. (#2505) 2022-05-03 15:25:57 +00:00
logging Drop error from changeset.Get signature (#2549) 2022-07-18 16:36:59 +00:00
metrics Support fetching observability from ctx. (#2610) 2022-10-14 16:45:53 +00:00
network fix lint warnings (#2589) 2022-09-12 18:15:45 +00:00
profiling Make the profiling port configurable via envvar. (#1950) 2020-12-08 09:45:41 -08:00
ptr Added inverse functions for the ptr package (#2172) 2021-06-28 15:56:12 -07:00
reconciler Define a global for `reconciler.DefaultTimeout`. (#2597) 2022-09-21 02:44:09 +00:00
resolver Don't discard addressable resolver original errors (#2395) 2022-01-21 01:23:05 -08:00
signals Format go code (#2312) 2021-10-15 12:04:13 -07:00
source remove source stats reporter (#2193) 2021-07-15 10:15:31 -07:00
system Fix revive related linting issues (#2131) 2021-05-26 01:10:28 -07:00
test fix lint warnings (#2589) 2022-09-12 18:15:45 +00:00
testing Fix subresource update logic. (#2546) 2022-07-15 18:32:28 +00:00
third_party update k8s to 1.25.2 (#2599) 2022-10-07 21:10:32 +00:00
tracing SetupStaticPublishing and SetupDynamicPublishing returns Tracer with Shutdown function (#2566) 2022-08-15 21:25:47 +00:00
tracker update boilerplate date (#2539) 2022-06-30 22:25:31 +00:00
unstructured bump k8s to v1.20.7 (#2145) 2021-06-10 06:56:43 -07:00
vendor upgrade to latest dependencies (#2609) 2022-10-11 17:58:52 +00:00
version bump min kubernetes to v1.23 (#2595) 2022-10-05 16:45:29 +00:00
webhook Preserve webhook namespaceSelector.matchLabels (#2605) 2022-10-06 21:14:31 +00:00
websocket fix lint warnings (#2589) 2022-09-12 18:15:45 +00:00
.codecov.yaml fix coverage settings (#2471) 2022-03-25 11:51:48 -07:00
.gitattributes Enable coverage for test code (#778) 2019-10-21 12:37:24 -07:00
.gitignore [Genreconciler] Fix group names when client groups differ than their directory name. (#1097) 2020-02-18 17:14:59 -08:00
.golangci.yaml Bump golangci-lint timeout to 10m for github actions (#2241) 2021-08-27 04:26:38 -07:00
CONTRIBUTING.md Fix CONTRIBUTING.md link (#1752) 2020-09-28 16:46:28 -07:00
DEVELOPMENT.md Update DEVELOPMENT.md (#2069) 2021-03-30 23:23:21 -07:00
LICENSE Initial commit 2018-07-25 10:16:04 -07:00
OWNERS Add knative-release-leads to OWNERS (#2125) 2021-05-17 23:27:14 -07:00
OWNERS_ALIASES Update community files (#2606) 2022-10-06 01:36:30 +00:00
README.md Drop master references to knative repos (#2050) 2021-03-11 09:48:26 -08:00
RELEASE-LEADS.md moved release docs to github.com/knative/release (#2040) 2021-02-26 10:29:47 -08:00
code-of-conduct.md Adding code of conduct to reference knative/community's CoC (#2470) 2022-03-18 11:55:21 -07:00
go.mod upgrade to latest dependencies (#2609) 2022-10-11 17:58:52 +00:00
go.sum upgrade to latest dependencies (#2609) 2022-10-11 17:58:52 +00:00

README.md

Knative Common Packages

sink

"The kitchen sink" by Alan Cleaver is licensed under CC BY 2.0

GoDoc Go Report Card codecov

Knative pkg provides a place for sharing common Knative packages across the Knative repos.

To learn more about Knative, please visit our Knative docs repository.

If you are interested in contributing, see CONTRIBUTING.md and DEVELOPMENT.md.