mirror of
https://github.com/rancher/norman.git
synced 2025-09-13 22:01:34 +00:00
Add CustomizeSchemas builder hook
This commit is contained in:
6
build.go
6
build.go
@@ -68,6 +68,12 @@ func (c *Config) Build(ctx context.Context, opts *Options) (context.Context, *Se
|
||||
return ctx, nil, err
|
||||
}
|
||||
|
||||
if c.CustomizeSchemas != nil {
|
||||
if err := c.CustomizeSchemas(ctx, c.ClientGetter, r.AllSchemas); err != nil {
|
||||
return ctx, nil, err
|
||||
}
|
||||
}
|
||||
|
||||
if c.GlobalSetup != nil {
|
||||
ctx, err = c.GlobalSetup(ctx)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user