From c6d8bcb01bf17d7889e43868aab01988f7666d8e Mon Sep 17 00:00:00 2001 From: Jeffrey Regan Date: Tue, 12 Jun 2018 13:47:22 -0700 Subject: [PATCH] Replace deprecated crypto/md5 with crypto/sha256 --- pkg/configmapandsecret/util/util.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/configmapandsecret/util/util.go b/pkg/configmapandsecret/util/util.go index 4970bd508..af9c69021 100644 --- a/pkg/configmapandsecret/util/util.go +++ b/pkg/configmapandsecret/util/util.go @@ -18,7 +18,7 @@ limitations under the License. package util import ( - "crypto/md5" + "crypto/sha256" "errors" "fmt" "path" @@ -47,7 +47,7 @@ func HashObject(obj runtime.Object, codec runtime.Codec) (string, error) { if err != nil { return "", err } - return fmt.Sprintf("%x", md5.Sum(data)), nil + return fmt.Sprintf("%x", sha256.Sum256(data)), nil } // ParseFileSource parses the source given.