Skip to content

Commit

Permalink
adding 3764 will back out
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislovecnm committed Nov 4, 2017
1 parent db6178f commit 8133d21
Show file tree
Hide file tree
Showing 170 changed files with 588 additions and 175 deletions.
3 changes: 2 additions & 1 deletion channels/cmd/channels/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ package main

import (
"fmt"
"k8s.io/kops/channels/pkg/cmd"
"os"

"k8s.io/kops/channels/pkg/cmd"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion channels/pkg/channels/addon.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ package channels

import (
"fmt"
"net/url"

"github.com/golang/glog"
"k8s.io/apimachinery/pkg/util/validation/field"
"k8s.io/client-go/kubernetes"
"k8s.io/kops/channels/pkg/api"
"net/url"
)

// Addon is a wrapper around a single version of an addon
Expand Down
5 changes: 3 additions & 2 deletions channels/pkg/channels/addons.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ package channels

import (
"fmt"
"net/url"
"strings"

"github.com/blang/semver"
"github.com/golang/glog"
"k8s.io/kops/channels/pkg/api"
"k8s.io/kops/upup/pkg/fi/utils"
"k8s.io/kops/util/pkg/vfs"
"net/url"
"strings"
)

type Addons struct {
Expand Down
3 changes: 2 additions & 1 deletion channels/pkg/channels/addons_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ limitations under the License.
package channels

import (
"testing"

"github.com/blang/semver"
"k8s.io/kops/channels/pkg/api"
"testing"
)

func Test_Filtering(t *testing.T) {
Expand Down
5 changes: 3 additions & 2 deletions channels/pkg/channels/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ package channels

import (
"fmt"
"github.com/golang/glog"
"io/ioutil"
"k8s.io/kops/util/pkg/vfs"
"os"
"os/exec"
"path"
"strings"

"github.com/golang/glog"
"k8s.io/kops/util/pkg/vfs"
)

// Apply calls kubectl apply to apply the manifest.
Expand Down
3 changes: 2 additions & 1 deletion channels/pkg/channels/channel_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ package channels
import (
"encoding/json"
"fmt"
"strings"

"github.com/blang/semver"
"github.com/golang/glog"
"k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
"k8s.io/client-go/kubernetes"
"strings"
)

const AnnotationPrefix = "addons.k8s.io/"
Expand Down
3 changes: 2 additions & 1 deletion channels/pkg/cmd/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ limitations under the License.
package cmd

import (
"github.com/spf13/cobra"
"io"

"github.com/spf13/cobra"
)

func NewCmdApply(f Factory, out io.Writer) *cobra.Command {
Expand Down
9 changes: 5 additions & 4 deletions channels/pkg/cmd/apply_channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@ package cmd

import (
"fmt"
"github.com/blang/semver"
"github.com/spf13/cobra"
"io"
"k8s.io/kops/channels/pkg/channels"
"k8s.io/kops/util/pkg/tables"
"net/url"
"os"
"strings"

"github.com/blang/semver"
"github.com/spf13/cobra"
"k8s.io/kops/channels/pkg/channels"
"k8s.io/kops/util/pkg/tables"
)

type ApplyChannelOptions struct {
Expand Down
3 changes: 2 additions & 1 deletion channels/pkg/cmd/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ limitations under the License.
package cmd

import (
"github.com/spf13/cobra"
"io"

"github.com/spf13/cobra"
)

func NewCmdGet(f Factory, out io.Writer) *cobra.Command {
Expand Down
5 changes: 3 additions & 2 deletions channels/pkg/cmd/get_addons.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@ package cmd

import (
"fmt"
"github.com/spf13/cobra"
"io"
"os"

"github.com/spf13/cobra"
"k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/kops/channels/pkg/channels"
"k8s.io/kops/util/pkg/tables"
"os"
)

type GetAddonsOptions struct {
Expand Down
3 changes: 2 additions & 1 deletion channels/pkg/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ import (
goflag "flag"
"fmt"

"io"

"github.com/spf13/cobra"
"github.com/spf13/viper"
"io"
)

type CmdRootOptions struct {
Expand Down
3 changes: 2 additions & 1 deletion cloudmock/aws/mockec2/address.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ package mockec2
import (
"encoding/binary"
"fmt"
"net"

"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/golang/glog"
"net"
)

func (m *MockEC2) AllocateAddressRequest(*ec2.AllocateAddressInput) (*request.Request, *ec2.AllocateAddressOutput) {
Expand Down
3 changes: 2 additions & 1 deletion cloudmock/aws/mockec2/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ package mockec2

import (
"fmt"
"strings"

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/golang/glog"
"strings"
)

func (m *MockEC2) DescribeImageAttributeRequest(*ec2.DescribeImageAttributeInput) (*request.Request, *ec2.DescribeImageAttributeOutput) {
Expand Down
1 change: 1 addition & 0 deletions cloudmock/aws/mockec2/keypairs.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package mockec2

import (
"fmt"

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/ec2"
Expand Down
3 changes: 2 additions & 1 deletion cloudmock/aws/mockec2/securitygroups.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ package mockec2

import (
"fmt"
"strings"

"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/golang/glog"
"strings"
)

func (m *MockEC2) CreateSecurityGroupRequest(*ec2.CreateSecurityGroupInput) (*request.Request, *ec2.CreateSecurityGroupOutput) {
Expand Down
3 changes: 2 additions & 1 deletion cloudmock/aws/mockec2/volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ package mockec2

import (
"fmt"
"strings"

"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/golang/glog"
"strings"
)

func (m *MockEC2) DescribeVolumeAttributeRequest(*ec2.DescribeVolumeAttributeInput) (*request.Request, *ec2.DescribeVolumeAttributeOutput) {
Expand Down
3 changes: 2 additions & 1 deletion cloudmock/aws/mockec2/vpcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ package mockec2

import (
"fmt"
"strings"

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/golang/glog"
"strings"
)

type vpcInfo struct {
Expand Down
3 changes: 2 additions & 1 deletion cloudmock/aws/mockroute53/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ limitations under the License.
package mockroute53

import (
"strings"

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/route53"
"github.com/aws/aws-sdk-go/service/route53/route53iface"
"strings"
)

type zoneInfo struct {
Expand Down
1 change: 1 addition & 0 deletions cloudmock/aws/mockroute53/records.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package mockroute53

import (
"fmt"

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/route53"
Expand Down
1 change: 1 addition & 0 deletions cloudmock/aws/mockroute53/zones.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package mockroute53

import (
"fmt"

"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/route53"
"github.com/golang/glog"
Expand Down
5 changes: 3 additions & 2 deletions cmd/kops-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ import (
"os"
"runtime"

"math/rand"
"time"

"github.com/golang/glog"
"k8s.io/apiserver/pkg/util/logs"
"k8s.io/kops/pkg/apiserver/cmd/server"
"math/rand"
"time"
)

func main() {
Expand Down
1 change: 1 addition & 0 deletions cmd/kops/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"io"

"bytes"

"github.com/golang/glog"
"github.com/spf13/cobra"
"k8s.io/apimachinery/pkg/runtime/schema"
Expand Down
1 change: 1 addition & 0 deletions cmd/kops/status_discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package main

import (
"fmt"

"github.com/aws/aws-sdk-go/aws"
"k8s.io/kops/pkg/apis/kops"
"k8s.io/kops/upup/pkg/fi/cloudup"
Expand Down
3 changes: 2 additions & 1 deletion dns-controller/pkg/dns/zonespec.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ package dns

import (
"fmt"
"strings"

"github.com/golang/glog"
"k8s.io/kubernetes/federation/pkg/dnsprovider"
"strings"
)

type ZoneSpec struct {
Expand Down
3 changes: 2 additions & 1 deletion examples/kops-api-example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ package main
import (
"flag"
"fmt"
"k8s.io/kops/util/pkg/vfs"
"os"
"strings"

"k8s.io/kops/util/pkg/vfs"
)

// registryBase is the base path where state files are kept (the state store)
Expand Down
1 change: 1 addition & 0 deletions examples/kops-api-example/up.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package main
import (
"fmt"
"io/ioutil"

api "k8s.io/kops/pkg/apis/kops"
"k8s.io/kops/pkg/client/simple/vfsclientset"
"k8s.io/kops/upup/pkg/fi"
Expand Down
1 change: 1 addition & 0 deletions federation/federation_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package federation

import (
"fmt"

"github.com/golang/glog"
"k8s.io/api/core/v1"
k8sapiv1 "k8s.io/api/core/v1"
Expand Down
1 change: 1 addition & 0 deletions federation/federation_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package federation

import (
"fmt"

"github.com/golang/glog"
"k8s.io/api/core/v1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
Expand Down
1 change: 1 addition & 0 deletions federation/federation_namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package federation

import (
"fmt"

"github.com/golang/glog"
"k8s.io/api/core/v1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
Expand Down
1 change: 1 addition & 0 deletions federation/targets/kubernetestarget/kubernetestarget.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package kubernetestarget

import (
"fmt"

"k8s.io/client-go/kubernetes"
kopsapi "k8s.io/kops/pkg/apis/kops"
"k8s.io/kops/pkg/client/simple"
Expand Down
1 change: 1 addition & 0 deletions federation/tasks/kubernetesresource.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package tasks

import (
"fmt"

"k8s.io/apimachinery/pkg/util/validation/field"
"k8s.io/kops/federation/targets/kubernetestarget"
"k8s.io/kops/upup/pkg/fi"
Expand Down
3 changes: 2 additions & 1 deletion nodeup/pkg/distros/identify.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ package distros

import (
"fmt"
"github.com/golang/glog"
"io/ioutil"
"os"
"path"
"strings"

"github.com/golang/glog"
)

// FindDistribution identifies the distribution on which we are running
Expand Down
5 changes: 3 additions & 2 deletions nodeup/pkg/model/docker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ limitations under the License.
package model

import (
"path"
"testing"

"k8s.io/kops/pkg/apis/kops"
"k8s.io/kops/pkg/flagbuilder"
"k8s.io/kops/upup/pkg/fi"
"path"
"testing"
)

func TestDockerBuilder_Simple(t *testing.T) {
Expand Down
Loading

0 comments on commit 8133d21

Please sign in to comment.