Skip to content

Commit

Permalink
Replace deprecated x/net/context with context
Browse files Browse the repository at this point in the history
It's not x-perimental any more!
  • Loading branch information
justinsb committed Apr 9, 2020
1 parent 17d31ee commit c987b8a
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"encoding/json"
"fmt"
"hash/fnv"
"context"

etcdc "github.com/coreos/etcd/client"
dnsmsg "github.com/miekg/coredns/middleware/etcd/msg"
Expand Down
2 changes: 1 addition & 1 deletion dnsprovider/pkg/dnsprovider/providers/coredns/rrsets.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import (
"encoding/json"
"fmt"
"net"
"context"

etcdc "github.com/coreos/etcd/client"
dnsmsg "github.com/miekg/coredns/middleware/etcd/msg"
"golang.org/x/net/context"
"k8s.io/klog"
"k8s.io/kops/dnsprovider/pkg/dnsprovider"
"k8s.io/kops/dnsprovider/pkg/dnsprovider/rrstype"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ package stubs

import (
"strings"
"context"

etcd "github.com/coreos/etcd/client"
"golang.org/x/net/context"
)

// Compile time check for interface conformance
Expand Down
4 changes: 2 additions & 2 deletions protokube/pkg/protokube/gce_volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import (
"net"
"os"
"strings"

"context"

"cloud.google.com/go/compute/metadata"
"golang.org/x/net/context"
compute "google.golang.org/api/compute/v0.beta"
"k8s.io/klog"
"k8s.io/kops/protokube/pkg/etcd"
Expand Down
4 changes: 2 additions & 2 deletions upup/pkg/fi/assettasks/docker_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ package assettasks

import (
"fmt"

"context"

"github.com/docker/engine-api/client"
"github.com/docker/engine-api/types"
"golang.org/x/net/context"
"k8s.io/klog"
)

Expand Down
4 changes: 2 additions & 2 deletions upup/pkg/fi/cloudup/gce/gce_cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (
"os"
"os/exec"
"strings"

"golang.org/x/net/context"
"context"

"golang.org/x/oauth2/google"
compute "google.golang.org/api/compute/v0.beta"
"google.golang.org/api/dns/v1"
Expand Down
2 changes: 1 addition & 1 deletion upup/pkg/fi/cloudup/gce/instancegroups.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"fmt"
"hash/fnv"
"strings"
"context"

context "golang.org/x/net/context"
compute "google.golang.org/api/compute/v0.beta"
v1 "k8s.io/api/core/v1"
"k8s.io/klog"
Expand Down
4 changes: 2 additions & 2 deletions upup/pkg/fi/cloudup/gce/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"encoding/binary"
"fmt"
"net"

context "golang.org/x/net/context"
"context"

compute "google.golang.org/api/compute/v0.beta"
"k8s.io/klog"
"k8s.io/kops/pkg/apis/kops"
Expand Down
4 changes: 2 additions & 2 deletions upup/pkg/fi/cloudup/gce/wrappers.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ package gce

import (
"fmt"

context "golang.org/x/net/context"
"context"

compute "google.golang.org/api/compute/v0.beta"
"k8s.io/klog"
)
Expand Down
2 changes: 1 addition & 1 deletion util/pkg/vfs/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ import (
"strings"
"sync"
"time"
"context"

"github.com/denverdino/aliyungo/oss"
"github.com/gophercloud/gophercloud"
"golang.org/x/net/context"
"google.golang.org/api/option"
storage "google.golang.org/api/storage/v1"
"k8s.io/apimachinery/pkg/util/wait"
Expand Down
4 changes: 2 additions & 2 deletions util/pkg/vfs/gsfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (
"strings"
"sync"
"time"

"golang.org/x/net/context"
"context"

"google.golang.org/api/googleapi"
storage "google.golang.org/api/storage/v1"
"k8s.io/apimachinery/pkg/util/wait"
Expand Down

0 comments on commit c987b8a

Please sign in to comment.