Skip to content

Commit

Permalink
Merge pull request #69 from yxxhero/remote_temp_rand
Browse files Browse the repository at this point in the history
remove temp_rand and use k8s.io/apimachinery/pkg/util/rand
  • Loading branch information
mumoshu committed Apr 27, 2022
2 parents e4f5771 + 218d7a6 commit cc6edc1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 34 deletions.
3 changes: 2 additions & 1 deletion pkg/state/temp.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"strings"

"github.com/davecgh/go-spew/spew"
"k8s.io/apimachinery/pkg/util/rand"
)

func createTempValuesFile(release *ReleaseSpec, data interface{}) (*os.File, error) {
Expand Down Expand Up @@ -85,5 +86,5 @@ func HashObject(obj interface{}) (string, error) {

sum := fmt.Sprint(hash.Sum32())

return SafeEncodeString(sum), nil
return rand.SafeEncodeString(sum), nil
}
33 changes: 0 additions & 33 deletions pkg/state/temp_rand.go

This file was deleted.

0 comments on commit cc6edc1

Please sign in to comment.