Skip to content

Commit

Permalink
Switch to non-deprecated timestamppb.Now()
Browse files Browse the repository at this point in the history
(cherry picked from commit ff2c614)

[kolyshkin: run ./hack/update-vendor.sh]
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
  • Loading branch information
liggitt authored and kolyshkin committed Aug 23, 2021
1 parent cb2ee55 commit 510f4b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ require (
google.golang.org/api v0.20.0
google.golang.org/appengine v1.6.5 // indirect
google.golang.org/grpc v1.27.1
google.golang.org/protobuf v1.25.0
gopkg.in/gcfg.v1 v1.2.0
gopkg.in/square/go-jose.v2 v2.2.2
gopkg.in/yaml.v2 v2.4.0
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/storage/drivers/csi-test/mock/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"google.golang.org/grpc/codes"
"k8s.io/kubernetes/test/e2e/storage/drivers/csi-test/mock/cache"

"github.com/golang/protobuf/ptypes"
"google.golang.org/protobuf/types/known/timestamppb"
)

const (
Expand Down Expand Up @@ -247,7 +247,7 @@ func (s *service) findVolByID(

func (s *service) newSnapshot(name, sourceVolumeId string, parameters map[string]string) cache.Snapshot {

ptime := ptypes.TimestampNow()
ptime := timestamppb.Now()
return cache.Snapshot{
Name: name,
Parameters: parameters,
Expand Down
1 change: 1 addition & 0 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1496,6 +1496,7 @@ google.golang.org/grpc/stats
google.golang.org/grpc/status
google.golang.org/grpc/tap
# google.golang.org/protobuf v1.25.0 => google.golang.org/protobuf v1.25.0
## explicit
# google.golang.org/protobuf => google.golang.org/protobuf v1.25.0
google.golang.org/protobuf/encoding/protojson
google.golang.org/protobuf/encoding/prototext
Expand Down

0 comments on commit 510f4b8

Please sign in to comment.