mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Make a secret factory.
This commit is contained in:
@@ -46,9 +46,9 @@ type ConfigMapFactory struct {
|
||||
// NewConfigMapFactory returns a new ConfigMapFactory.
|
||||
func NewConfigMapFactory(
|
||||
args *types.ConfigMapArgs,
|
||||
fSys fs.FileSystem,
|
||||
l loader.Loader) *ConfigMapFactory {
|
||||
return &ConfigMapFactory{args: args, fSys: fSys, ldr: l}
|
||||
l loader.Loader,
|
||||
fSys fs.FileSystem) *ConfigMapFactory {
|
||||
return &ConfigMapFactory{args: args, ldr: l, fSys: fSys}
|
||||
}
|
||||
|
||||
// MakeUnstructAndGenerateName returns an configmap and the name appended with a hash.
|
||||
|
||||
@@ -136,7 +136,7 @@ func TestConstructConfigMap(t *testing.T) {
|
||||
for _, tc := range testCases {
|
||||
// TODO: all tests should use a FakeFs
|
||||
fSys := fs.MakeRealFS()
|
||||
f := NewConfigMapFactory(&tc.input, fSys, nil)
|
||||
f := NewConfigMapFactory(&tc.input, nil, fSys)
|
||||
cm, err := f.MakeConfigMap1()
|
||||
if err != nil {
|
||||
t.Fatalf("unexpected error: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user