From c687890eebd97503f157eedaa9beac1a9ab5ac53 Mon Sep 17 00:00:00 2001 From: AdamKorcz Date: Fri, 27 Nov 2020 13:57:56 +0000 Subject: [PATCH 1/6] Added fuzzer and oss-fuzz build script --- tests/fuzz/build.sh | 16 ++++++++++++++++ tests/fuzz/fuzz.go | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100755 tests/fuzz/build.sh create mode 100644 tests/fuzz/fuzz.go diff --git a/tests/fuzz/build.sh b/tests/fuzz/build.sh new file mode 100755 index 0000000000000..1876cfa5f28df --- /dev/null +++ b/tests/fuzz/build.sh @@ -0,0 +1,16 @@ +#/bin/bash -eu +# Copyright 2020 The Kubernetes Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +compile_go_fuzzer k8s.io/kops/tests/fuzz FuzzWriteToken fuzz_write_token diff --git a/tests/fuzz/fuzz.go b/tests/fuzz/fuzz.go new file mode 100644 index 0000000000000..a63367bac2c02 --- /dev/null +++ b/tests/fuzz/fuzz.go @@ -0,0 +1,36 @@ +/* +Copyright 2020 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package fuzz + +import ( + "bytes" + "encoding/json" + "k8s.io/kops/pkg/jsonutils" + "strings" +) + +func FuzzWriteToken(data []byte) int { + var buf bytes.Buffer + out := jsonutils.NewJSONStreamWriter(&buf) + in := json.NewDecoder(strings.NewReader(string(data))) + token, err := in.Token() + if err != nil { + return -1 + } + err = out.WriteToken(token) + if err != nil { + return 0 + } + return 1 +} From bea08c2c5597b434eb99bee6071d0fe132d3979d Mon Sep 17 00:00:00 2001 From: AdamKorcz Date: Fri, 27 Nov 2020 14:31:52 +0000 Subject: [PATCH 2/6] ran hack/update-header.sh --- tests/fuzz/build.sh | 3 ++- tests/fuzz/fuzz.go | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/fuzz/build.sh b/tests/fuzz/build.sh index 1876cfa5f28df..fe2ce42d2af67 100755 --- a/tests/fuzz/build.sh +++ b/tests/fuzz/build.sh @@ -1,4 +1,5 @@ -#/bin/bash -eu +#!/usr/bin/env bash + # Copyright 2020 The Kubernetes Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/fuzz/fuzz.go b/tests/fuzz/fuzz.go index a63367bac2c02..2ca9619565093 100644 --- a/tests/fuzz/fuzz.go +++ b/tests/fuzz/fuzz.go @@ -1,9 +1,12 @@ /* Copyright 2020 The Kubernetes Authors. + Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. From 4703fc7b8d0a744a42bae7dfbe686e1b23ca15ad Mon Sep 17 00:00:00 2001 From: AdamKorcz Date: Fri, 27 Nov 2020 14:41:44 +0000 Subject: [PATCH 3/6] Ran hack/update-bazel.sh --- tests/fuzz/BUILD.bazel | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/fuzz/BUILD.bazel diff --git a/tests/fuzz/BUILD.bazel b/tests/fuzz/BUILD.bazel new file mode 100644 index 0000000000000..f4845cc90c17a --- /dev/null +++ b/tests/fuzz/BUILD.bazel @@ -0,0 +1,9 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "go_default_library", + srcs = ["fuzz.go"], + importpath = "k8s.io/kops/tests/fuzz", + visibility = ["//visibility:public"], + deps = ["//pkg/jsonutils:go_default_library"], +) From 22b4cc2e9a2c17a102f3db955460103b2feaab17 Mon Sep 17 00:00:00 2001 From: AdamKorcz Date: Fri, 27 Nov 2020 14:55:34 +0000 Subject: [PATCH 4/6] Updated packages --- hack/.packages | 212 ------------------------------------------------- 1 file changed, 212 deletions(-) diff --git a/hack/.packages b/hack/.packages index 4aaa61f5b1c32..e69de29bb2d1d 100644 --- a/hack/.packages +++ b/hack/.packages @@ -1,212 +0,0 @@ -k8s.io/kops -k8s.io/kops/channels/cmd/channels -k8s.io/kops/channels/pkg/api -k8s.io/kops/channels/pkg/channels -k8s.io/kops/channels/pkg/cmd -k8s.io/kops/cloudmock/aws/mockautoscaling -k8s.io/kops/cloudmock/aws/mockec2 -k8s.io/kops/cloudmock/aws/mockelb -k8s.io/kops/cloudmock/aws/mockelbv2 -k8s.io/kops/cloudmock/aws/mockiam -k8s.io/kops/cloudmock/aws/mockroute53 -k8s.io/kops/cloudmock/openstack -k8s.io/kops/cloudmock/openstack/mockblockstorage -k8s.io/kops/cloudmock/openstack/mockcompute -k8s.io/kops/cloudmock/openstack/mockdns -k8s.io/kops/cloudmock/openstack/mockimage -k8s.io/kops/cloudmock/openstack/mockloadbalancer -k8s.io/kops/cloudmock/openstack/mocknetworking -k8s.io/kops/cmd/kops -k8s.io/kops/cmd/kops/util -k8s.io/kops/cmd/kops-controller -k8s.io/kops/cmd/kops-controller/controllers -k8s.io/kops/cmd/kops-controller/pkg/config -k8s.io/kops/cmd/kops-controller/pkg/server -k8s.io/kops/cmd/kube-apiserver-healthcheck -k8s.io/kops/cmd/nodeup -k8s.io/kops/dns-controller/cmd/dns-controller -k8s.io/kops/dns-controller/pkg/dns -k8s.io/kops/dns-controller/pkg/util -k8s.io/kops/dns-controller/pkg/watchers -k8s.io/kops/dnsprovider/pkg/dnsprovider -k8s.io/kops/dnsprovider/pkg/dnsprovider/providers/aws/route53 -k8s.io/kops/dnsprovider/pkg/dnsprovider/providers/aws/route53/stubs -k8s.io/kops/dnsprovider/pkg/dnsprovider/providers/coredns -k8s.io/kops/dnsprovider/pkg/dnsprovider/providers/coredns/stubs -k8s.io/kops/dnsprovider/pkg/dnsprovider/providers/google/clouddns -k8s.io/kops/dnsprovider/pkg/dnsprovider/providers/google/clouddns/internal -k8s.io/kops/dnsprovider/pkg/dnsprovider/providers/google/clouddns/internal/interfaces -k8s.io/kops/dnsprovider/pkg/dnsprovider/providers/google/clouddns/internal/stubs -k8s.io/kops/dnsprovider/pkg/dnsprovider/providers/openstack/designate -k8s.io/kops/dnsprovider/pkg/dnsprovider/rrstype -k8s.io/kops/dnsprovider/pkg/dnsprovider/tests -k8s.io/kops/examples/kops-api-example -k8s.io/kops/node-authorizer/cmd/node-authorizer -k8s.io/kops/node-authorizer/pkg/authorizers/alwaysallow -k8s.io/kops/node-authorizer/pkg/authorizers/aws -k8s.io/kops/node-authorizer/pkg/client -k8s.io/kops/node-authorizer/pkg/server -k8s.io/kops/node-authorizer/pkg/utils -k8s.io/kops/nodeup/pkg/bootstrap -k8s.io/kops/nodeup/pkg/model -k8s.io/kops/nodeup/pkg/model/networking -k8s.io/kops/nodeup/pkg/model/resources -k8s.io/kops/pkg/acls -k8s.io/kops/pkg/acls/gce -k8s.io/kops/pkg/acls/s3 -k8s.io/kops/pkg/apis/kops -k8s.io/kops/pkg/apis/kops/install -k8s.io/kops/pkg/apis/kops/model -k8s.io/kops/pkg/apis/kops/registry -k8s.io/kops/pkg/apis/kops/util -k8s.io/kops/pkg/apis/kops/v1alpha2 -k8s.io/kops/pkg/apis/kops/validation -k8s.io/kops/pkg/apis/nodeup -k8s.io/kops/pkg/assets -k8s.io/kops/pkg/backoff -k8s.io/kops/pkg/client/clientset_generated/clientset -k8s.io/kops/pkg/client/clientset_generated/clientset/fake -k8s.io/kops/pkg/client/clientset_generated/clientset/scheme -k8s.io/kops/pkg/client/clientset_generated/clientset/typed/kops/internalversion -k8s.io/kops/pkg/client/clientset_generated/clientset/typed/kops/internalversion/fake -k8s.io/kops/pkg/client/clientset_generated/clientset/typed/kops/v1alpha2 -k8s.io/kops/pkg/client/clientset_generated/clientset/typed/kops/v1alpha2/fake -k8s.io/kops/pkg/client/clientset_generated/internalclientset -k8s.io/kops/pkg/client/clientset_generated/internalclientset/fake -k8s.io/kops/pkg/client/clientset_generated/internalclientset/scheme -k8s.io/kops/pkg/client/clientset_generated/internalclientset/typed/kops/internalversion -k8s.io/kops/pkg/client/clientset_generated/internalclientset/typed/kops/internalversion/fake -k8s.io/kops/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha2 -k8s.io/kops/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha2/fake -k8s.io/kops/pkg/client/simple -k8s.io/kops/pkg/client/simple/api -k8s.io/kops/pkg/client/simple/vfsclientset -k8s.io/kops/pkg/cloudinstances -k8s.io/kops/pkg/clusteraddons -k8s.io/kops/pkg/commands -k8s.io/kops/pkg/commands/commandutils -k8s.io/kops/pkg/commands/helpers -k8s.io/kops/pkg/configbuilder -k8s.io/kops/pkg/diff -k8s.io/kops/pkg/dns -k8s.io/kops/pkg/dump -k8s.io/kops/pkg/edit -k8s.io/kops/pkg/featureflag -k8s.io/kops/pkg/flagbuilder -k8s.io/kops/pkg/formatter -k8s.io/kops/pkg/instancegroups -k8s.io/kops/pkg/jsonutils -k8s.io/kops/pkg/k8scodecs -k8s.io/kops/pkg/k8sversion -k8s.io/kops/pkg/kopscodecs -k8s.io/kops/pkg/kubeconfig -k8s.io/kops/pkg/kubemanifest -k8s.io/kops/pkg/model -k8s.io/kops/pkg/model/alimodel -k8s.io/kops/pkg/model/awsmodel -k8s.io/kops/pkg/model/components -k8s.io/kops/pkg/model/components/addonmanifests -k8s.io/kops/pkg/model/components/addonmanifests/dnscontroller -k8s.io/kops/pkg/model/components/etcdmanager -k8s.io/kops/pkg/model/components/kubeapiserver -k8s.io/kops/pkg/model/components/node-authorizer -k8s.io/kops/pkg/model/defaults -k8s.io/kops/pkg/model/domodel -k8s.io/kops/pkg/model/gcemodel -k8s.io/kops/pkg/model/iam -k8s.io/kops/pkg/model/openstackmodel -k8s.io/kops/pkg/model/resources -k8s.io/kops/pkg/model/spotinstmodel -k8s.io/kops/pkg/nodeidentity -k8s.io/kops/pkg/nodeidentity/aws -k8s.io/kops/pkg/nodeidentity/do -k8s.io/kops/pkg/nodeidentity/gce -k8s.io/kops/pkg/nodeidentity/openstack -k8s.io/kops/pkg/nodelabels -k8s.io/kops/pkg/pki -k8s.io/kops/pkg/pretty -k8s.io/kops/pkg/rbac -k8s.io/kops/pkg/resources -k8s.io/kops/pkg/resources/ali -k8s.io/kops/pkg/resources/aws -k8s.io/kops/pkg/resources/digitalocean -k8s.io/kops/pkg/resources/digitalocean/dns -k8s.io/kops/pkg/resources/gce -k8s.io/kops/pkg/resources/openstack -k8s.io/kops/pkg/resources/ops -k8s.io/kops/pkg/resources/spotinst -k8s.io/kops/pkg/sshcredentials -k8s.io/kops/pkg/systemd -k8s.io/kops/pkg/templates -k8s.io/kops/pkg/testutils -k8s.io/kops/pkg/testutils/golden -k8s.io/kops/pkg/tokens -k8s.io/kops/pkg/try -k8s.io/kops/pkg/urls -k8s.io/kops/pkg/util/stringorslice -k8s.io/kops/pkg/util/subnet -k8s.io/kops/pkg/util/templater -k8s.io/kops/pkg/validation -k8s.io/kops/pkg/values -k8s.io/kops/pkg/wellknownports -k8s.io/kops/pkg/wellknownusers -k8s.io/kops/protokube/cmd/protokube -k8s.io/kops/protokube/pkg/etcd -k8s.io/kops/protokube/pkg/gossip -k8s.io/kops/protokube/pkg/gossip/ali -k8s.io/kops/protokube/pkg/gossip/aws -k8s.io/kops/protokube/pkg/gossip/dns -k8s.io/kops/protokube/pkg/gossip/dns/hosts -k8s.io/kops/protokube/pkg/gossip/dns/provider -k8s.io/kops/protokube/pkg/gossip/do -k8s.io/kops/protokube/pkg/gossip/gce -k8s.io/kops/protokube/pkg/gossip/memberlist -k8s.io/kops/protokube/pkg/gossip/mesh -k8s.io/kops/protokube/pkg/gossip/openstack -k8s.io/kops/protokube/pkg/hostmount -k8s.io/kops/protokube/pkg/protokube -k8s.io/kops/protokube/tests/integration/build_etcd_manifest -k8s.io/kops/tests/codecs -k8s.io/kops/tests/integration/channel -k8s.io/kops/tests/integration/conversion -k8s.io/kops/upup/models -k8s.io/kops/upup/pkg/fi -k8s.io/kops/upup/pkg/fi/assettasks -k8s.io/kops/upup/pkg/fi/cloudup -k8s.io/kops/upup/pkg/fi/cloudup/alitasks -k8s.io/kops/upup/pkg/fi/cloudup/aliup -k8s.io/kops/upup/pkg/fi/cloudup/awstasks -k8s.io/kops/upup/pkg/fi/cloudup/awsup -k8s.io/kops/upup/pkg/fi/cloudup/cloudformation -k8s.io/kops/upup/pkg/fi/cloudup/do -k8s.io/kops/upup/pkg/fi/cloudup/dotasks -k8s.io/kops/upup/pkg/fi/cloudup/gce -k8s.io/kops/upup/pkg/fi/cloudup/gcetasks -k8s.io/kops/upup/pkg/fi/cloudup/openstack -k8s.io/kops/upup/pkg/fi/cloudup/openstacktasks -k8s.io/kops/upup/pkg/fi/cloudup/spotinsttasks -k8s.io/kops/upup/pkg/fi/cloudup/terraform -k8s.io/kops/upup/pkg/fi/fitasks -k8s.io/kops/upup/pkg/fi/loader -k8s.io/kops/upup/pkg/fi/nodeup -k8s.io/kops/upup/pkg/fi/nodeup/cloudinit -k8s.io/kops/upup/pkg/fi/nodeup/local -k8s.io/kops/upup/pkg/fi/nodeup/nodetasks -k8s.io/kops/upup/pkg/fi/secrets -k8s.io/kops/upup/pkg/fi/utils -k8s.io/kops/upup/pkg/kutil -k8s.io/kops/upup/tools/generators/fitask -k8s.io/kops/util/pkg/architectures -k8s.io/kops/util/pkg/distributions -k8s.io/kops/util/pkg/env -k8s.io/kops/util/pkg/exec -k8s.io/kops/util/pkg/hashing -k8s.io/kops/util/pkg/maps -k8s.io/kops/util/pkg/mirrors -k8s.io/kops/util/pkg/proxy -k8s.io/kops/util/pkg/reflectutils -k8s.io/kops/util/pkg/slice -k8s.io/kops/util/pkg/tables -k8s.io/kops/util/pkg/text -k8s.io/kops/util/pkg/ui -k8s.io/kops/util/pkg/vfs From efa41a80ac952e8d4c2848e5269ea94643c3b2ab Mon Sep 17 00:00:00 2001 From: AdamKorcz Date: Fri, 27 Nov 2020 15:05:49 +0000 Subject: [PATCH 5/6] Fixed packages --- hack/.packages | 213 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 213 insertions(+) diff --git a/hack/.packages b/hack/.packages index e69de29bb2d1d..e62a728b2675d 100644 --- a/hack/.packages +++ b/hack/.packages @@ -0,0 +1,213 @@ +k8s.io/kops +k8s.io/kops/channels/cmd/channels +k8s.io/kops/channels/pkg/api +k8s.io/kops/channels/pkg/channels +k8s.io/kops/channels/pkg/cmd +k8s.io/kops/cloudmock/aws/mockautoscaling +k8s.io/kops/cloudmock/aws/mockec2 +k8s.io/kops/cloudmock/aws/mockelb +k8s.io/kops/cloudmock/aws/mockelbv2 +k8s.io/kops/cloudmock/aws/mockiam +k8s.io/kops/cloudmock/aws/mockroute53 +k8s.io/kops/cloudmock/openstack +k8s.io/kops/cloudmock/openstack/mockblockstorage +k8s.io/kops/cloudmock/openstack/mockcompute +k8s.io/kops/cloudmock/openstack/mockdns +k8s.io/kops/cloudmock/openstack/mockimage +k8s.io/kops/cloudmock/openstack/mockloadbalancer +k8s.io/kops/cloudmock/openstack/mocknetworking +k8s.io/kops/cmd/kops +k8s.io/kops/cmd/kops/util +k8s.io/kops/cmd/kops-controller +k8s.io/kops/cmd/kops-controller/controllers +k8s.io/kops/cmd/kops-controller/pkg/config +k8s.io/kops/cmd/kops-controller/pkg/server +k8s.io/kops/cmd/kube-apiserver-healthcheck +k8s.io/kops/cmd/nodeup +k8s.io/kops/dns-controller/cmd/dns-controller +k8s.io/kops/dns-controller/pkg/dns +k8s.io/kops/dns-controller/pkg/util +k8s.io/kops/dns-controller/pkg/watchers +k8s.io/kops/dnsprovider/pkg/dnsprovider +k8s.io/kops/dnsprovider/pkg/dnsprovider/providers/aws/route53 +k8s.io/kops/dnsprovider/pkg/dnsprovider/providers/aws/route53/stubs +k8s.io/kops/dnsprovider/pkg/dnsprovider/providers/coredns +k8s.io/kops/dnsprovider/pkg/dnsprovider/providers/coredns/stubs +k8s.io/kops/dnsprovider/pkg/dnsprovider/providers/google/clouddns +k8s.io/kops/dnsprovider/pkg/dnsprovider/providers/google/clouddns/internal +k8s.io/kops/dnsprovider/pkg/dnsprovider/providers/google/clouddns/internal/interfaces +k8s.io/kops/dnsprovider/pkg/dnsprovider/providers/google/clouddns/internal/stubs +k8s.io/kops/dnsprovider/pkg/dnsprovider/providers/openstack/designate +k8s.io/kops/dnsprovider/pkg/dnsprovider/rrstype +k8s.io/kops/dnsprovider/pkg/dnsprovider/tests +k8s.io/kops/examples/kops-api-example +k8s.io/kops/node-authorizer/cmd/node-authorizer +k8s.io/kops/node-authorizer/pkg/authorizers/alwaysallow +k8s.io/kops/node-authorizer/pkg/authorizers/aws +k8s.io/kops/node-authorizer/pkg/client +k8s.io/kops/node-authorizer/pkg/server +k8s.io/kops/node-authorizer/pkg/utils +k8s.io/kops/nodeup/pkg/bootstrap +k8s.io/kops/nodeup/pkg/model +k8s.io/kops/nodeup/pkg/model/networking +k8s.io/kops/nodeup/pkg/model/resources +k8s.io/kops/pkg/acls +k8s.io/kops/pkg/acls/gce +k8s.io/kops/pkg/acls/s3 +k8s.io/kops/pkg/apis/kops +k8s.io/kops/pkg/apis/kops/install +k8s.io/kops/pkg/apis/kops/model +k8s.io/kops/pkg/apis/kops/registry +k8s.io/kops/pkg/apis/kops/util +k8s.io/kops/pkg/apis/kops/v1alpha2 +k8s.io/kops/pkg/apis/kops/validation +k8s.io/kops/pkg/apis/nodeup +k8s.io/kops/pkg/assets +k8s.io/kops/pkg/backoff +k8s.io/kops/pkg/client/clientset_generated/clientset +k8s.io/kops/pkg/client/clientset_generated/clientset/fake +k8s.io/kops/pkg/client/clientset_generated/clientset/scheme +k8s.io/kops/pkg/client/clientset_generated/clientset/typed/kops/internalversion +k8s.io/kops/pkg/client/clientset_generated/clientset/typed/kops/internalversion/fake +k8s.io/kops/pkg/client/clientset_generated/clientset/typed/kops/v1alpha2 +k8s.io/kops/pkg/client/clientset_generated/clientset/typed/kops/v1alpha2/fake +k8s.io/kops/pkg/client/clientset_generated/internalclientset +k8s.io/kops/pkg/client/clientset_generated/internalclientset/fake +k8s.io/kops/pkg/client/clientset_generated/internalclientset/scheme +k8s.io/kops/pkg/client/clientset_generated/internalclientset/typed/kops/internalversion +k8s.io/kops/pkg/client/clientset_generated/internalclientset/typed/kops/internalversion/fake +k8s.io/kops/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha2 +k8s.io/kops/pkg/client/clientset_generated/internalclientset/typed/kops/v1alpha2/fake +k8s.io/kops/pkg/client/simple +k8s.io/kops/pkg/client/simple/api +k8s.io/kops/pkg/client/simple/vfsclientset +k8s.io/kops/pkg/cloudinstances +k8s.io/kops/pkg/clusteraddons +k8s.io/kops/pkg/commands +k8s.io/kops/pkg/commands/commandutils +k8s.io/kops/pkg/commands/helpers +k8s.io/kops/pkg/configbuilder +k8s.io/kops/pkg/diff +k8s.io/kops/pkg/dns +k8s.io/kops/pkg/dump +k8s.io/kops/pkg/edit +k8s.io/kops/pkg/featureflag +k8s.io/kops/pkg/flagbuilder +k8s.io/kops/pkg/formatter +k8s.io/kops/pkg/instancegroups +k8s.io/kops/pkg/jsonutils +k8s.io/kops/pkg/k8scodecs +k8s.io/kops/pkg/k8sversion +k8s.io/kops/pkg/kopscodecs +k8s.io/kops/pkg/kubeconfig +k8s.io/kops/pkg/kubemanifest +k8s.io/kops/pkg/model +k8s.io/kops/pkg/model/alimodel +k8s.io/kops/pkg/model/awsmodel +k8s.io/kops/pkg/model/components +k8s.io/kops/pkg/model/components/addonmanifests +k8s.io/kops/pkg/model/components/addonmanifests/dnscontroller +k8s.io/kops/pkg/model/components/etcdmanager +k8s.io/kops/pkg/model/components/kubeapiserver +k8s.io/kops/pkg/model/components/node-authorizer +k8s.io/kops/pkg/model/defaults +k8s.io/kops/pkg/model/domodel +k8s.io/kops/pkg/model/gcemodel +k8s.io/kops/pkg/model/iam +k8s.io/kops/pkg/model/openstackmodel +k8s.io/kops/pkg/model/resources +k8s.io/kops/pkg/model/spotinstmodel +k8s.io/kops/pkg/nodeidentity +k8s.io/kops/pkg/nodeidentity/aws +k8s.io/kops/pkg/nodeidentity/do +k8s.io/kops/pkg/nodeidentity/gce +k8s.io/kops/pkg/nodeidentity/openstack +k8s.io/kops/pkg/nodelabels +k8s.io/kops/pkg/pki +k8s.io/kops/pkg/pretty +k8s.io/kops/pkg/rbac +k8s.io/kops/pkg/resources +k8s.io/kops/pkg/resources/ali +k8s.io/kops/pkg/resources/aws +k8s.io/kops/pkg/resources/digitalocean +k8s.io/kops/pkg/resources/digitalocean/dns +k8s.io/kops/pkg/resources/gce +k8s.io/kops/pkg/resources/openstack +k8s.io/kops/pkg/resources/ops +k8s.io/kops/pkg/resources/spotinst +k8s.io/kops/pkg/sshcredentials +k8s.io/kops/pkg/systemd +k8s.io/kops/pkg/templates +k8s.io/kops/pkg/testutils +k8s.io/kops/pkg/testutils/golden +k8s.io/kops/pkg/tokens +k8s.io/kops/pkg/try +k8s.io/kops/pkg/urls +k8s.io/kops/pkg/util/stringorslice +k8s.io/kops/pkg/util/subnet +k8s.io/kops/pkg/util/templater +k8s.io/kops/pkg/validation +k8s.io/kops/pkg/values +k8s.io/kops/pkg/wellknownports +k8s.io/kops/pkg/wellknownusers +k8s.io/kops/protokube/cmd/protokube +k8s.io/kops/protokube/pkg/etcd +k8s.io/kops/protokube/pkg/gossip +k8s.io/kops/protokube/pkg/gossip/ali +k8s.io/kops/protokube/pkg/gossip/aws +k8s.io/kops/protokube/pkg/gossip/dns +k8s.io/kops/protokube/pkg/gossip/dns/hosts +k8s.io/kops/protokube/pkg/gossip/dns/provider +k8s.io/kops/protokube/pkg/gossip/do +k8s.io/kops/protokube/pkg/gossip/gce +k8s.io/kops/protokube/pkg/gossip/memberlist +k8s.io/kops/protokube/pkg/gossip/mesh +k8s.io/kops/protokube/pkg/gossip/openstack +k8s.io/kops/protokube/pkg/hostmount +k8s.io/kops/protokube/pkg/protokube +k8s.io/kops/protokube/tests/integration/build_etcd_manifest +k8s.io/kops/tests/codecs +k8s.io/kops/tests/fuzz +k8s.io/kops/tests/integration/channel +k8s.io/kops/tests/integration/conversion +k8s.io/kops/upup/models +k8s.io/kops/upup/pkg/fi +k8s.io/kops/upup/pkg/fi/assettasks +k8s.io/kops/upup/pkg/fi/cloudup +k8s.io/kops/upup/pkg/fi/cloudup/alitasks +k8s.io/kops/upup/pkg/fi/cloudup/aliup +k8s.io/kops/upup/pkg/fi/cloudup/awstasks +k8s.io/kops/upup/pkg/fi/cloudup/awsup +k8s.io/kops/upup/pkg/fi/cloudup/cloudformation +k8s.io/kops/upup/pkg/fi/cloudup/do +k8s.io/kops/upup/pkg/fi/cloudup/dotasks +k8s.io/kops/upup/pkg/fi/cloudup/gce +k8s.io/kops/upup/pkg/fi/cloudup/gcetasks +k8s.io/kops/upup/pkg/fi/cloudup/openstack +k8s.io/kops/upup/pkg/fi/cloudup/openstacktasks +k8s.io/kops/upup/pkg/fi/cloudup/spotinsttasks +k8s.io/kops/upup/pkg/fi/cloudup/terraform +k8s.io/kops/upup/pkg/fi/fitasks +k8s.io/kops/upup/pkg/fi/loader +k8s.io/kops/upup/pkg/fi/nodeup +k8s.io/kops/upup/pkg/fi/nodeup/cloudinit +k8s.io/kops/upup/pkg/fi/nodeup/local +k8s.io/kops/upup/pkg/fi/nodeup/nodetasks +k8s.io/kops/upup/pkg/fi/secrets +k8s.io/kops/upup/pkg/fi/utils +k8s.io/kops/upup/pkg/kutil +k8s.io/kops/upup/tools/generators/fitask +k8s.io/kops/util/pkg/architectures +k8s.io/kops/util/pkg/distributions +k8s.io/kops/util/pkg/env +k8s.io/kops/util/pkg/exec +k8s.io/kops/util/pkg/hashing +k8s.io/kops/util/pkg/maps +k8s.io/kops/util/pkg/mirrors +k8s.io/kops/util/pkg/proxy +k8s.io/kops/util/pkg/reflectutils +k8s.io/kops/util/pkg/slice +k8s.io/kops/util/pkg/tables +k8s.io/kops/util/pkg/text +k8s.io/kops/util/pkg/ui +k8s.io/kops/util/pkg/vfs From f064b3af3b9e2c425452d0401f38de44119524ab Mon Sep 17 00:00:00 2001 From: AdamKorcz Date: Fri, 27 Nov 2020 15:14:41 +0000 Subject: [PATCH 6/6] Ran goimports --- tests/fuzz/fuzz.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/fuzz/fuzz.go b/tests/fuzz/fuzz.go index 2ca9619565093..74d29f69d1815 100644 --- a/tests/fuzz/fuzz.go +++ b/tests/fuzz/fuzz.go @@ -19,8 +19,9 @@ package fuzz import ( "bytes" "encoding/json" - "k8s.io/kops/pkg/jsonutils" "strings" + + "k8s.io/kops/pkg/jsonutils" ) func FuzzWriteToken(data []byte) int {