mirror of
https://github.com/niusmallnan/steve.git
synced 2025-06-23 21:27:05 +00:00
Fix missing links on configmaps and secret
This commit is contained in:
parent
8b9bea44c6
commit
2543926f99
@ -20,6 +20,10 @@ func DefaultTemplate(clientGetter proxy.ClientGetter, asl accesscontrol.AccessSe
|
||||
}
|
||||
}
|
||||
|
||||
func DefaultFormatter(next types.Formatter) types.Formatter {
|
||||
return types.FormatterChain(Formatter, next)
|
||||
}
|
||||
|
||||
func Formatter(request *types.APIRequest, resource *types.RawResource) {
|
||||
meta, err := meta.Accessor(resource.APIObject.Object)
|
||||
if err != nil {
|
||||
|
@ -37,11 +37,11 @@ func DefaultSchemaTemplates(cf *client.Factory, lookup accesscontrol.AccessSetLo
|
||||
apigroups.Template(discovery),
|
||||
{
|
||||
ID: "configmap",
|
||||
Formatter: helm.DropHelmData,
|
||||
Formatter: common.DefaultFormatter(helm.DropHelmData),
|
||||
},
|
||||
{
|
||||
ID: "secret",
|
||||
Formatter: helm.DropHelmData,
|
||||
Formatter: common.DefaultFormatter(helm.DropHelmData),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user