@@ -31,7 +31,6 @@ import (
31
31
"k8s.io/apimachinery/pkg/runtime"
32
32
"k8s.io/apimachinery/pkg/util/validation"
33
33
"sigs.k8s.io/kustomize/pkg/fs"
34
- "sigs.k8s.io/kustomize/pkg/hash"
35
34
"sigs.k8s.io/kustomize/pkg/loader"
36
35
"sigs.k8s.io/kustomize/pkg/types"
37
36
)
@@ -48,20 +47,15 @@ func NewConfigMapFactory(
48
47
return & ConfigMapFactory {fSys : fSys , ldr : l }
49
48
}
50
49
51
- // MakeUnstructAndGenerateName returns an configmap and the name appended with a hash .
52
- func (f * ConfigMapFactory ) MakeUnstructAndGenerateName (
53
- args * types.ConfigMapArgs ) (* unstructured.Unstructured , string , error ) {
50
+ // MakeUnstruct returns an configmap in unstructured representation .
51
+ func (f * ConfigMapFactory ) MakeUnstruct (
52
+ args * types.ConfigMapArgs ) (* unstructured.Unstructured , error ) {
54
53
cm , err := f .MakeConfigMap (args )
55
54
if err != nil {
56
- return nil , "" , err
57
- }
58
- h , err := hash .ConfigMapHash (cm )
59
- if err != nil {
60
- return nil , "" , err
55
+ return nil , err
61
56
}
62
- nameWithHash := fmt .Sprintf ("%s-%s" , cm .GetName (), h )
63
57
unstructuredCM , err := objectToUnstructured (cm )
64
- return unstructuredCM , nameWithHash , err
58
+ return unstructuredCM , err
65
59
}
66
60
67
61
func objectToUnstructured (in runtime.Object ) (* unstructured.Unstructured , error ) {
0 commit comments