Skip to content

Commit

Permalink
housekeeping: Update k8s.io/utils digest to 3b25d92 (#2751)
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored Aug 4, 2023
1 parent 66eb2ad commit 955d6b1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion backend/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ require (
k8s.io/apimachinery v0.27.3
k8s.io/client-go v0.27.3
k8s.io/metrics v0.27.3
k8s.io/utils v0.0.0-20230711102312-30195339c3c7
k8s.io/utils v0.0.0-20230726121419-3b25d923346b
)

require (
Expand Down
4 changes: 2 additions & 2 deletions backend/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions backend/service/k8s/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/utils/pointer"
"k8s.io/utils/ptr"

k8sapiv1 "github.com/lyft/clutch/backend/api/k8s/v1"
)
Expand Down Expand Up @@ -43,7 +43,7 @@ func (s *svc) GetPodLogs(ctx context.Context, clientset, cluster, namespace, nam
return nil, err
}

k8sOpts.LimitBytes = pointer.Int64(limitBytes)
k8sOpts.LimitBytes = ptr.To(int64(limitBytes))
req := cs.CoreV1().Pods(cs.Namespace()).GetLogs(name, k8sOpts)
if req == nil {
return nil, fmt.Errorf("an unknown error occurred when constructing the GetLogs request")
Expand Down Expand Up @@ -112,7 +112,7 @@ func protoOptsToK8sOpts(in *k8sapiv1.PodLogsOptions) (*v1.PodLogOptions, error)
ret.Previous = in.Previous

if in.TailNumLines != 0 {
ret.TailLines = pointer.Int64(in.TailNumLines)
ret.TailLines = ptr.To(in.TailNumLines)
}
if in.SinceTs != "" {
ts, err := time.Parse(rfc3339NanoFixed, in.SinceTs)
Expand Down

0 comments on commit 955d6b1

Please sign in to comment.