Make a secret factory.

This commit is contained in:
Jeffrey Regan
2018-07-20 09:01:37 -07:00
parent 0197c019cc
commit 276693cf0e
9 changed files with 32 additions and 23 deletions

View File

@@ -103,7 +103,7 @@ func addConfigMap(k *types.Kustomization, flagsAndArgs cMapFlagsAndArgs, fSys fs
return err
}
factory := configmapandsecret.NewConfigMapFactory(cmArgs, fSys, nil)
factory := configmapandsecret.NewConfigMapFactory(cmArgs, nil, fSys)
// Validate by trying to create corev1.configmap.
_, _, err = factory.MakeUnstructAndGenerateName()