Skip to content

Commit

Permalink
fix gen swagger for k8s 1.27
Browse files Browse the repository at this point in the history
Signed-off-by: lonelyCZ <chengzhe@zju.edu.cn>
  • Loading branch information
lonelyCZ committed Jun 28, 2023
1 parent c39856b commit cc7494c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hack/tools/swagger/lib/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ type ProxyREST struct{}
var _ rest.GroupVersionKindProvider = &StandardREST{}
var _ rest.Scoper = &StandardREST{}
var _ rest.StandardStorage = &StandardREST{}
var _ rest.SingularNameProvider = &StandardREST{}

// Implement below interfaces for StatusREST.
var _ rest.Patcher = &StatusREST{}
Expand Down Expand Up @@ -104,6 +105,11 @@ func (r *StandardREST) Destroy() {
// need to destroy anything.
}

// GetSingularName implements the SingularNameProvider interfaces.
func (r *StandardREST) GetSingularName() string {
return ""
}

// GroupVersionKind implement GroupVersionKind interface.
func (r *StatusREST) GroupVersionKind(_ schema.GroupVersion) schema.GroupVersionKind {
return r.cfg.gvk
Expand Down

0 comments on commit cc7494c

Please sign in to comment.