Skip to content

Commit ea32ba1

Browse files
committed
api changes: document how to support kubectl get
These pointers may help developers who are new to the code.
1 parent 997e52b commit ea32ba1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contributors/devel/sig-architecture/api_changes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -828,6 +828,7 @@ Due to the fast changing nature of the project, the following content is probabl
828828
[cmd/kube-apiserver/app#apiVersionPriorities](https://github.com/kubernetes/kubernetes/blob/v1.21.2/cmd/kube-apiserver/app/aggregator.go#L247).
829829
* You must setup storage for the new version in
830830
`pkg/registry/group_name/rest` (for example, [pkg/registry/authentication/rest](https://github.com/kubernetes/kubernetes/blob/v1.21.2/pkg/registry/authentication/rest/storage_authentication.go)).
831+
* For `kubectl get` you must add a table definition to [pkg/printers/internalversion/printers.go](https://github.com/kubernetes/kubernetes/blob/v1.23.0/pkg/printers/internalversion/printers.go). Integration tests for this are in [test/integration/apiserver/print_test.go](https://github.com/kubernetes/kubernetes/blob/v1.23.0/test/integration/apiserver/print_test.go).
831832

832833
You need to regenerate the generated code as instructed in the sections above.
833834

0 commit comments

Comments
 (0)