mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-13 01:50:55 +00:00
Remove error return from constructor.
This commit is contained in:
@@ -28,11 +28,6 @@ type Kustomizer struct {
|
||||
options *Options
|
||||
}
|
||||
|
||||
// MakeDefaultKustomizer returns a Kustomizer with default configuration.
|
||||
func MakeDefaultKustomizer() *Kustomizer {
|
||||
return MakeKustomizer(filesys.MakeFsOnDisk(), MakeDefaultOptions())
|
||||
}
|
||||
|
||||
// MakeKustomizer returns an instance of Kustomizer.
|
||||
func MakeKustomizer(fSys filesys.FileSystem, o *Options) *Kustomizer {
|
||||
return &Kustomizer{fSys: fSys, options: o}
|
||||
|
||||
@@ -35,6 +35,6 @@ func MakeDefaultOptions() *Options {
|
||||
DoLegacyResourceSort: true,
|
||||
LoadRestrictions: types.LoadRestrictionsRootOnly,
|
||||
DoPrune: false,
|
||||
PluginConfig: pgmconfig.DefaultPluginConfig(),
|
||||
PluginConfig: pgmconfig.DisabledPluginConfig(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user