mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 09:49:50 +00:00
Switch to non-deprecated timestamppb.Now()
This commit is contained in:
parent
1134456c89
commit
ff2c614245
@ -28,7 +28,7 @@ import (
|
|||||||
"google.golang.org/grpc/codes"
|
"google.golang.org/grpc/codes"
|
||||||
"k8s.io/kubernetes/test/e2e/storage/drivers/csi-test/mock/cache"
|
"k8s.io/kubernetes/test/e2e/storage/drivers/csi-test/mock/cache"
|
||||||
|
|
||||||
"github.com/golang/protobuf/ptypes"
|
"google.golang.org/protobuf/types/known/timestamppb"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@ -247,7 +247,7 @@ func (s *service) findVolByID(
|
|||||||
|
|
||||||
func (s *service) newSnapshot(name, sourceVolumeId string, parameters map[string]string) cache.Snapshot {
|
func (s *service) newSnapshot(name, sourceVolumeId string, parameters map[string]string) cache.Snapshot {
|
||||||
|
|
||||||
ptime := ptypes.TimestampNow()
|
ptime := timestamppb.Now()
|
||||||
return cache.Snapshot{
|
return cache.Snapshot{
|
||||||
Name: name,
|
Name: name,
|
||||||
Parameters: parameters,
|
Parameters: parameters,
|
||||||
|
Loading…
Reference in New Issue
Block a user