Bump kube-openapi

This commit is contained in:
Olivier Lemasle
2023-01-09 20:41:41 +01:00
parent a887a3b4fd
commit 8b8e20fcdb
83 changed files with 913 additions and 749 deletions

View File

@@ -17,7 +17,6 @@ limitations under the License.
package testing
import (
"io/ioutil"
"os"
"sync"
@@ -42,7 +41,7 @@ func (f *Fake) OpenAPISchema() (*openapi_v2.Document, error) {
f.err = err
return
}
spec, err := ioutil.ReadFile(f.Path)
spec, err := os.ReadFile(f.Path)
if err != nil {
f.err = err
return

View File

@@ -17,7 +17,6 @@ limitations under the License.
package testing
import (
"io/ioutil"
"os"
"path/filepath"
"sync"
@@ -47,7 +46,7 @@ func (f *FakeV3) OpenAPIV3Schema(groupVersion string) (*openapi_v3.Document, err
if err != nil {
return nil, err
}
spec, err := ioutil.ReadFile(filepath.Join(f.Path, groupVersion+".json"))
spec, err := os.ReadFile(filepath.Join(f.Path, groupVersion+".json"))
if err != nil {
return nil, err
}