mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 02:33:34 +00:00
rebase: update K8s packages to v0.32.1
Update K8s packages in go.mod to v0.32.1 Signed-off-by: Praveen M <m.praveen@ibm.com>
This commit is contained in:
4
vendor/k8s.io/client-go/openapi/cached/groupversion.go
generated
vendored
4
vendor/k8s.io/client-go/openapi/cached/groupversion.go
generated
vendored
@ -56,3 +56,7 @@ func (g *groupversion) Schema(contentType string) ([]byte, error) {
|
||||
|
||||
return cachedInfo.data, cachedInfo.err
|
||||
}
|
||||
|
||||
func (c *groupversion) ServerRelativeURL() string {
|
||||
return c.delegate.ServerRelativeURL()
|
||||
}
|
||||
|
12
vendor/k8s.io/client-go/openapi/groupversion.go
generated
vendored
12
vendor/k8s.io/client-go/openapi/groupversion.go
generated
vendored
@ -27,6 +27,12 @@ const ContentTypeOpenAPIV3PB = "application/com.github.proto-openapi.spec.v3@v1.
|
||||
|
||||
type GroupVersion interface {
|
||||
Schema(contentType string) ([]byte, error)
|
||||
|
||||
// ServerRelativeURL. Returns the path and parameters used to fetch the schema.
|
||||
// You should use the Schema method to fetch it, but this value can be used
|
||||
// to key the current version of the schema in a cache since it contains a
|
||||
// hash string which changes upon schema update.
|
||||
ServerRelativeURL() string
|
||||
}
|
||||
|
||||
type groupversion struct {
|
||||
@ -68,3 +74,9 @@ func (g *groupversion) Schema(contentType string) ([]byte, error) {
|
||||
|
||||
return path.Do(context.TODO()).Raw()
|
||||
}
|
||||
|
||||
// URL used for fetching the schema. The URL includes a hash and can be used
|
||||
// to key the current version of the schema in a cache.
|
||||
func (g *groupversion) ServerRelativeURL() string {
|
||||
return g.item.ServerRelativeURL
|
||||
}
|
||||
|
Reference in New Issue
Block a user