mirror of
https://github.com/niusmallnan/steve.git
synced 2025-09-16 06:50:12 +00:00
Initial implmentation of warning headers
Attempts to pass through warning headers which k8s returns. Requires an update to rancher/apiserver.
This commit is contained in:
committed by
Chad Roberts
parent
7565dba268
commit
956b7351aa
@@ -101,7 +101,7 @@ type byNameOrNamespaceStore struct {
|
||||
}
|
||||
|
||||
// List returns a list of resources by partition.
|
||||
func (b *byNameOrNamespaceStore) List(apiOp *types.APIRequest, schema *types.APISchema) (*unstructured.UnstructuredList, error) {
|
||||
func (b *byNameOrNamespaceStore) List(apiOp *types.APIRequest, schema *types.APISchema) (*unstructured.UnstructuredList, []types.Warning, error) {
|
||||
if b.partition.Passthrough {
|
||||
return b.Store.List(apiOp, schema)
|
||||
}
|
||||
|
Reference in New Issue
Block a user