Skip to content

Commit 9f78492

Browse files
author
Shawn Hurley
committed
✨ adding ability to get a APIReader from the client.
Adding a new interface `APIClient` to expose as part of the client a non caching reader interface. fixes kubernetes-sigs#180 fixes kubernetes-sigs#245
1 parent 4c0ea9d commit 9f78492

File tree

6 files changed

+860
-33
lines changed

6 files changed

+860
-33
lines changed

pkg/client/client.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ func (c *client) Status() StatusWriter {
144144
return &statusWriter{client: c}
145145
}
146146

147+
func (c *client) APIReader() Reader {
148+
return c
149+
}
150+
147151
// statusWriter is client.StatusWriter that writes status subresource
148152
type statusWriter struct {
149153
client *client

0 commit comments

Comments
 (0)