|
|
|
@ -18,6 +18,7 @@ package driver // import "helm.sh/helm/v3/pkg/storage/driver"
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
|
|
|
|
"fmt"
|
|
|
|
|
"strconv"
|
|
|
|
|
"strings"
|
|
|
|
|
"time"
|
|
|
|
@ -151,7 +152,7 @@ func (secrets *Secrets) Create(key string, rls *rspb.Release) error {
|
|
|
|
|
|
|
|
|
|
lbs.init()
|
|
|
|
|
lbs.fromMap(rls.Labels)
|
|
|
|
|
lbs.set("createdAt", strconv.Itoa(int(time.Now().Unix())))
|
|
|
|
|
lbs.set("createdAt", fmt.Sprintf("%v", time.Now().Unix()))
|
|
|
|
|
|
|
|
|
|
// create a new secret to hold the release
|
|
|
|
|
obj, err := newSecretsObject(key, rls, lbs)
|
|
|
|
@ -177,7 +178,7 @@ func (secrets *Secrets) Update(key string, rls *rspb.Release) error {
|
|
|
|
|
|
|
|
|
|
lbs.init()
|
|
|
|
|
lbs.fromMap(rls.Labels)
|
|
|
|
|
lbs.set("modifiedAt", strconv.FormatInt(time.Now().Unix(), 10))
|
|
|
|
|
lbs.set("modifiedAt", fmt.Sprintf("%v", time.Now().Unix()))
|
|
|
|
|
|
|
|
|
|
// create a new secret object to hold the release
|
|
|
|
|
obj, err := newSecretsObject(key, rls, lbs)
|
|
|
|
|