mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 16:06:51 +00:00
Change runtime.Object signature
This commit is contained in:
@@ -365,7 +365,7 @@ func (s *SimpleStream) Close() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *SimpleStream) IsAnAPIObject() {}
|
||||
func (obj *SimpleStream) GetObjectKind() unversioned.ObjectKind { return unversioned.EmptyObjectKind }
|
||||
|
||||
func (s *SimpleStream) InputStream(version, accept string) (io.ReadCloser, bool, string, error) {
|
||||
s.version = version
|
||||
@@ -2680,7 +2680,9 @@ type UnregisteredAPIObject struct {
|
||||
Value string
|
||||
}
|
||||
|
||||
func (*UnregisteredAPIObject) IsAnAPIObject() {}
|
||||
func (obj *UnregisteredAPIObject) GetObjectKind() unversioned.ObjectKind {
|
||||
return unversioned.EmptyObjectKind
|
||||
}
|
||||
|
||||
func TestWriteJSONDecodeError(t *testing.T) {
|
||||
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
|
||||
|
||||
Reference in New Issue
Block a user