From fe73ff7b993ec51603b7ba5fd90495716b95f952 Mon Sep 17 00:00:00 2001 From: Phillip Wittrock Date: Sun, 7 Mar 2021 08:40:34 -0800 Subject: [PATCH] Add `kubebuilder alpha config-gen` subcommand - Add the alpha subcommand - Add config-gen as an alpha subcommand config-gen includes controller-gen as a library, and generates configuration for kubebuilder projects. --- doc.go | 21 + go.mod | 11 +- go.sum | 561 +++++++++++++++++- pkg/cli/alpha.go | 52 ++ pkg/cli/alpha/config-gen/README.md | 41 ++ .../config-gen/cert-generation-filter.go | 164 +++++ .../alpha/config-gen/cert-manager-patches.go | 39 ++ pkg/cli/alpha/config-gen/cmd.go | 299 ++++++++++ pkg/cli/alpha/config-gen/component-filter.go | 59 ++ pkg/cli/alpha/config-gen/configgen_test.go | 33 ++ .../alpha/config-gen/controller-gen-filter.go | 97 +++ .../config-gen/controller-manager-patches.go | 39 ++ pkg/cli/alpha/config-gen/crd-patches.go | 40 ++ .../examples/advancedextension/README.md | 69 +++ .../advancedextension/kustomization.yaml | 24 + .../examples/advancedextension/main.go | 66 +++ .../examples/basicextension/README.md | 62 ++ .../basicextension/kustomization.yaml | 22 + .../examples/basicextension/main.go | 60 ++ .../examples/kustomize/Kustomization.yaml | 22 + .../config-gen/examples/kustomize/README.md | 40 ++ .../config-gen/examples/standalone/README.md | 40 ++ .../standalone/kubebuilderproject.yaml | 9 + .../config-gen/examples/standalone/patch.yaml | 7 + pkg/cli/alpha/config-gen/sort-filter.go | 65 ++ .../cert-manager/annotation.template.yaml | 5 + .../01-auth-proxy.template.yaml | 20 + .../02-webhooks.template.yaml | 20 + .../99-component.template.yaml | 17 + .../patches/crd/conversion.template.yaml | 17 + .../resources/auth-proxy-rbac.template.yaml | 29 + .../resources/cert-manager.template.yaml | 28 + .../resources/component.template.yaml | 12 + .../controller-manager.template.yaml | 66 +++ .../development-webhook-secret.template.yaml | 11 + .../resources/namespace.template.yaml | 6 + .../resources/prometheus.template.yaml | 17 + .../templates/resources/rbac.template.yaml | 60 ++ .../testdata/componentconfig/config.yaml | 13 + .../controller_manager_config.yaml | 9 + .../testdata/componentconfig/expected.yaml | 325 ++++++++++ .../config-gen/testdata/default/config.yaml | 10 + .../config-gen/testdata/default/expected.yaml | 299 ++++++++++ .../testdata/disableauthproxy/config.yaml | 12 + .../testdata/disableauthproxy/expected.yaml | 246 ++++++++ pkg/cli/alpha/config-gen/testdata/doc.go | 27 + .../testdata/enablecertmanager/config.yaml | 15 + .../testdata/enablecertmanager/expected.yaml | 352 +++++++++++ .../enableconversionwebhooks/config.yaml | 15 + .../enableconversionwebhooks/expected.yaml | 335 +++++++++++ .../testdata/enableprometheus/config.yaml | 13 + .../testdata/enableprometheus/expected.yaml | 314 ++++++++++ .../testdata/enablewebhooks/config.yaml | 13 + .../testdata/enablewebhooks/expected.yaml | 326 ++++++++++ .../project/api/v1alpha1/foo_types.go | 63 ++ .../project/api/v1alpha1/groupversion_info.go | 36 ++ .../api/v1alpha1/zz_generated.deepcopy.go | 114 ++++ .../testdata/project/api/v1beta1/bar_types.go | 63 ++ .../project/api/v1beta1/groupversion_info.go | 36 ++ .../api/v1beta1/zz_generated.deepcopy.go | 114 ++++ .../project/controllers/bar_controller.go | 31 + .../project/controllers/foo_controller.go | 31 + pkg/cli/alpha/config-gen/types.go | 230 +++++++ pkg/cli/cli.go | 3 + pkg/cli/internal/config/config.go | 2 +- pkg/cli/internal/config/config_suite_test.go | 2 +- pkg/cli/internal/config/config_test.go | 2 +- pkged.go | 12 + 68 files changed, 5300 insertions(+), 13 deletions(-) create mode 100644 doc.go create mode 100644 pkg/cli/alpha.go create mode 100644 pkg/cli/alpha/config-gen/README.md create mode 100644 pkg/cli/alpha/config-gen/cert-generation-filter.go create mode 100644 pkg/cli/alpha/config-gen/cert-manager-patches.go create mode 100644 pkg/cli/alpha/config-gen/cmd.go create mode 100644 pkg/cli/alpha/config-gen/component-filter.go create mode 100644 pkg/cli/alpha/config-gen/configgen_test.go create mode 100644 pkg/cli/alpha/config-gen/controller-gen-filter.go create mode 100644 pkg/cli/alpha/config-gen/controller-manager-patches.go create mode 100644 pkg/cli/alpha/config-gen/crd-patches.go create mode 100644 pkg/cli/alpha/config-gen/examples/advancedextension/README.md create mode 100644 pkg/cli/alpha/config-gen/examples/advancedextension/kustomization.yaml create mode 100644 pkg/cli/alpha/config-gen/examples/advancedextension/main.go create mode 100644 pkg/cli/alpha/config-gen/examples/basicextension/README.md create mode 100644 pkg/cli/alpha/config-gen/examples/basicextension/kustomization.yaml create mode 100644 pkg/cli/alpha/config-gen/examples/basicextension/main.go create mode 100644 pkg/cli/alpha/config-gen/examples/kustomize/Kustomization.yaml create mode 100644 pkg/cli/alpha/config-gen/examples/kustomize/README.md create mode 100644 pkg/cli/alpha/config-gen/examples/standalone/README.md create mode 100644 pkg/cli/alpha/config-gen/examples/standalone/kubebuilderproject.yaml create mode 100644 pkg/cli/alpha/config-gen/examples/standalone/patch.yaml create mode 100644 pkg/cli/alpha/config-gen/sort-filter.go create mode 100644 pkg/cli/alpha/config-gen/templates/patches/cert-manager/annotation.template.yaml create mode 100644 pkg/cli/alpha/config-gen/templates/patches/controller-manager/01-auth-proxy.template.yaml create mode 100644 pkg/cli/alpha/config-gen/templates/patches/controller-manager/02-webhooks.template.yaml create mode 100644 pkg/cli/alpha/config-gen/templates/patches/controller-manager/99-component.template.yaml create mode 100644 pkg/cli/alpha/config-gen/templates/patches/crd/conversion.template.yaml create mode 100644 pkg/cli/alpha/config-gen/templates/resources/auth-proxy-rbac.template.yaml create mode 100644 pkg/cli/alpha/config-gen/templates/resources/cert-manager.template.yaml create mode 100644 pkg/cli/alpha/config-gen/templates/resources/component.template.yaml create mode 100644 pkg/cli/alpha/config-gen/templates/resources/controller-manager.template.yaml create mode 100644 pkg/cli/alpha/config-gen/templates/resources/development-webhook-secret.template.yaml create mode 100644 pkg/cli/alpha/config-gen/templates/resources/namespace.template.yaml create mode 100644 pkg/cli/alpha/config-gen/templates/resources/prometheus.template.yaml create mode 100644 pkg/cli/alpha/config-gen/templates/resources/rbac.template.yaml create mode 100644 pkg/cli/alpha/config-gen/testdata/componentconfig/config.yaml create mode 100644 pkg/cli/alpha/config-gen/testdata/componentconfig/controller_manager_config.yaml create mode 100644 pkg/cli/alpha/config-gen/testdata/componentconfig/expected.yaml create mode 100644 pkg/cli/alpha/config-gen/testdata/default/config.yaml create mode 100644 pkg/cli/alpha/config-gen/testdata/default/expected.yaml create mode 100644 pkg/cli/alpha/config-gen/testdata/disableauthproxy/config.yaml create mode 100644 pkg/cli/alpha/config-gen/testdata/disableauthproxy/expected.yaml create mode 100644 pkg/cli/alpha/config-gen/testdata/doc.go create mode 100644 pkg/cli/alpha/config-gen/testdata/enablecertmanager/config.yaml create mode 100644 pkg/cli/alpha/config-gen/testdata/enablecertmanager/expected.yaml create mode 100644 pkg/cli/alpha/config-gen/testdata/enableconversionwebhooks/config.yaml create mode 100644 pkg/cli/alpha/config-gen/testdata/enableconversionwebhooks/expected.yaml create mode 100644 pkg/cli/alpha/config-gen/testdata/enableprometheus/config.yaml create mode 100644 pkg/cli/alpha/config-gen/testdata/enableprometheus/expected.yaml create mode 100644 pkg/cli/alpha/config-gen/testdata/enablewebhooks/config.yaml create mode 100644 pkg/cli/alpha/config-gen/testdata/enablewebhooks/expected.yaml create mode 100644 pkg/cli/alpha/config-gen/testdata/project/api/v1alpha1/foo_types.go create mode 100644 pkg/cli/alpha/config-gen/testdata/project/api/v1alpha1/groupversion_info.go create mode 100644 pkg/cli/alpha/config-gen/testdata/project/api/v1alpha1/zz_generated.deepcopy.go create mode 100644 pkg/cli/alpha/config-gen/testdata/project/api/v1beta1/bar_types.go create mode 100644 pkg/cli/alpha/config-gen/testdata/project/api/v1beta1/groupversion_info.go create mode 100644 pkg/cli/alpha/config-gen/testdata/project/api/v1beta1/zz_generated.deepcopy.go create mode 100644 pkg/cli/alpha/config-gen/testdata/project/controllers/bar_controller.go create mode 100644 pkg/cli/alpha/config-gen/testdata/project/controllers/foo_controller.go create mode 100644 pkg/cli/alpha/config-gen/types.go create mode 100644 pkged.go diff --git a/doc.go b/doc.go new file mode 100644 index 00000000000..f9a0cc4d13f --- /dev/null +++ b/doc.go @@ -0,0 +1,21 @@ +/* +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. +*/ + +//go:generate go run github.com/markbates/pkger/cmd/pkger + +// Package kubebuilder contains pkged files compiled into the +// go binaries. +package kubebuilder diff --git a/go.mod b/go.mod index 9d7c30ccb4a..0561f0a6e33 100644 --- a/go.mod +++ b/go.mod @@ -3,12 +3,21 @@ module sigs.k8s.io/kubebuilder/v3 go 1.15 require ( + github.com/cloudflare/cfssl v1.5.0 // for `kubebuilder alpha config-gen` github.com/gobuffalo/flect v0.2.2 + // TODO: remove this in favor of embed once using 1.16 + github.com/markbates/pkger v0.17.1 // for `kubebuilder alpha config-gen` github.com/onsi/ginkgo v1.15.0 github.com/onsi/gomega v1.10.5 github.com/spf13/afero v1.2.2 - github.com/spf13/cobra v0.0.7 + github.com/spf13/cobra v1.1.1 github.com/spf13/pflag v1.0.5 golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e + // for `kubebuilder alpha config-gen` + gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect + k8s.io/apimachinery v0.20.2 // for `kubebuilder alpha config-gen` + k8s.io/utils v0.0.0-20210111153108-fddb29f9d009 // indirect + sigs.k8s.io/controller-tools v0.3.0 // for `kubebuilder alpha config-gen` + sigs.k8s.io/kustomize/kyaml v0.10.10 // for `kubebuilder alpha config-gen` sigs.k8s.io/yaml v1.2.0 ) diff --git a/go.sum b/go.sum index 66299c003b3..05046d780a8 100644 --- a/go.sum +++ b/go.sum @@ -1,181 +1,638 @@ +bitbucket.org/liamstask/goose v0.0.0-20150115234039-8488cc47d90c/go.mod h1:hSVuE3qU7grINVSwrmzHfpg9k87ALBk+XaualNyUzI4= cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= +cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= +cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= +cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= +cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= +cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= +cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqClKRT5SZwBmk= +cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= +cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= +dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= +github.com/360EntSecGroup-Skylar/excelize v1.4.1/go.mod h1:vnax29X2usfl7HHkBrX5EvSCJcmH3dT9luvxzu8iGAE= +github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= +github.com/Azure/go-autorest/autorest v0.9.0/go.mod h1:xyHB1BMZT0cuDHU7I0+g046+BFDTQ8rEZB0s4Yfa6bI= +github.com/Azure/go-autorest/autorest/adal v0.5.0/go.mod h1:8Z9fGy2MpX0PvDjB1pEgQTmVqjGhiHBW7RJJEciWzS0= +github.com/Azure/go-autorest/autorest/date v0.1.0/go.mod h1:plvfp3oPSKwf2DNjlBjWF/7vwR+cUD/ELuzDCXwHUVA= +github.com/Azure/go-autorest/autorest/mocks v0.1.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0= +github.com/Azure/go-autorest/autorest/mocks v0.2.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0= +github.com/Azure/go-autorest/logger v0.1.0/go.mod h1:oExouG+K6PryycPJfVSxi/koC6LSNgds39diKLz7Vrc= +github.com/Azure/go-autorest/tracing v0.5.0/go.mod h1:r/s2XiOKccPW3HrqB+W0TQzfbtp2fGCgRFtBroKn4Dk= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= +github.com/GeertJohan/go.incremental v1.0.0/go.mod h1:6fAjUhbVuX1KcMD3c8TEgVUqmo4seqhv0i0kdATSkM0= +github.com/GeertJohan/go.rice v1.0.0/go.mod h1:eH6gbSOAUv07dQuZVnBmoDP8mgsM1rtixis4Tib9if0= +github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ= github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= +github.com/PuerkitoBio/goquery v1.5.0/go.mod h1:qD2PgZ9lccMbQlc7eEOjaeRlFQON7xY8kdmcsrnKqMg= +github.com/PuerkitoBio/purell v1.0.0/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= +github.com/PuerkitoBio/purell v1.1.0/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= +github.com/PuerkitoBio/purell v1.1.1 h1:WEQqlqaGbrPkxLJWfBwQmfEAE1Z7ONdDLqrN38tNFfI= +github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= +github.com/PuerkitoBio/urlesc v0.0.0-20160726150825-5bd2802263f2/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= +github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 h1:d+Bc7a5rLufV/sSk/8dngufqelfh6jnri85riMAaF/M= +github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= +github.com/agnivade/levenshtein v1.0.1/go.mod h1:CURSv5d9Uaml+FovSIICkLbAUZ9S4RqaHDIsdSBg7lM= +github.com/akavel/rsrc v0.8.0/go.mod h1:uLoCtb9J+EyAqh+26kdrTgmzRBFPGOolLWKpdxkKq+c= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= +github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo29Kk6CurOXKm700vrz8f0KW0JNfpkRJY/8= +github.com/andybalholm/cascadia v1.0.0/go.mod h1:GsXiBklL0woXo1j/WYWtSYYC4ouU9PqHO0sqidkEA4Y= +github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= +github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= +github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= +github.com/asaskevich/govalidator v0.0.0-20180720115003-f9ffefc3facf/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= +github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a h1:idn718Q4B6AGu/h5Sxe66HYVdqdGu2l9Iebqhi/AEoA= +github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= +github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= +github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84= +github.com/blang/semver v3.5.0+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= +github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/certifi/gocertifi v0.0.0-20180118203423-deb3ae2ef261/go.mod h1:GJKEexRPVJrBSOjoqN5VNOIKJ5Q3RViH6eu3puDRwx4= +github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= +github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= +github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= +github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cloudflare/backoff v0.0.0-20161212185259-647f3cdfc87a/go.mod h1:rzgs2ZOiguV6/NpiDgADjRLPNyZlApIWxKpkT+X8SdY= +github.com/cloudflare/cfssl v1.5.0 h1:vFJDAvQgFSRbCn9zg8KpSrrEZrBAQ4KO5oNK7SXEyb0= +github.com/cloudflare/cfssl v1.5.0/go.mod h1:sPPkBS5L8l8sRc/IOO1jG51Xb34u+TYhL6P//JdODMQ= +github.com/cloudflare/go-metrics v0.0.0-20151117154305-6a9aea36fb41/go.mod h1:eaZPlJWD+G9wseg1BuRXlHnjntPMrywMsyxf+LTOdP4= +github.com/cloudflare/redoctober v0.0.0-20171127175943-746a508df14c/go.mod h1:6Se34jNoqrd8bTxrmJB2Bg2aoZ2CdSXonils9NsiNgo= +github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= +github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= +github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= +github.com/coreos/go-oidc v2.1.0+incompatible/go.mod h1:CgnwVTmzoESiwO9qyAFEMiHoZ1nMCKZlZ9V6mm3/LKc= github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= +github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= +github.com/coreos/pkg v0.0.0-20180108230652-97fdf19511ea/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= +github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= +github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= +github.com/daaku/go.zipexe v1.0.0/go.mod h1:z8IiR6TsVLEYKwXAoE/I+8ys/sDkgTzSL0CLnGVd57E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= +github.com/docker/docker v0.7.3-0.20190327010347-be7ac8be2ae0/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= +github.com/docker/go-units v0.3.3/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= +github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= +github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96/go.mod h1:Qh8CwZgvJUkLughtfhJv5dyTYa91l1fOUCrgjqmcifM= +github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE= +github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= +github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= +github.com/dustmop/soup v1.1.2-0.20190516214245-38228baa104e/go.mod h1:CgNC6SGbT+Xb8wGGvzilttZL1mc5sQ/5KkcxsZttMIk= +github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc= +github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= +github.com/emicklei/go-restful v2.9.5+incompatible/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/evanphx/json-patch v4.2.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= +github.com/evanphx/json-patch v4.9.0+incompatible h1:kLcOMZeuLAJvL2BPWLMIj5oaZQobrkAqrL+WFZwQses= +github.com/evanphx/json-patch v4.9.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= +github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= +github.com/getsentry/raven-go v0.0.0-20180121060056-563b81fc02b7/go.mod h1:KungGk8q33+aIAZUIVWZDr2OfAEBsO49PX4NzFV5kcQ= +github.com/ghodss/yaml v0.0.0-20150909031657-73d445a93680/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= +github.com/globalsign/mgo v0.0.0-20180905125535-1ca0a4f7cbcb/go.mod h1:xkRDCp4j0OGD1HRkm4kmhM+pmpv3AKq5SU7GMg4oO/Q= +github.com/globalsign/mgo v0.0.0-20181015135952-eeefdecb41b8/go.mod h1:xkRDCp4j0OGD1HRkm4kmhM+pmpv3AKq5SU7GMg4oO/Q= +github.com/go-errors/errors v1.0.1 h1:LUHzmkK3GUKUrL/1gfBUxAHzcev3apQlezX/+O7ma6w= +github.com/go-errors/errors v1.0.1/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q= +github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= +github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas= +github.com/go-logr/logr v0.2.0 h1:QvGt2nLcHH0WK9orKa+ppBPAxREcH364nPUedEpK0TY= +github.com/go-logr/logr v0.2.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTgseGU= +github.com/go-openapi/analysis v0.0.0-20180825180245-b006789cd277/go.mod h1:k70tL6pCuVxPJOHXQ+wIac1FUrvNkHolPie/cLEU6hI= +github.com/go-openapi/analysis v0.17.0/go.mod h1:IowGgpVeD0vNm45So8nr+IcQ3pxVtpRoBWb8PVZO0ik= +github.com/go-openapi/analysis v0.18.0/go.mod h1:IowGgpVeD0vNm45So8nr+IcQ3pxVtpRoBWb8PVZO0ik= +github.com/go-openapi/analysis v0.19.2/go.mod h1:3P1osvZa9jKjb8ed2TPng3f0i/UY9snX6gxi44djMjk= +github.com/go-openapi/analysis v0.19.5 h1:8b2ZgKfKIUTVQpTb77MoRDIMEIwvDVw40o3aOXdfYzI= +github.com/go-openapi/analysis v0.19.5/go.mod h1:hkEAkxagaIvIP7VTn8ygJNkd4kAYON2rCu0v0ObL0AU= +github.com/go-openapi/errors v0.17.0/go.mod h1:LcZQpmvG4wyF5j4IhA73wkLFQg+QJXOQHVjmcZxhka0= +github.com/go-openapi/errors v0.18.0/go.mod h1:LcZQpmvG4wyF5j4IhA73wkLFQg+QJXOQHVjmcZxhka0= +github.com/go-openapi/errors v0.19.2 h1:a2kIyV3w+OS3S97zxUndRVD46+FhGOUBDFY7nmu4CsY= +github.com/go-openapi/errors v0.19.2/go.mod h1:qX0BLWsyaKfvhluLejVpVNwNRdXZhEbTA4kxxpKBC94= +github.com/go-openapi/jsonpointer v0.0.0-20160704185906-46af16f9f7b1/go.mod h1:+35s3my2LFTysnkMfxsJBAMHj/DoqoB9knIWoYG/Vk0= +github.com/go-openapi/jsonpointer v0.17.0/go.mod h1:cOnomiV+CVVwFLk0A/MExoFMjwdsUdVpsRhURCKh+3M= +github.com/go-openapi/jsonpointer v0.18.0/go.mod h1:cOnomiV+CVVwFLk0A/MExoFMjwdsUdVpsRhURCKh+3M= +github.com/go-openapi/jsonpointer v0.19.2/go.mod h1:3akKfEdA7DF1sugOqz1dVQHBcuDBPKZGEoHC/NkiQRg= +github.com/go-openapi/jsonpointer v0.19.3 h1:gihV7YNZK1iK6Tgwwsxo2rJbD1GTbdm72325Bq8FI3w= +github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= +github.com/go-openapi/jsonreference v0.0.0-20160704190145-13c6e3589ad9/go.mod h1:W3Z9FmVs9qj+KR4zFKmDPGiLdk1D9Rlm7cyMvf57TTg= +github.com/go-openapi/jsonreference v0.17.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3HfopLOL6uZrK/VgnsK9I= +github.com/go-openapi/jsonreference v0.18.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3HfopLOL6uZrK/VgnsK9I= +github.com/go-openapi/jsonreference v0.19.2/go.mod h1:jMjeRr2HHw6nAVajTXJ4eiUwohSTlpa0o73RUL1owJc= +github.com/go-openapi/jsonreference v0.19.3 h1:5cxNfTy0UVC3X8JL5ymxzyoUZmo8iZb+jeTWn7tUa8o= +github.com/go-openapi/jsonreference v0.19.3/go.mod h1:rjx6GuL8TTa9VaixXglHmQmIL98+wF9xc8zWvFonSJ8= +github.com/go-openapi/loads v0.17.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= +github.com/go-openapi/loads v0.18.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= +github.com/go-openapi/loads v0.19.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= +github.com/go-openapi/loads v0.19.2/go.mod h1:QAskZPMX5V0C2gvfkGZzJlINuP7Hx/4+ix5jWFxsNPs= +github.com/go-openapi/loads v0.19.4 h1:5I4CCSqoWzT+82bBkNIvmLc0UOsoKKQ4Fz+3VxOB7SY= +github.com/go-openapi/loads v0.19.4/go.mod h1:zZVHonKd8DXyxyw4yfnVjPzBjIQcLt0CCsn0N0ZrQsk= +github.com/go-openapi/runtime v0.0.0-20180920151709-4f900dc2ade9/go.mod h1:6v9a6LTXWQCdL8k1AO3cvqx5OtZY/Y9wKTgaoP6YRfA= +github.com/go-openapi/runtime v0.19.0/go.mod h1:OwNfisksmmaZse4+gpV3Ne9AyMOlP1lt4sK4FXt0O64= +github.com/go-openapi/runtime v0.19.4 h1:csnOgcgAiuGoM/Po7PEpKDoNulCcF3FGbSnbHfxgjMI= +github.com/go-openapi/runtime v0.19.4/go.mod h1:X277bwSUBxVlCYR3r7xgZZGKVvBd/29gLDlFGtJ8NL4= +github.com/go-openapi/spec v0.0.0-20160808142527-6aced65f8501/go.mod h1:J8+jY1nAiCcj+friV/PDoE1/3eeccG9LYBs0tYvLOWc= +github.com/go-openapi/spec v0.17.0/go.mod h1:XkF/MOi14NmjsfZ8VtAKf8pIlbZzyoTvZsdfssdxcBI= +github.com/go-openapi/spec v0.18.0/go.mod h1:XkF/MOi14NmjsfZ8VtAKf8pIlbZzyoTvZsdfssdxcBI= +github.com/go-openapi/spec v0.19.2/go.mod h1:sCxk3jxKgioEJikev4fgkNmwS+3kuYdJtcsZsD5zxMY= +github.com/go-openapi/spec v0.19.3/go.mod h1:FpwSN1ksY1eteniUU7X0N/BgJ7a4WvBFVA8Lj9mJglo= +github.com/go-openapi/spec v0.19.5 h1:Xm0Ao53uqnk9QE/LlYV5DEU09UAgpliA85QoT9LzqPw= +github.com/go-openapi/spec v0.19.5/go.mod h1:Hm2Jr4jv8G1ciIAo+frC/Ft+rR2kQDh8JHKHb3gWUSk= +github.com/go-openapi/strfmt v0.17.0/go.mod h1:P82hnJI0CXkErkXi8IKjPbNBM6lV6+5pLP5l494TcyU= +github.com/go-openapi/strfmt v0.18.0/go.mod h1:P82hnJI0CXkErkXi8IKjPbNBM6lV6+5pLP5l494TcyU= +github.com/go-openapi/strfmt v0.19.0/go.mod h1:+uW+93UVvGGq2qGaZxdDeJqSAqBqBdl+ZPMF/cC8nDY= +github.com/go-openapi/strfmt v0.19.3/go.mod h1:0yX7dbo8mKIvc3XSKp7MNfxw4JytCfCD6+bY1AVL9LU= +github.com/go-openapi/strfmt v0.19.5 h1:0utjKrw+BAh8s57XE9Xz8DUBsVvPmRUB6styvl9wWIM= +github.com/go-openapi/strfmt v0.19.5/go.mod h1:eftuHTlB/dI8Uq8JJOyRlieZf+WkkxUuk0dgdHXr2Qk= +github.com/go-openapi/swag v0.0.0-20160704191624-1d0bd113de87/go.mod h1:DXUve3Dpr1UfpPtxFw+EFuQ41HhCWZfha5jSVRG7C7I= +github.com/go-openapi/swag v0.17.0/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/kXLo40Tg= +github.com/go-openapi/swag v0.18.0/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/kXLo40Tg= +github.com/go-openapi/swag v0.19.2/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= +github.com/go-openapi/swag v0.19.5 h1:lTz6Ys4CmqqCQmZPBlbQENR1/GucA2bzYTE12Pw4tFY= +github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= +github.com/go-openapi/validate v0.18.0/go.mod h1:Uh4HdOzKt19xGIGm1qHf/ofbX1YQ4Y+MYsct2VUrAJ4= +github.com/go-openapi/validate v0.19.2/go.mod h1:1tRCw7m3jtI8eNWEEliiAqUIcBztB2KDnRCRMUi7GTA= +github.com/go-openapi/validate v0.19.5/go.mod h1:8DJv2CVJQ6kGNpFW6eV9N3JviE1C85nY1c2z52x1Gk4= +github.com/go-openapi/validate v0.19.8 h1:YFzsdWIDfVuLvIOF+ZmKjVg1MbPJ1QgY9PihMwei1ys= +github.com/go-openapi/validate v0.19.8/go.mod h1:8DJv2CVJQ6kGNpFW6eV9N3JviE1C85nY1c2z52x1Gk4= +github.com/go-sql-driver/mysql v1.4.0 h1:7LxgVwFb2hIQtMm87NdgAVfXjnt4OePseqT1tKx+opk= +github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= +github.com/go-stack/stack v1.8.0 h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= +github.com/gobuffalo/flect v0.2.0/go.mod h1:W3K3X9ksuZfir8f/LrfVtWmCDQFfayuylOJ7sz/Fj80= github.com/gobuffalo/flect v0.2.2 h1:PAVD7sp0KOdfswjAw9BpLCU9hXo7wFSzgpQ+zNeks/A= github.com/gobuffalo/flect v0.2.2/go.mod h1:vmkQwuZYhN5Pc4ljYQZzP+1sq+NEkK+lh20jmEmX3jc= +github.com/gobuffalo/here v0.6.0 h1:hYrd0a6gDmWxBM4TnrGw8mQg24iSVoIkHEk7FodQcBI= +github.com/gobuffalo/here v0.6.0/go.mod h1:wAG085dHOYqUpf+Ap+WOdrPTp5IYcDAs/x7PLa8Y5fM= github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= +github.com/gogo/protobuf v1.3.1 h1:DqDEcV5aeaTmdFBePNpYsp3FlcVH/2ISVVM9Qf8PSls= +github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e h1:1r7pUrabqp18hOBcwBwiTsbnFeTZHV9eER/QT5JVZxY= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= +github.com/golang/protobuf v0.0.0-20161109072736-4bd1920723d7/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= -github.com/golang/protobuf v1.4.2 h1:+Z5KGCizgyZCbGh1KZqA0fcLLkwbsjIzS4aV2v7wJX0= +github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.4.3 h1:JjCZWpVbqXDqFVmTfYWEVTMIYrL/NPdPSCHPJ0T/raM= +github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/certificate-transparency-go v1.0.21 h1:Yf1aXowfZ2nuboBsg7iYGLmwsOARdV86pfH3g95wXmE= +github.com/google/certificate-transparency-go v1.0.21/go.mod h1:QeJfpSbVSfYc7RgB3gJFj9cbuQMMchQxrWXz8Ruopmg= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.4.0 h1:xsAVV57WRhGj6kEIi8ReJzQlHHqcBYCElAvkovg3B/4= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.2 h1:X2ev0eStA3AbceY54o37/0PQ/UWqKEiiO2dKL5OPaFM= +github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/gofuzz v1.1.0 h1:Hsa8mG0dQ46ij8Sl2AYJDUv1oA9/d6Vk+3LG99Oe02g= +github.com/google/gofuzz v1.1.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= +github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= +github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.1.2 h1:EVhdT+1Kseyi1/pUmXKaFxYsDNy9RQYkMWRH68J/W7Y= +github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= +github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= +github.com/googleapis/gnostic v0.0.0-20170729233727-0c5108395e2d/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= +github.com/googleapis/gnostic v0.1.0/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= +github.com/googleapis/gnostic v0.4.1/go.mod h1:LRhVm6pbyptWbWbuZ38d1eyptfvIytN3ir6b65WBswg= +github.com/gophercloud/gophercloud v0.1.0/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8= +github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= +github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= +github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= +github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= +github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= +github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q= +github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= +github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= +github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= +github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= +github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= +github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= +github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= +github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= +github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= +github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= +github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= +github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= +github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= +github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= +github.com/imdario/mergo v0.3.5 h1:JboBksRwiiAJWvIYJVo46AfV+IAIKZpfrSzVKj42R4Q= +github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= +github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= +github.com/jmhodges/clock v0.0.0-20160418191101-880ee4c33548/go.mod h1:hGT6jSUVzF6no3QaDSMLGLEHtHSBSefs+MgcDWnmhmo= +github.com/jmoiron/sqlx v1.2.0 h1:41Ip0zITnmWNR/vHV+S4m+VoUivnWY5E4OJfLZjCJMA= +github.com/jmoiron/sqlx v1.2.0/go.mod h1:1FEQNm3xlJgrMD+FBdI9+xvCksHtbpVBBw5dYhBSsks= github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= +github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= +github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.10 h1:Kz6Cvnvv2wGdaG/V8yMvfkmNiXq9Ya2KUv4rouJJr68= +github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= +github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= +github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/kisielk/sqlstruct v0.0.0-20150923205031-648daed35d49 h1:o/c0aWEP/m6n61xlYW2QP4t9424qlJOsxugn5Zds2Rg= +github.com/kisielk/sqlstruct v0.0.0-20150923205031-648daed35d49/go.mod h1:yyMNCyc/Ib3bDTKd379tNMpB/7/H5TjM2Y9QJ5THLbE= +github.com/kisom/goutils v1.1.0/go.mod h1:+UBTfd78habUYWFbNWTJNG+jNG/i/lGURakr4A/yNRw= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= -github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pretty v0.2.0 h1:s5hAObm+yFO5uHYt5dYjxi2rXrsnmRpJx4OYvIWUaQs= +github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA= github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kylelemons/go-gypsy v0.0.0-20160905020020-08cad365cd28/go.mod h1:T/T7jsxVqf9k/zYOqbgNAsANsjxTd1Yq3htjDhQ1H0c= +github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= +github.com/lib/pq v1.3.0 h1:/qkRGz8zljWiDcFvgpwUpwIAPu3r07TDvs3Rws+o/pU= +github.com/lib/pq v1.3.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= +github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= +github.com/mailru/easyjson v0.0.0-20160728113105-d5b7844b561a/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= +github.com/mailru/easyjson v0.0.0-20180823135443-60711f1a8329/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= +github.com/mailru/easyjson v0.0.0-20190312143242-1de009706dbe/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= +github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= +github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= +github.com/mailru/easyjson v0.7.0 h1:aizVhC/NAAcKWb+5QsU1iNOZb4Yws5UO2I+aIprQITM= +github.com/mailru/easyjson v0.7.0/go.mod h1:KAzv3t3aY1NaHWoQz1+4F1ccyAH66Jk7yos7ldAVICs= +github.com/markbates/pkger v0.17.1 h1:/MKEtWqtc0mZvu9OinB9UzVN9iYCwLWuyUv4Bw+PCno= +github.com/markbates/pkger v0.17.1/go.mod h1:0JoVlrol20BSywW79rN3kdFFsE5xYM+rSCQDXbLhiuI= +github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= +github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= +github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= +github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= +github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= +github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= +github.com/mattn/go-sqlite3 v1.9.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= +github.com/mattn/go-sqlite3 v1.10.0 h1:jbhqpg7tQe4SupckyijYiy0mJJ/pRyHvXf7JdWK860o= +github.com/mattn/go-sqlite3 v1.10.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= +github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= +github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= +github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= +github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= +github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= +github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= +github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= +github.com/mitchellh/mapstructure v1.1.2 h1:fmNYVwqnSfB9mZU6OS2O6GsXM+wcskZDuKQzvN1EDeE= github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= +github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.1 h1:9f412s+6RmYXLWZSEzVVgPGK7C2PphHj5RJrvfx9AWI= +github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826/go.mod h1:TaXosZuwdSHYgviHp1DAtfrULt5eUgsSMsZf+YrPgl8= +github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 h1:n6/2gBQ3RWajuToeY6ZtZTIKv2v7ThUy5KKusIT0yc0= +github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00/go.mod h1:Pm3mSP3c5uWn86xMLZ5Sa7JB9GsEZySvHYXCTK4E9q4= +github.com/mreiferson/go-httpclient v0.0.0-20160630210159-31f0106b4474/go.mod h1:OQA4XLvDbMgS8P0CevmM4m9Q3Jq4phKUzcocxuGJ5m8= +github.com/munnerz/goautoneg v0.0.0-20120707110453-a547fc61f48d/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= +github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw= +github.com/nkovacs/streamquote v0.0.0-20170412213628-49af9bddb229/go.mod h1:0aYXnNPJ8l7uZxf45rWW1a/uME32OF0rhiYGNQ2oF2E= github.com/nxadm/tail v1.4.4 h1:DQuhQpB1tVlglWS2hLQ5OV6B5r8aGxSrPc5Qo6uTN78= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= +github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= +github.com/onsi/ginkgo v0.0.0-20170829012221-11459a886d9c/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.11.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= github.com/onsi/ginkgo v1.15.0 h1:1V1NfVQR87RtWAgp1lv9JZJ5Jap+XFGKPi00andXGi4= github.com/onsi/ginkgo v1.15.0/go.mod h1:hF8qUzuuC8DJGygJH3726JnCZX4MYbRB8yFfISqnKUg= +github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= +github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= +github.com/onsi/gomega v1.8.1/go.mod h1:Ho0h+IUsWyvy1OpqCwxlQ/21gkhVunqlU8fDGcoTdcA= github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= github.com/onsi/gomega v1.10.5 h1:7n6FEkpFmfCoo2t+YYqXH0evK+a9ICQz0xcAy9dYcaQ= github.com/onsi/gomega v1.10.5/go.mod h1:gza4q3jKQJijlu05nKWRCW/GavJumGt8aNRxWg7mt48= +github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk= +github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= +github.com/paulmach/orb v0.1.3/go.mod h1:VFlX/8C+IQ1p6FTRRKzKoOPJnvEtA5G0Veuqwbu//Vk= +github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= +github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= +github.com/pquerna/cachecontrol v0.0.0-20171018203845-0dec1b30a021/go.mod h1:prYjPmNq4d1NPVmpShWobRqXY3q7Vp+80DqgxxUrUIA= github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= +github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.2.0 h1:uq5h0d+GuxiXLJLNABMgp2qUWDPiLvgCzz2dUR+/W/M= +github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= +github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= +github.com/qri-io/starlib v0.4.2-0.20200213133954-ff2e8cd5ef8d/go.mod h1:7DPO4domFU579Ga6E61sB9VFNaniPVwJP5C4bBCu3wA= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= +github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= +github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= +github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= +github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0= +github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= +github.com/sirupsen/logrus v1.3.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= +github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= +github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= +github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= github.com/spf13/afero v1.2.2 h1:5jhuqJyZCZf2JRofRvN/nIFgIWNzPa3/Vz8mYylgbWc= github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk= github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cobra v0.0.7 h1:FfTH+vuMXOas8jmfb5/M7dzEYx7LpcLb7a0LPe34uOU= -github.com/spf13/cobra v0.0.7/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE= +github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= +github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= +github.com/spf13/cobra v1.0.0 h1:6m/oheQuQ13N9ks4hubMG6BnvwOeaJrqSPLahSnczz8= +github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE= +github.com/spf13/cobra v1.1.1 h1:KfztREH0tPxJJ+geloSLaAkaPkr4ki2Er5quFV1TDo4= +github.com/spf13/cobra v1.1.1/go.mod h1:WnodtKOvamDL/PwE2M4iKs8aMDBZ5Q5klgD3qfVJQMI= github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= +github.com/spf13/pflag v0.0.0-20170130214245-9ff6c6923cff/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= +github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE= +github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.2.0 h1:Hbg2NidpLE8veEBkEZTL3CvlkUIVzuU9jDplZO54c48= +github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= +github.com/stretchr/testify v1.2.3-0.20181224173747-660f15d67dbb/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0= +github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= +github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= +github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc= +github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= +github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= +github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= +github.com/valyala/fasttemplate v1.0.1/go.mod h1:UQGH1tvbgY+Nz5t2n7tXsz52dQxojPUpymEIMZ47gx8= +github.com/vektah/gqlparser v1.1.2/go.mod h1:1ycwN7Ij5njmMkPPAOaRFY4rET2Enx7IkVv3vaXspKw= +github.com/weppos/publicsuffix-go v0.4.0/go.mod h1:z3LCPQ38eedDQSwmsSRW4Y7t2L8Ln16JPQ02lHAdn5k= +github.com/weppos/publicsuffix-go v0.13.0 h1:0Tu1uzLBd1jPn4k6OnMmOPZH/l/9bj9kUOMMkoRs6Gg= +github.com/weppos/publicsuffix-go v0.13.0/go.mod h1:z3LCPQ38eedDQSwmsSRW4Y7t2L8Ln16JPQ02lHAdn5k= github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= +github.com/xlab/treeprint v0.0.0-20181112141820-a009c3971eca h1:1CFlNzQhALwjS9mBAUkycX616GzgsuYUOCHA5+HSlXI= +github.com/xlab/treeprint v0.0.0-20181112141820-a009c3971eca/go.mod h1:ce1O1j6UtZfjr22oyGxGLbauSBp2YVXpARAosm7dHBg= github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/ziutek/mymysql v1.5.4/go.mod h1:LMSpPZ6DbqWFxNCHW77HeMg9I646SAhApZ/wKdgO/C0= +github.com/zmap/rc2 v0.0.0-20131011165748-24b9757f5521/go.mod h1:3YZ9o3WnatTIZhuOtot4IcUfzoKVjUHqu6WALIyI0nE= +github.com/zmap/zcertificate v0.0.0-20180516150559-0e3d58b1bac4/go.mod h1:5iU54tB79AMBcySS0R2XIyZBAVmeHranShAFELYx7is= +github.com/zmap/zcrypto v0.0.0-20200513165325-16679db567ff/go.mod h1:TxpejqcVKQjQaVVmMGfzx5HnmFMdIU+vLtaCyPBfGI4= +github.com/zmap/zcrypto v0.0.0-20200911161511-43ff0ea04f21 h1:PIpcdSOg3pMdFJUBg5yR9xxcj5rm/SGAyaWT/wK6Kco= +github.com/zmap/zcrypto v0.0.0-20200911161511-43ff0ea04f21/go.mod h1:TxpejqcVKQjQaVVmMGfzx5HnmFMdIU+vLtaCyPBfGI4= +github.com/zmap/zlint/v2 v2.2.1 h1:b2kI/ToXX16h2wjV2c6Da65eT6aTMtkLHKetXuM9EtI= +github.com/zmap/zlint/v2 v2.2.1/go.mod h1:ixPWsdq8qLxYRpNUTbcKig3R7WgmspsHGLhCCs6rFAM= go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= +go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= +go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg= +go.mongodb.org/mongo-driver v1.0.3/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM= +go.mongodb.org/mongo-driver v1.1.1/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM= +go.mongodb.org/mongo-driver v1.1.2 h1:jxcFYjlkl8xaERsgLo+RNquI0epW6zuy/ZRQs6jnrFA= +go.mongodb.org/mongo-driver v1.1.2/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM= +go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= +go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= +go.starlark.net v0.0.0-20190528202925-30ae18b8564f/go.mod h1:c1/X6cHgvdXj6pUlmWKMkuqRnW4K8x2vwt6JAaaircg= +go.starlark.net v0.0.0-20200306205701-8dd3e2ee1dd5 h1:+FNtrFTmVw0YZGpBGX56XDee331t6JAXeK2bcyhLOOc= +go.starlark.net v0.0.0-20200306205701-8dd3e2ee1dd5/go.mod h1:nmDLcffg48OtT/PSW0Hg7FvpRQsQh5OSqIylirxKC7o= +go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20190211182817-74369b46fc67/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190320223903-b7391e95e576/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190617133340-57b3e21c3d56/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20200124225646-8b5121be2f68/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20200220183623-bac4c82f6975/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20201012173705-84dcc777aaee h1:4yd7jl+vXjalO5ztz6Vc1VADv+S/80LGJmyl1ROJ2AI= +golang.org/x/crypto v0.0.0-20201012173705-84dcc777aaee/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= +golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= +golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= +golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= +golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= +golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= +golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= +golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= +golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= golang.org/x/mod v0.3.0 h1:RM4zey1++hCTbCVQfnWeKs9/IEsaBLA8vTkd0WVtmH4= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/net v0.0.0-20170114055629-f2499483f923/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180218175443-cbe0f9307d01/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181005035420-146acd28ed58/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190320064053-1272bf9dcd53/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= +golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= +golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20191004110552-13f9640d40b9/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201202161906-c7110b5ffcbb h1:eBmm0M9fYhWpKZLjQUUKka/LtIxf46G4fxeEz5KJr9U= golang.org/x/net v0.0.0-20201202161906-c7110b5ffcbb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20170830134202-bb24a47a89ea/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190209173611-3b5209105503/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190321052220-f7bb7a8bee54/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190616124812-15dcb6c0061f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191002063906-3421d5a6bb1c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191022100944-742c48ecaeb7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201112073958-5cba982894dd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210112080510-489259a85091 h1:DMyOG0U+gKfu8JZzg2UQe9MeaC1X+xQWlAKcRnjxjCw= golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/text v0.0.0-20160726164857-2910a502d2bf/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k= +golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.4 h1:0YWbFKbhXG/wIiuHDSKpS0Iy7FSA+u45VtBMfQcFTTc= +golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20181011042414-1f849cf54d09/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190125232054-d66bd3c5d5a6/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190614205625-5aca471b1d59/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190617190820-da514acc4774/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190920225731-5eefd052ad72/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e h1:4nW4NLDYnU28ojHaHO8OVxFHk/aQ33U01a9cjED+pzE= golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= @@ -184,32 +641,118 @@ golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8T golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= +google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= +google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= +google.golang.org/appengine v1.6.6 h1:lMO5rYAqUxkmaj76jAkRUvt5JZgFymx/+Q5Mzfivuhc= +google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= +google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= +google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.23.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= -google.golang.org/protobuf v1.23.0 h1:4MY060fB1DLGMB/7MBTLnwQUY6+F09GEiz6SsrNqyzM= +google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c= +google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo= +gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/cheggaaa/pb.v1 v1.0.25/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= +gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= +gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc= +gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= +gopkg.in/ini.v1 v1.51.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= +gopkg.in/natefinch/lumberjack.v2 v2.0.0/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k= gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= +gopkg.in/square/go-jose.v2 v2.2.2/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.7/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v3 v3.0.0-20190905181640-827449938966/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 h1:tQIYjPdBoyREyB9XMu+nnTclpTYkz2zFM+lzLJFO4gQ= +gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= +k8s.io/api v0.18.2 h1:wG5g5ZmSVgm5B+eHMIbI9EGATS2L8Z72rda19RIEgY8= +k8s.io/api v0.18.2/go.mod h1:SJCWI7OLzhZSvbY7U8zwNl9UA4o1fizoug34OV/2r78= +k8s.io/apiextensions-apiserver v0.18.2 h1:I4v3/jAuQC+89L3Z7dDgAiN4EOjN6sbm6iBqQwHTah8= +k8s.io/apiextensions-apiserver v0.18.2/go.mod h1:q3faSnRGmYimiocj6cHQ1I3WpLqmDgJFlKL37fC4ZvY= +k8s.io/apimachinery v0.18.2/go.mod h1:9SnR/e11v5IbyPCGbvJViimtJ0SwHG4nfZFjU77ftcA= +k8s.io/apimachinery v0.20.2 h1:hFx6Sbt1oG0n6DZ+g4bFt5f6BoMkOjKWsQFu077M3Vg= +k8s.io/apimachinery v0.20.2/go.mod h1:WlLqWAHZGg07AeltaI0MV5uk1Omp8xaN0JGLY6gkRpU= +k8s.io/apiserver v0.18.2/go.mod h1:Xbh066NqrZO8cbsoenCwyDJ1OSi8Ag8I2lezeHxzwzw= +k8s.io/client-go v0.18.2/go.mod h1:Xcm5wVGXX9HAA2JJ2sSBUn3tCJ+4SVlCbl2MNNv+CIU= +k8s.io/code-generator v0.18.2/go.mod h1:+UHX5rSbxmR8kzS+FAv7um6dtYrZokQvjHpDSYRVkTc= +k8s.io/component-base v0.18.2/go.mod h1:kqLlMuhJNHQ9lz8Z7V5bxUUtjFZnrypArGl58gmDfUM= +k8s.io/gengo v0.0.0-20190128074634-0689ccc1d7d6/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= +k8s.io/gengo v0.0.0-20200114144118-36b2048a9120/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= +k8s.io/gengo v0.0.0-20200413195148-3a45101e95ac/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= +k8s.io/klog v0.0.0-20181102134211-b9b56d5dfc92/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk= +k8s.io/klog v0.3.0/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk= +k8s.io/klog v1.0.0 h1:Pt+yjF5aB1xDSVbau4VsWe+dQNzA0qv1LlXdC2dF6Q8= +k8s.io/klog v1.0.0/go.mod h1:4Bi6QPql/J/LkTDqv7R/cd3hPo4k2DG6Ptcz060Ez5I= +k8s.io/klog/v2 v2.0.0/go.mod h1:PBfzABfn139FHAV07az/IF9Wp1bkk3vpT2XSJ76fSDE= +k8s.io/klog/v2 v2.4.0 h1:7+X0fUguPyrKEC4WjH8iGDg3laWgMo5tMnRTIGTTxGQ= +k8s.io/klog/v2 v2.4.0/go.mod h1:Od+F08eJP+W3HUb4pSrPpgp9DGU4GzlpG/TmITuYh/Y= +k8s.io/kube-openapi v0.0.0-20200121204235-bf4fb3bd569c/go.mod h1:GRQhZsXIAJ1xR0C9bd8UpWHZ5plfAS9fzPjJuQ6JL3E= +k8s.io/kube-openapi v0.0.0-20201113171705-d219536bb9fd h1:sOHNzJIkytDF6qadMNKhhDRpc6ODik8lVC6nOur7B2c= +k8s.io/kube-openapi v0.0.0-20201113171705-d219536bb9fd/go.mod h1:WOJ3KddDSol4tAGcJo0Tvi+dK12EcqSLqcWsryKMpfM= +k8s.io/utils v0.0.0-20200324210504-a9aa75ae1b89 h1:d4vVOjXm687F1iLSP2q3lyPPuyvTUt3aVoBpi2DqRsU= +k8s.io/utils v0.0.0-20200324210504-a9aa75ae1b89/go.mod h1:sZAwmy6armz5eXlNoLmJcl4F1QuKu7sr+mFQ0byX7Ew= +k8s.io/utils v0.0.0-20210111153108-fddb29f9d009 h1:0T5IaWHO3sJTEmCP6mUlBvMukxPKUQWqiI/YuiBNMiQ= +k8s.io/utils v0.0.0-20210111153108-fddb29f9d009/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= +rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= +sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.7/go.mod h1:PHgbrJT7lCHcxMU+mDHEm+nx46H4zuuHZkDP6icnhu0= +sigs.k8s.io/controller-tools v0.3.0 h1:y3YD99XOyWaXkiF1kd41uRvfp/64teWcrEZFuHxPhJ4= +sigs.k8s.io/controller-tools v0.3.0/go.mod h1:enhtKGfxZD1GFEoMgP8Fdbu+uKQ/cq1/WGJhdVChfvI= +sigs.k8s.io/kustomize/kyaml v0.10.10 h1:caAxDDkaXZp+0kDsZVik4leFJV8LCy09PdVqpaoNeF4= +sigs.k8s.io/kustomize/kyaml v0.10.10/go.mod h1:K9yg1k/HB/6xNOf5VH3LhTo1DK9/5ykSZO5uIv+Y/1k= +sigs.k8s.io/structured-merge-diff/v3 v3.0.0-20200116222232-67a7b8c61874/go.mod h1:PlARxl6Hbt/+BC80dRLi1qAmnMqwqDg62YvvVkZjemw= +sigs.k8s.io/structured-merge-diff/v3 v3.0.0/go.mod h1:PlARxl6Hbt/+BC80dRLi1qAmnMqwqDg62YvvVkZjemw= +sigs.k8s.io/structured-merge-diff/v4 v4.0.2 h1:YHQV7Dajm86OuqnIR6zAelnDWBRjo+YhYV9PmGrh1s8= +sigs.k8s.io/structured-merge-diff/v4 v4.0.2/go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK1F7G282QMXDPYydCw= +sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= sigs.k8s.io/yaml v1.2.0 h1:kr/MCeFWJWTwyaHoR9c8EjH9OumOmoF9YGiZd7lFm/Q= sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc= diff --git a/pkg/cli/alpha.go b/pkg/cli/alpha.go new file mode 100644 index 00000000000..f9a00615632 --- /dev/null +++ b/pkg/cli/alpha.go @@ -0,0 +1,52 @@ +/* +Copyright 2021 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 cli + +import ( + "strings" + + "github.com/spf13/cobra" + configgen "sigs.k8s.io/kubebuilder/v3/pkg/cli/alpha/config-gen" +) + +var alphaCommands = []*cobra.Command{ + configgen.NewCommand(), +} + +func (c *CLI) newAlphaCmd() *cobra.Command { + alpha := &cobra.Command{ + Use: "alpha", + SuggestFor: []string{"experimental"}, + Short: "Alpha kubebuilder subcommands", + Long: strings.TrimSpace(` +Alpha kubebuilder commands are for unstable features. + +- Alpha commands are exploratory and may be removed without warning. +- No backwards compatibility is provided for any alpha commands. + `), + } + for i := range alphaCommands { + alpha.AddCommand(alphaCommands[i]) + } + return alpha +} + +func (c *CLI) addAlphaCmd() { + if len(alphaCommands) > 0 { + c.cmd.AddCommand(c.newAlphaCmd()) + } +} diff --git a/pkg/cli/alpha/config-gen/README.md b/pkg/cli/alpha/config-gen/README.md new file mode 100644 index 00000000000..2f6e14bc4c2 --- /dev/null +++ b/pkg/cli/alpha/config-gen/README.md @@ -0,0 +1,41 @@ +# Config-gen + +`kubebuilder alpha config-gen` is a subcommand that generates configuration for kubebuilder projects as a configuration function. + +Supports: + +- Generating CRDs and RBAC from code +- Generating webhook certificates for development +- Selectively enabling / disabling components such as prometheus and webhooks + - See [types.go](apis/v1alpha1/types.go) for a list of components + +## Usage + +`config-gen` may be run as a standalone command or from kustomize as a transformer plugin. + +### Standalone command + +config-gen may be run as a standalone program on the commandline. + +See [examples/standalone](examples/standalone/README.md) + +### From kustomize + +config-gen may be run as a Kustomize plugin using kustomize. + +See [examples/kustomize](examples/kustomize/README.md) + +### Extending `config-gen` + +config-gen may be extended by composing additional functions on top of it. + +See examples of layering additional functions on: + +- [examples/basicextension](examples/basicextension/README.md) +- [examples/advancedextension](examples/advancedextension/README.md) + +## `KubebuilderConfigGen` + +See [types.go](apis/v1alpha1/types.go) for KubebuilderConfigGen schema. + +See [testdata](apis/v1alpha1/testdata) for examples of configuration options. diff --git a/pkg/cli/alpha/config-gen/cert-generation-filter.go b/pkg/cli/alpha/config-gen/cert-generation-filter.go new file mode 100644 index 00000000000..1f167a90a99 --- /dev/null +++ b/pkg/cli/alpha/config-gen/cert-generation-filter.go @@ -0,0 +1,164 @@ +/* +Copyright 2021 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 configgen + +import ( + "encoding/base64" + "fmt" + + "github.com/cloudflare/cfssl/cli/genkey" + "github.com/cloudflare/cfssl/config" + "github.com/cloudflare/cfssl/csr" + "github.com/cloudflare/cfssl/helpers" + "github.com/cloudflare/cfssl/selfsign" + "sigs.k8s.io/kustomize/kyaml/fn/framework" + "sigs.k8s.io/kustomize/kyaml/kio" + "sigs.k8s.io/kustomize/kyaml/yaml" +) + +var _ kio.Filter = &CertFilter{} + +// CertFilter generates and injects certificates into webhook +type CertFilter struct { + *KubebuilderConfigGen +} + +// Filter implements kio.Filter +func (c CertFilter) Filter(input []*yaml.RNode) ([]*yaml.RNode, error) { + + if c.Spec.Webhooks.CertificateSource.Type != "dev" { + return input, nil + } + if err := c.generateCert(); err != nil { + return nil, err + } + + s := &framework.Selector{ + Kinds: []string{ + "ValidatingWebhookConfiguration", + "MutatingWebhookConfiguration", + }, + } + matches, err := s.GetMatches(&framework.ResourceList{Items: input}) + if err != nil { + return nil, err + } + for i := range matches { + wh := matches[i].Field("webhooks") + if wh.IsNilOrEmpty() { + continue + } + err := wh.Value.VisitElements(func(node *yaml.RNode) error { + err := node.PipeE(yaml.LookupCreate(yaml.ScalarNode, "clientConfig", "caBundle"), + yaml.FieldSetter{StringValue: c.Status.CertCA}) + if err != nil { + return err + } + err = node.PipeE(yaml.LookupCreate(yaml.ScalarNode, "clientConfig", "service", "namespace"), + yaml.FieldSetter{StringValue: c.Namespace}) + if err != nil { + return err + } + + return nil + }) + if err != nil { + return nil, err + } + } + + s = &framework.Selector{ + Filter: func(n *yaml.RNode) bool { + // Allow-list conversion webhooks + m, _ := n.GetMeta() + if m.Kind != "CustomResourceDefinition" { + return true + } + return c.Spec.Webhooks.Conversions[m.Name] + }, + } + matches, err = s.GetMatches(&framework.ResourceList{Items: input}) + if err != nil { + return nil, err + } + for i := range matches { + err := matches[i].PipeE(yaml.LookupCreate(yaml.ScalarNode, "spec", "conversion", "strategy"), + yaml.FieldSetter{StringValue: "Webhook"}) + if err != nil { + return nil, err + } + err = matches[i].PipeE(yaml.LookupCreate( + yaml.ScalarNode, "spec", "conversion", "webhookClientConfig", "caBundle"), + yaml.FieldSetter{StringValue: c.Status.CertCA}) + if err != nil { + return nil, err + } + err = matches[i].PipeE(yaml.LookupCreate( + yaml.ScalarNode, "spec", "conversion", "webhookClientConfig", "service", "name"), + yaml.FieldSetter{StringValue: "webhook-service"}) + if err != nil { + return nil, err + } + err = matches[i].PipeE(yaml.LookupCreate( + yaml.ScalarNode, "spec", "conversion", "webhookClientConfig", "service", "namespace"), + yaml.FieldSetter{StringValue: c.Namespace}) + if err != nil { + return nil, err + } + + err = matches[i].PipeE(yaml.LookupCreate( + yaml.ScalarNode, "spec", "conversion", "webhookClientConfig", "service", "path"), + yaml.FieldSetter{StringValue: "/convert"}) + if err != nil { + return nil, err + } + } + + return input, nil +} + +func (c CertFilter) generateCert() error { + var err error + var req = csr.New() + req.Hosts = []string{ + fmt.Sprintf("webhook-service.%s.svc", c.Namespace), + fmt.Sprintf("webhook-service.%s.svc.cluster.local", c.Namespace), + } + req.CN = "kb-dev-controller-manager" + + var key, csrPEM []byte + g := &csr.Generator{Validator: genkey.Validator} + csrPEM, key, err = g.ProcessRequest(req) + if err != nil { + return err + } + priv, err := helpers.ParsePrivateKeyPEM(key) + if err != nil { + return err + } + + profile := config.DefaultConfig() + profile.Expiry = c.Spec.Webhooks.CertificateSource.DevCertificate.CertDuration + cert, err := selfsign.Sign(priv, csrPEM, profile) + if err != nil { + return err + } + + c.Status.CertCA = base64.StdEncoding.EncodeToString(cert) + c.Status.CertKey = base64.StdEncoding.EncodeToString(key) + return nil +} diff --git a/pkg/cli/alpha/config-gen/cert-manager-patches.go b/pkg/cli/alpha/config-gen/cert-manager-patches.go new file mode 100644 index 00000000000..0f4c2436709 --- /dev/null +++ b/pkg/cli/alpha/config-gen/cert-manager-patches.go @@ -0,0 +1,39 @@ +/* +Copyright 2021 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 configgen + +import ( + "github.com/markbates/pkger" + "sigs.k8s.io/kustomize/kyaml/fn/framework" +) + +// CertManagerPatchTemplate returns the PatchTemplate for cert-manager +func CertManagerPatchTemplate(_ *KubebuilderConfigGen) framework.PT { + return framework.PT{ + // keep casting -- required by pkger to find the directory + Dir: pkger.Dir("/pkg/cli/alpha/config-gen/templates/patches/cert-manager"), + Selector: func() *framework.Selector { + return &framework.Selector{ + Kinds: []string{ + "CustomResourceDefinition", + "ValidatingWebhookConfiguration", + "MutatingWebhookConfiguration", + }, + } + }, + } +} diff --git a/pkg/cli/alpha/config-gen/cmd.go b/pkg/cli/alpha/config-gen/cmd.go new file mode 100644 index 00000000000..be3a3ae4977 --- /dev/null +++ b/pkg/cli/alpha/config-gen/cmd.go @@ -0,0 +1,299 @@ +/* +Copyright 2021 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 configgen + +import ( + "fmt" + "io/ioutil" + "os" + "path/filepath" + "strings" + + "github.com/markbates/pkger" + "github.com/spf13/cobra" + + // import pkged files + _ "sigs.k8s.io/kubebuilder/v3" + "sigs.k8s.io/kustomize/kyaml/fn/framework" + "sigs.k8s.io/kustomize/kyaml/kio" + "sigs.k8s.io/kustomize/kyaml/yaml" +) + +// NewCommand returns a new cobra command +func NewCommand() *cobra.Command { + kp := &KubebuilderConfigGen{} + + // legacy kustomize function support + legacyPlugin := os.Getenv("KUSTOMIZE_PLUGIN_CONFIG_STRING") + err := yaml.Unmarshal([]byte(legacyPlugin), kp) + if err != nil { + fmt.Fprintln(os.Stderr, err.Error()) + return nil + } + + // Eager check to make sure pkged templates are found. + err = pkger.Walk("/pkg/cli/alpha/config-gen/templates/resources", func(_ string, _ os.FileInfo, err error) error { + return err + }) + if err != nil { + // this shouldn't fail if it was compiled correctly + fmt.Fprintln(os.Stderr, err.Error()) + return nil + } + + c := framework.TemplateCommand{ + API: kp, + + MergeResources: true, // apply additional inputs as patches + + // these are run before the templates + PreProcessFilters: []kio.Filter{ + // run controller-gen libraries to generate configuration from code + ControllerGenFilter{KubebuilderConfigGen: kp}, + // inject generated certificates + CertFilter{KubebuilderConfigGen: kp}, + }, + + // generate resources + // keep casting -- required by pkger to find the directory + TemplatesFn: framework.TemplatesFromDir(pkger.Dir("/pkg/cli/alpha/config-gen/templates/resources")), + + // patch resources + PatchTemplatesFn: framework.PatchTemplatesFromDir( + CRDPatchTemplate(kp), + CertManagerPatchTemplate(kp), + ControllerManagerPatchTemplate(kp), + ), + + // perform final modifications + PostProcessFilters: []kio.Filter{ + // sort the resources + ComponentFilter{KubebuilderConfigGen: kp}, + SortFilter{KubebuilderConfigGen: kp}, + }, + }.GetCommand() + + if os.Getenv("KUSTOMIZE_FUNCTION") == "true" { + // run as part of kustomize -- read from stdin + c.Args = cobra.MinimumNArgs(0) + } else { + c.Args = cobra.MinimumNArgs(1) + } + c.RemoveCommand(c.Commands()...) + c.Use = "config-gen PROJECT_FILE [RESOURCE_PATCHES...]" + c.Version = `v0.1.0` + c.Short = `Generate configuration for controller-runtime based projects` + c.Long = strings.TrimSpace(` +config-gen programatically generates configuration for a controller-runtime based +project using the project source code (golang) and a KubebuilderConfigGen resource file. + +This is an alternative to expressing configuration as a static set of kustomize patches +in the "config" directory. + +config-gen may be used as a standalone command run against a file, as a kustomize +transformer plugin, or as a configuration function (e.g. kpt). + +config-gen uses the controller-tools generators to generate CRDs from the go source +and then generates additional resources such as the namespace, controller-manager, +webhooks, etc. + +Following is an example KubebuilderConfigGen resource used by config-gen: + + # kubebuilderconfiggen.yaml + # this resource describes how to generate configuration for a controller-runtime + # based project + apiVersion: kubebuilder.sigs.k8s.io/v1alpha1 + kind: KubebuilderConfigGen + metadata: + name: my-project-name + spec: + controllerManager: + image: my-org-name/my-project-name:v0.1.0 + +If this file was at the project source root, config-gen could be used to emit +configuration using: + + kubebuilder alpha config-gen ./kubebuilderconfiggen.yaml + +The KubebuilderConfigGen resource has the following fields: + + apiVersion: kubebuilder.sigs.k8s.io/v1alpha1 + kind: KubebuilderConfigGen + + metadata: + # name of the project. used in various resource names. + # required + name: project-name + + # namespace for the project + # optional -- defaults to "${metadata.name}-system" + namespace: project-namespace + + spec: + # configure how CRDs are generated + crds: + # path to go module source directory provided to controller-gen libraries + # optional -- defaults to '.' + sourceDirectory: ./relative/path + + # configure how the controller-manager is generated + controllerManager: + # image to run + image: my-org/my-project:v0.1.0 + + # if set, use component config for the controller-manager + # optional + componentConfig: + # use component config + enable: true + + # path to component config to put into a ConfigMap + configFilepath: ./path/to/componentconfig.yaml + + # configure how metrics are exposed + metrics: + # disable the auth proxy required for scraping metrics + # disable: false + + # generate prometheus ServiceMonitor resource + enableServiceMonitor: true + + # configure how webhooks are generated + # optional -- defaults to not generating webhook configuration + webhooks: + # enable will cause webhook config to be generated + enable: true + + # configures crds which use conversion webhooks + enableConversion: + # key is the name of the CRD + "bars.example.my.domain": true + + # configures where to get the certificate used for webhooks + # discriminated union + certificateSource: + # type of certificate source + # one of ["certManager", "dev", "manual"] -- defaults to "manual" + # certManager: certmanager is used to manage certificates -- requires CertManager to be installed + # dev: certificate is generated and wired into resources + # manual: no certificate is generated or wired into resources + type: "dev" + + # options for a dev certificate -- requires "dev" as the type + devCertificate: + duration: 1h + `) + c.Example = strings.TrimSpace(` +# +# As command +# +# create the kubebuilderconfiggen.yaml at project root +cat > kubebuilderconfiggen.yaml < kustomization.yaml < $KUBEBUILDER_PLUGIN/KubebuilderConfigGenAdvancedExtension < $KUBEBUILDER_PLUGIN/KubebuilderConfigGenBasicExtension < _output/config.yaml +``` + +```sh +# apply the config to a cluster +kubebuilder alpha config-gen kubebuilderconfiggen.yaml | kubectl apply -f - +``` + +## Run with patch overrides + +`config-gen` will automatically apply any additional resource files provided as patches to the output. + +```sh +kubebuilder alpha config-gen kubebuilderconfiggen.yaml patch.yaml +``` + +## Also see + +See [types.go](../../types.go) for the KubebuilderConfigGen schema. diff --git a/pkg/cli/alpha/config-gen/examples/standalone/kubebuilderproject.yaml b/pkg/cli/alpha/config-gen/examples/standalone/kubebuilderproject.yaml new file mode 100644 index 00000000000..135386690b6 --- /dev/null +++ b/pkg/cli/alpha/config-gen/examples/standalone/kubebuilderproject.yaml @@ -0,0 +1,9 @@ +apiVersion: kubebuilder.sigs.k8s.io/v1alpha1 +kind: KubebuilderConfigGen +metadata: + name: example +spec: + crds: + sourceDirectory: ../../testdata/project/... + controllerManager: + image: example/simple:latest diff --git a/pkg/cli/alpha/config-gen/examples/standalone/patch.yaml b/pkg/cli/alpha/config-gen/examples/standalone/patch.yaml new file mode 100644 index 00000000000..e28fde427d4 --- /dev/null +++ b/pkg/cli/alpha/config-gen/examples/standalone/patch.yaml @@ -0,0 +1,7 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: controller-manager + namespace: example-system +spec: + replicas: 5 diff --git a/pkg/cli/alpha/config-gen/sort-filter.go b/pkg/cli/alpha/config-gen/sort-filter.go new file mode 100644 index 00000000000..11d4a3a0094 --- /dev/null +++ b/pkg/cli/alpha/config-gen/sort-filter.go @@ -0,0 +1,65 @@ +/* +Copyright 2021 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 configgen + +import ( + "math" + "sort" + "strings" + + "sigs.k8s.io/kustomize/kyaml/kio" + "sigs.k8s.io/kustomize/kyaml/yaml" +) + +var _ kio.Filter = &SortFilter{} + +// SortFilter sorts resources so they are installed in the right order +type SortFilter struct { + *KubebuilderConfigGen +} + +var order = func() map[string]int { + m := map[string]int{} + for i, k := range []string{ + "Namespace", "CustomResourceDefinition", "Role", "ClusterRole", + "RoleBinding", "ClusterRoleBinding", "Service", "Secret", "Deployment", + } { + m[k] = i + 1 + } + return m +}() + +// Filter implements kio.Filter +func (cgr SortFilter) Filter(input []*yaml.RNode) ([]*yaml.RNode, error) { + sort.Slice(input, func(i, j int) bool { + mi, _ := input[i].GetMeta() + mj, _ := input[j].GetMeta() + oi := order[mi.Kind] + if oi == 0 { + oi = math.MaxInt32 + } + oj := order[mj.Kind] + if oj == 0 { + oj = math.MaxInt32 + } + if oi != oj { + return oi < oj + } + return strings.Compare(mi.Name, mj.Name) < 0 + }) + return input, nil +} diff --git a/pkg/cli/alpha/config-gen/templates/patches/cert-manager/annotation.template.yaml b/pkg/cli/alpha/config-gen/templates/patches/cert-manager/annotation.template.yaml new file mode 100644 index 00000000000..7cea58889a0 --- /dev/null +++ b/pkg/cli/alpha/config-gen/templates/patches/cert-manager/annotation.template.yaml @@ -0,0 +1,5 @@ +{{ if eq .Spec.Webhooks.CertificateSource.Type "certManager" }} +metadata: + annotations: + cert-manager.io/inject-ca-from: {{ .Namespace }}/{{ .Name }}-serving-cert +{{ end }} diff --git a/pkg/cli/alpha/config-gen/templates/patches/controller-manager/01-auth-proxy.template.yaml b/pkg/cli/alpha/config-gen/templates/patches/controller-manager/01-auth-proxy.template.yaml new file mode 100644 index 00000000000..2deffd20de1 --- /dev/null +++ b/pkg/cli/alpha/config-gen/templates/patches/controller-manager/01-auth-proxy.template.yaml @@ -0,0 +1,20 @@ +{{ if not .Spec.ControllerManager.Metrics.DisableAuthProxy}} +spec: + template: + spec: + containers: + - name: kube-rbac-proxy + image: gcr.io/kubebuilder/kube-rbac-proxy:v0.5.0 + args: + - "--secure-listen-address=0.0.0.0:8443" + - "--upstream=http://127.0.0.1:8080/" + - "--logtostderr=true" + - "--v=10" + ports: + - containerPort: 8443 + name: https + - name: manager + args: + - "--metrics-addr=127.0.0.1:8080" + - "--enable-leader-election" +{{ end }} diff --git a/pkg/cli/alpha/config-gen/templates/patches/controller-manager/02-webhooks.template.yaml b/pkg/cli/alpha/config-gen/templates/patches/controller-manager/02-webhooks.template.yaml new file mode 100644 index 00000000000..c9d7321d4a1 --- /dev/null +++ b/pkg/cli/alpha/config-gen/templates/patches/controller-manager/02-webhooks.template.yaml @@ -0,0 +1,20 @@ +{{ if .Spec.Webhooks.Enable }} +spec: + template: + spec: + containers: + - name: manager + ports: + - containerPort: 9443 + name: webhook-server + protocol: TCP + volumeMounts: + - mountPath: /tmp/k8s-webhook-server/serving-certs + name: cert + readOnly: true + volumes: + - name: cert + secret: + defaultMode: 420 + secretName: webhook-server-cert +{{ end }} diff --git a/pkg/cli/alpha/config-gen/templates/patches/controller-manager/99-component.template.yaml b/pkg/cli/alpha/config-gen/templates/patches/controller-manager/99-component.template.yaml new file mode 100644 index 00000000000..2df24423ff5 --- /dev/null +++ b/pkg/cli/alpha/config-gen/templates/patches/controller-manager/99-component.template.yaml @@ -0,0 +1,17 @@ +{{ if .Spec.ControllerManager.ComponentConfig.Enable }} +spec: + template: + spec: + containers: + - name: manager + args: + - "--config=controller_manager_config.yaml" + volumeMounts: + - name: manager-config + mountPath: /controller_manager_config.yaml + subPath: controller_manager_config.yaml + volumes: + - name: manager-config + configMap: + name: manager-config +{{ end }} diff --git a/pkg/cli/alpha/config-gen/templates/patches/crd/conversion.template.yaml b/pkg/cli/alpha/config-gen/templates/patches/crd/conversion.template.yaml new file mode 100644 index 00000000000..1fe323f2fce --- /dev/null +++ b/pkg/cli/alpha/config-gen/templates/patches/crd/conversion.template.yaml @@ -0,0 +1,17 @@ +{{ if .Spec.Webhooks.Enable }} +spec: + conversion: + strategy: Webhook + webhookClientConfig: +{{- if eq .Spec.Webhooks.CertificateSource.Type "dev" }} + caBundle: {{ .Status.CertCA }} +{{- else }} + # this is "\n" used as a placeholder, otherwise it will be rejected by the apiserver for being blank, + # but we're going to set it later using the cert-manager (or potentially a patch if not using cert-manager) + caBundle: Cg== +{{- end }} + service: + namespace: {{ .Namespace }} + name: webhook-service + path: /convert +{{ end }} diff --git a/pkg/cli/alpha/config-gen/templates/resources/auth-proxy-rbac.template.yaml b/pkg/cli/alpha/config-gen/templates/resources/auth-proxy-rbac.template.yaml new file mode 100644 index 00000000000..52b185ff71f --- /dev/null +++ b/pkg/cli/alpha/config-gen/templates/resources/auth-proxy-rbac.template.yaml @@ -0,0 +1,29 @@ +{{ if not .Spec.ControllerManager.Metrics.DisableAuthProxy}} +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: {{ .Name }}-proxy-role +rules: +- apiGroups: ["authentication.k8s.io"] + resources: + - tokenreviews + verbs: ["create"] +- apiGroups: ["authorization.k8s.io"] + resources: + - subjectaccessreviews + verbs: ["create"] +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: {{ .Name }}-proxy-rolebinding +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: {{ .Name }}-proxy-role +subjects: +- kind: ServiceAccount + name: default + namespace: {{ .Namespace }} +--- +{{ end }} diff --git a/pkg/cli/alpha/config-gen/templates/resources/cert-manager.template.yaml b/pkg/cli/alpha/config-gen/templates/resources/cert-manager.template.yaml new file mode 100644 index 00000000000..914507e920c --- /dev/null +++ b/pkg/cli/alpha/config-gen/templates/resources/cert-manager.template.yaml @@ -0,0 +1,28 @@ +{{ if eq .Spec.Webhooks.CertificateSource.Type "certManager" }} +# The following manifests contain a self-signed issuer CR and a certificate CR. +# More document can be found at https://docs.cert-manager.io +# WARNING: Targets CertManager 0.11 check https://docs.cert-manager.io/en/latest/tasks/upgrading/index.html for +# breaking changes +apiVersion: cert-manager.io/v1 +kind: Issuer +metadata: + name: {{ .Name }}-selfsigned-issuer + namespace: {{ .Namespace }} +spec: + selfSigned: {} +--- +apiVersion: cert-manager.io/v1 +kind: Certificate +metadata: + name: {{ .Name }}-serving-cert + namespace: {{ .Namespace }} +spec: + dnsNames: + - webhook-service.{{ .Namespace }}.svc + - webhook-service.{{ .Namespace }}.svc.cluster.local + issuerRef: + kind: Issuer + name: selfsigned-issuer + secretName: webhook-server-cert # this secret will not be prefixed, since it's not managed by kustomize +--- +{{ end }} diff --git a/pkg/cli/alpha/config-gen/templates/resources/component.template.yaml b/pkg/cli/alpha/config-gen/templates/resources/component.template.yaml new file mode 100644 index 00000000000..179bb6237c3 --- /dev/null +++ b/pkg/cli/alpha/config-gen/templates/resources/component.template.yaml @@ -0,0 +1,12 @@ +{{- if .Spec.ControllerManager.ComponentConfig.Enable }} +apiVersion: v1 +kind: ConfigMap +metadata: + name: manager-config + namespace: {{ .Namespace }} + labels: + control-plane: controller-manager +data: + controller_manager_config.yaml: "" +--- +{{ end }} \ No newline at end of file diff --git a/pkg/cli/alpha/config-gen/templates/resources/controller-manager.template.yaml b/pkg/cli/alpha/config-gen/templates/resources/controller-manager.template.yaml new file mode 100644 index 00000000000..5f0dc4a137b --- /dev/null +++ b/pkg/cli/alpha/config-gen/templates/resources/controller-manager.template.yaml @@ -0,0 +1,66 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: controller-manager + namespace: {{ .Namespace }} + labels: + control-plane: controller-manager +spec: + selector: + matchLabels: + control-plane: controller-manager + replicas: 1 + template: + metadata: + labels: + control-plane: controller-manager + spec: + containers: + - command: + - /manager + args: + - --enable-leader-election + image: {{ .Spec.ControllerManager.Image }} + name: manager + resources: + limits: + cpu: 100m + memory: 30Mi + requests: + cpu: 100m + memory: 20Mi + terminationGracePeriodSeconds: 10 +--- +{{- if .Spec.Webhooks.Enable }} +apiVersion: v1 +kind: Service +metadata: + namespace: {{ .Namespace }} + name: webhook-service + labels: + control-plane: webhook +spec: + ports: + - port: 443 + targetPort: webhook-server + selector: + control-plane: controller-manager +--- +{{- end}} +{{- if not .Spec.ControllerManager.Metrics.DisableAuthProxy}} +apiVersion: v1 +kind: Service +metadata: + namespace: {{ .Namespace }} + name: metrics-service + labels: + control-plane: controller-manager +spec: + ports: + - name: https + port: 8443 + targetPort: https + selector: + control-plane: controller-manager +--- +{{ end }} diff --git a/pkg/cli/alpha/config-gen/templates/resources/development-webhook-secret.template.yaml b/pkg/cli/alpha/config-gen/templates/resources/development-webhook-secret.template.yaml new file mode 100644 index 00000000000..1720dc6b246 --- /dev/null +++ b/pkg/cli/alpha/config-gen/templates/resources/development-webhook-secret.template.yaml @@ -0,0 +1,11 @@ +{{- if eq .Spec.Webhooks.CertificateSource.Type "dev" }} +apiVersion: v1 +kind: Secret +metadata: + name: webhook-server-cert + namespace: {{ .Namespace }} +data: + tls.key: {{ .Status.CertKey }} + tls.crt: {{ .Status.CertCA }} +--- +{{ end }} diff --git a/pkg/cli/alpha/config-gen/templates/resources/namespace.template.yaml b/pkg/cli/alpha/config-gen/templates/resources/namespace.template.yaml new file mode 100644 index 00000000000..86066e557d8 --- /dev/null +++ b/pkg/cli/alpha/config-gen/templates/resources/namespace.template.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: Namespace +metadata: + labels: + control-plane: controller-manager + name: {{ .Namespace }} diff --git a/pkg/cli/alpha/config-gen/templates/resources/prometheus.template.yaml b/pkg/cli/alpha/config-gen/templates/resources/prometheus.template.yaml new file mode 100644 index 00000000000..a50f580e840 --- /dev/null +++ b/pkg/cli/alpha/config-gen/templates/resources/prometheus.template.yaml @@ -0,0 +1,17 @@ +{{- if .Spec.ControllerManager.Metrics.EnableServiceMonitor }} +apiVersion: monitoring.coreos.com/v1 +kind: ServiceMonitor +metadata: + namespace: {{ .Namespace }} + name: controller-manager-metrics-monitor + labels: + control-plane: controller-manager +spec: + endpoints: + - path: /metrics + port: https + selector: + matchLabels: + control-plane: controller-manager +--- +{{ end }} diff --git a/pkg/cli/alpha/config-gen/templates/resources/rbac.template.yaml b/pkg/cli/alpha/config-gen/templates/resources/rbac.template.yaml new file mode 100644 index 00000000000..63e49b80a6d --- /dev/null +++ b/pkg/cli/alpha/config-gen/templates/resources/rbac.template.yaml @@ -0,0 +1,60 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: {{ .Namespace }}-manager-rolebinding +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: {{ .Namespace }}-manager-role +subjects: +- kind: ServiceAccount + name: default + namespace: {{ .Namespace }} +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + name: {{ .Namespace }}-leader-election-role + namespace: {{ .Namespace }} +rules: +- apiGroups: + - "" + resources: + - configmaps + verbs: + - get + - list + - watch + - create + - update + - patch + - delete +- apiGroups: + - "" + resources: + - configmaps/status + verbs: + - get + - update + - patch +- apiGroups: + - "" + resources: + - events + verbs: + - create +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: {{ .Namespace }}-leader-election-rolebinding + namespace: {{ .Namespace }} +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: {{ .Namespace }}-leader-election-role +subjects: +- kind: ServiceAccount + name: default + namespace: {{ .Namespace }} +--- diff --git a/pkg/cli/alpha/config-gen/testdata/componentconfig/config.yaml b/pkg/cli/alpha/config-gen/testdata/componentconfig/config.yaml new file mode 100644 index 00000000000..68a8d7dd0ab --- /dev/null +++ b/pkg/cli/alpha/config-gen/testdata/componentconfig/config.yaml @@ -0,0 +1,13 @@ +apiVersion: kubebuilder.sigs.k8s.io/v1alpha1 +kind: KubebuilderConfigGen +metadata: + name: simple +spec: + crds: + sourceDirectory: ../project/... + + controllerManager: + image: example/simple:latest + componentConfig: + enable: true + configFilepath: ./controller_manager_config.yaml diff --git a/pkg/cli/alpha/config-gen/testdata/componentconfig/controller_manager_config.yaml b/pkg/cli/alpha/config-gen/testdata/componentconfig/controller_manager_config.yaml new file mode 100644 index 00000000000..d1a5c33004d --- /dev/null +++ b/pkg/cli/alpha/config-gen/testdata/componentconfig/controller_manager_config.yaml @@ -0,0 +1,9 @@ +apiVersion: controller-runtime.sigs.k8s.io/v1alpha1 +kind: ControllerManagerConfig +metrics: + bindAddress: 127.0.0.1:8080 +webhook: + port: 9443 +leaderElection: + leaderElect: true + resourceName: 6858fb70.testproject.org \ No newline at end of file diff --git a/pkg/cli/alpha/config-gen/testdata/componentconfig/expected.yaml b/pkg/cli/alpha/config-gen/testdata/componentconfig/expected.yaml new file mode 100644 index 00000000000..0bcd3aa48bc --- /dev/null +++ b/pkg/cli/alpha/config-gen/testdata/componentconfig/expected.yaml @@ -0,0 +1,325 @@ +apiVersion: v1 +kind: Namespace +metadata: + labels: + control-plane: controller-manager + name: simple-system +--- +apiVersion: apiextensions.k8s.io/v1beta1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: (unknown) + creationTimestamp: null + name: bars.example.my.domain +spec: + group: example.my.domain + names: + kind: Bar + listKind: BarList + plural: bars + singular: bar + scope: Namespaced + validation: + openAPIV3Schema: + description: Bar is the Schema for the bars API + properties: + apiVersion: + description: 'APIVersion defines the versioned schema ' + type: string + kind: + description: 'Kind is a string value representing the ' + type: string + metadata: + type: object + spec: + description: BarSpec defines the desired state of Bar + properties: + foo: + description: Foo is an example field of Bar. + type: string + type: object + status: + description: 'BarStatus defines the observed state of ' + type: object + type: object + version: v1beta1 + versions: + - name: v1beta1 + served: true + storage: true +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: [] +--- +apiVersion: apiextensions.k8s.io/v1beta1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: (unknown) + creationTimestamp: null + name: foos.example.my.domain +spec: + group: example.my.domain + names: + kind: Foo + listKind: FooList + plural: foos + singular: foo + scope: Namespaced + validation: + openAPIV3Schema: + description: Foo is the Schema for the foos API + properties: + apiVersion: + description: 'APIVersion defines the versioned schema ' + type: string + kind: + description: 'Kind is a string value representing the ' + type: string + metadata: + type: object + spec: + description: FooSpec defines the desired state of Foo + properties: + foo: + description: Foo is an example field of Foo. + type: string + type: object + status: + description: 'FooStatus defines the observed state of ' + type: object + type: object + version: v1alpha1 + versions: + - name: v1alpha1 + served: true + storage: true +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: [] +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + name: simple-system-leader-election-role + namespace: simple-system +rules: + - apiGroups: + - "" + resources: + - configmaps + verbs: + - get + - list + - watch + - create + - update + - patch + - delete + - apiGroups: + - "" + resources: + - configmaps/status + verbs: + - get + - update + - patch + - apiGroups: + - "" + resources: + - events + verbs: + - create +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: simple-proxy-role +rules: + - apiGroups: ["authentication.k8s.io"] + resources: + - tokenreviews + verbs: ["create"] + - apiGroups: ["authorization.k8s.io"] + resources: + - subjectaccessreviews + verbs: ["create"] +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + creationTimestamp: null + name: simple-system-manager-role +rules: + - apiGroups: + - example.my.domain + resources: + - bars + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - example.my.domain + resources: + - bars/status + verbs: + - get + - patch + - update + - apiGroups: + - example.my.domain + resources: + - foos + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - example.my.domain + resources: + - foos/status + verbs: + - get + - patch + - update +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: simple-system-leader-election-rolebinding + namespace: simple-system +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: simple-system-leader-election-role +subjects: + - kind: ServiceAccount + name: default + namespace: simple-system +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: simple-proxy-rolebinding +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: simple-proxy-role +subjects: + - kind: ServiceAccount + name: default + namespace: simple-system +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: simple-system-manager-rolebinding +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: simple-system-manager-role +subjects: + - kind: ServiceAccount + name: default + namespace: simple-system +--- +apiVersion: v1 +kind: Service +metadata: + namespace: simple-system + name: metrics-service + labels: + control-plane: controller-manager +spec: + ports: + - name: https + port: 8443 + targetPort: https + selector: + control-plane: controller-manager +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: controller-manager + namespace: simple-system + labels: + control-plane: controller-manager +spec: + selector: + matchLabels: + control-plane: controller-manager + replicas: 1 + template: + metadata: + labels: + control-plane: controller-manager + spec: + containers: + - command: + - /manager + args: + - "--config=controller_manager_config.yaml" + image: example/simple:latest + name: manager + resources: + limits: + cpu: 100m + memory: 30Mi + requests: + cpu: 100m + memory: 20Mi + volumeMounts: + - name: manager-config + mountPath: /controller_manager_config.yaml + subPath: controller_manager_config.yaml + - name: kube-rbac-proxy + image: gcr.io/kubebuilder/kube-rbac-proxy:v0.5.0 + args: + - "--secure-listen-address=0.0.0.0:8443" + - "--upstream=http://127.0.0.1:8080/" + - "--logtostderr=true" + - "--v=10" + ports: + - containerPort: 8443 + name: https + terminationGracePeriodSeconds: 10 + volumes: + - name: manager-config + configMap: + name: manager-config +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: manager-config + namespace: simple-system + labels: + control-plane: controller-manager +data: + controller_manager_config.yaml: |- + apiVersion: controller-runtime.sigs.k8s.io/v1alpha1 + kind: ControllerManagerConfig + metrics: + bindAddress: 127.0.0.1:8080 + webhook: + port: 9443 + leaderElection: + leaderElect: true + resourceName: 6858fb70.testproject.org diff --git a/pkg/cli/alpha/config-gen/testdata/default/config.yaml b/pkg/cli/alpha/config-gen/testdata/default/config.yaml new file mode 100644 index 00000000000..74d43cfe6e4 --- /dev/null +++ b/pkg/cli/alpha/config-gen/testdata/default/config.yaml @@ -0,0 +1,10 @@ +apiVersion: kubebuilder.sigs.k8s.io/v1alpha1 +kind: KubebuilderConfigGen +metadata: + name: simple +spec: + crds: + sourceDirectory: ../project/... + + controllerManager: + image: example/simple:latest diff --git a/pkg/cli/alpha/config-gen/testdata/default/expected.yaml b/pkg/cli/alpha/config-gen/testdata/default/expected.yaml new file mode 100644 index 00000000000..9b9ff310353 --- /dev/null +++ b/pkg/cli/alpha/config-gen/testdata/default/expected.yaml @@ -0,0 +1,299 @@ +apiVersion: v1 +kind: Namespace +metadata: + labels: + control-plane: controller-manager + name: simple-system +--- +apiVersion: apiextensions.k8s.io/v1beta1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: (unknown) + creationTimestamp: null + name: bars.example.my.domain +spec: + group: example.my.domain + names: + kind: Bar + listKind: BarList + plural: bars + singular: bar + scope: Namespaced + validation: + openAPIV3Schema: + description: Bar is the Schema for the bars API + properties: + apiVersion: + description: 'APIVersion defines the versioned schema ' + type: string + kind: + description: 'Kind is a string value representing the ' + type: string + metadata: + type: object + spec: + description: BarSpec defines the desired state of Bar + properties: + foo: + description: Foo is an example field of Bar. + type: string + type: object + status: + description: 'BarStatus defines the observed state of ' + type: object + type: object + version: v1beta1 + versions: + - name: v1beta1 + served: true + storage: true +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: [] +--- +apiVersion: apiextensions.k8s.io/v1beta1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: (unknown) + creationTimestamp: null + name: foos.example.my.domain +spec: + group: example.my.domain + names: + kind: Foo + listKind: FooList + plural: foos + singular: foo + scope: Namespaced + validation: + openAPIV3Schema: + description: Foo is the Schema for the foos API + properties: + apiVersion: + description: 'APIVersion defines the versioned schema ' + type: string + kind: + description: 'Kind is a string value representing the ' + type: string + metadata: + type: object + spec: + description: FooSpec defines the desired state of Foo + properties: + foo: + description: Foo is an example field of Foo. + type: string + type: object + status: + description: 'FooStatus defines the observed state of ' + type: object + type: object + version: v1alpha1 + versions: + - name: v1alpha1 + served: true + storage: true +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: [] +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + name: simple-system-leader-election-role + namespace: simple-system +rules: + - apiGroups: + - "" + resources: + - configmaps + verbs: + - get + - list + - watch + - create + - update + - patch + - delete + - apiGroups: + - "" + resources: + - configmaps/status + verbs: + - get + - update + - patch + - apiGroups: + - "" + resources: + - events + verbs: + - create +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: simple-proxy-role +rules: + - apiGroups: ["authentication.k8s.io"] + resources: + - tokenreviews + verbs: ["create"] + - apiGroups: ["authorization.k8s.io"] + resources: + - subjectaccessreviews + verbs: ["create"] +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + creationTimestamp: null + name: simple-system-manager-role +rules: + - apiGroups: + - example.my.domain + resources: + - bars + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - example.my.domain + resources: + - bars/status + verbs: + - get + - patch + - update + - apiGroups: + - example.my.domain + resources: + - foos + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - example.my.domain + resources: + - foos/status + verbs: + - get + - patch + - update +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: simple-system-leader-election-rolebinding + namespace: simple-system +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: simple-system-leader-election-role +subjects: + - kind: ServiceAccount + name: default + namespace: simple-system +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: simple-proxy-rolebinding +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: simple-proxy-role +subjects: + - kind: ServiceAccount + name: default + namespace: simple-system +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: simple-system-manager-rolebinding +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: simple-system-manager-role +subjects: + - kind: ServiceAccount + name: default + namespace: simple-system +--- +apiVersion: v1 +kind: Service +metadata: + namespace: simple-system + name: metrics-service + labels: + control-plane: controller-manager +spec: + ports: + - name: https + port: 8443 + targetPort: https + selector: + control-plane: controller-manager +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: controller-manager + namespace: simple-system + labels: + control-plane: controller-manager +spec: + selector: + matchLabels: + control-plane: controller-manager + replicas: 1 + template: + metadata: + labels: + control-plane: controller-manager + spec: + containers: + - command: + - /manager + args: + - "--metrics-addr=127.0.0.1:8080" + - "--enable-leader-election" + image: example/simple:latest + name: manager + resources: + limits: + cpu: 100m + memory: 30Mi + requests: + cpu: 100m + memory: 20Mi + - name: kube-rbac-proxy + image: gcr.io/kubebuilder/kube-rbac-proxy:v0.5.0 + args: + - "--secure-listen-address=0.0.0.0:8443" + - "--upstream=http://127.0.0.1:8080/" + - "--logtostderr=true" + - "--v=10" + ports: + - containerPort: 8443 + name: https + terminationGracePeriodSeconds: 10 diff --git a/pkg/cli/alpha/config-gen/testdata/disableauthproxy/config.yaml b/pkg/cli/alpha/config-gen/testdata/disableauthproxy/config.yaml new file mode 100644 index 00000000000..7dba4473715 --- /dev/null +++ b/pkg/cli/alpha/config-gen/testdata/disableauthproxy/config.yaml @@ -0,0 +1,12 @@ +apiVersion: kubebuilder.sigs.k8s.io/v1alpha1 +kind: KubebuilderConfigGen +metadata: + name: simple +spec: + crds: + sourceDirectory: ../project/... + + controllerManager: + image: example/simple:latest + metrics: + disableAuthProxy: true diff --git a/pkg/cli/alpha/config-gen/testdata/disableauthproxy/expected.yaml b/pkg/cli/alpha/config-gen/testdata/disableauthproxy/expected.yaml new file mode 100644 index 00000000000..8cf8984867b --- /dev/null +++ b/pkg/cli/alpha/config-gen/testdata/disableauthproxy/expected.yaml @@ -0,0 +1,246 @@ +apiVersion: v1 +kind: Namespace +metadata: + labels: + control-plane: controller-manager + name: simple-system +--- +apiVersion: apiextensions.k8s.io/v1beta1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: (unknown) + creationTimestamp: null + name: bars.example.my.domain +spec: + group: example.my.domain + names: + kind: Bar + listKind: BarList + plural: bars + singular: bar + scope: Namespaced + validation: + openAPIV3Schema: + description: Bar is the Schema for the bars API + properties: + apiVersion: + description: 'APIVersion defines the versioned schema ' + type: string + kind: + description: 'Kind is a string value representing the ' + type: string + metadata: + type: object + spec: + description: BarSpec defines the desired state of Bar + properties: + foo: + description: Foo is an example field of Bar. + type: string + type: object + status: + description: 'BarStatus defines the observed state of ' + type: object + type: object + version: v1beta1 + versions: + - name: v1beta1 + served: true + storage: true +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: [] +--- +apiVersion: apiextensions.k8s.io/v1beta1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: (unknown) + creationTimestamp: null + name: foos.example.my.domain +spec: + group: example.my.domain + names: + kind: Foo + listKind: FooList + plural: foos + singular: foo + scope: Namespaced + validation: + openAPIV3Schema: + description: Foo is the Schema for the foos API + properties: + apiVersion: + description: 'APIVersion defines the versioned schema ' + type: string + kind: + description: 'Kind is a string value representing the ' + type: string + metadata: + type: object + spec: + description: FooSpec defines the desired state of Foo + properties: + foo: + description: Foo is an example field of Foo. + type: string + type: object + status: + description: 'FooStatus defines the observed state of ' + type: object + type: object + version: v1alpha1 + versions: + - name: v1alpha1 + served: true + storage: true +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: [] +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + name: simple-system-leader-election-role + namespace: simple-system +rules: + - apiGroups: + - "" + resources: + - configmaps + verbs: + - get + - list + - watch + - create + - update + - patch + - delete + - apiGroups: + - "" + resources: + - configmaps/status + verbs: + - get + - update + - patch + - apiGroups: + - "" + resources: + - events + verbs: + - create +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + creationTimestamp: null + name: simple-system-manager-role +rules: + - apiGroups: + - example.my.domain + resources: + - bars + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - example.my.domain + resources: + - bars/status + verbs: + - get + - patch + - update + - apiGroups: + - example.my.domain + resources: + - foos + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - example.my.domain + resources: + - foos/status + verbs: + - get + - patch + - update +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: simple-system-leader-election-rolebinding + namespace: simple-system +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: simple-system-leader-election-role +subjects: + - kind: ServiceAccount + name: default + namespace: simple-system +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: simple-system-manager-rolebinding +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: simple-system-manager-role +subjects: + - kind: ServiceAccount + name: default + namespace: simple-system +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: controller-manager + namespace: simple-system + labels: + control-plane: controller-manager +spec: + selector: + matchLabels: + control-plane: controller-manager + replicas: 1 + template: + metadata: + labels: + control-plane: controller-manager + spec: + containers: + - command: + - /manager + args: + - --enable-leader-election + image: example/simple:latest + name: manager + resources: + limits: + cpu: 100m + memory: 30Mi + requests: + cpu: 100m + memory: 20Mi + terminationGracePeriodSeconds: 10 diff --git a/pkg/cli/alpha/config-gen/testdata/doc.go b/pkg/cli/alpha/config-gen/testdata/doc.go new file mode 100644 index 00000000000..91a14487c02 --- /dev/null +++ b/pkg/cli/alpha/config-gen/testdata/doc.go @@ -0,0 +1,27 @@ +/* +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 testdata contains input and expected output for running config-gen. +// +// To add a new test create a new directory with the test name, a config.yaml with +// the input, and an expected.yaml with the expected output. +// +// The project directory contains a sample project used as input. New sample projects +// may be added as new directories and referenced from the config.yaml. +// +// To update the testdata automatically modify ../configgen_test.go by uncommenting +// the corresponding line. +package testdata diff --git a/pkg/cli/alpha/config-gen/testdata/enablecertmanager/config.yaml b/pkg/cli/alpha/config-gen/testdata/enablecertmanager/config.yaml new file mode 100644 index 00000000000..1de154760b9 --- /dev/null +++ b/pkg/cli/alpha/config-gen/testdata/enablecertmanager/config.yaml @@ -0,0 +1,15 @@ +apiVersion: kubebuilder.sigs.k8s.io/v1alpha1 +kind: KubebuilderConfigGen +metadata: + name: simple +spec: + crds: + sourceDirectory: ../project/... + + controllerManager: + image: example/simple:latest + + webhooks: + enable: true + certificateSource: + type: certManager diff --git a/pkg/cli/alpha/config-gen/testdata/enablecertmanager/expected.yaml b/pkg/cli/alpha/config-gen/testdata/enablecertmanager/expected.yaml new file mode 100644 index 00000000000..558971dbaf2 --- /dev/null +++ b/pkg/cli/alpha/config-gen/testdata/enablecertmanager/expected.yaml @@ -0,0 +1,352 @@ +apiVersion: v1 +kind: Namespace +metadata: + labels: + control-plane: controller-manager + name: simple-system +--- +apiVersion: apiextensions.k8s.io/v1beta1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: (unknown) + cert-manager.io/inject-ca-from: simple-system/simple-serving-cert + name: bars.example.my.domain +spec: + group: example.my.domain + names: + kind: Bar + listKind: BarList + plural: bars + singular: bar + scope: Namespaced + validation: + openAPIV3Schema: + description: Bar is the Schema for the bars API + properties: + apiVersion: + description: 'APIVersion defines the versioned schema ' + type: string + kind: + description: 'Kind is a string value representing the ' + type: string + metadata: + type: object + spec: + description: BarSpec defines the desired state of Bar + properties: + foo: + description: Foo is an example field of Bar. + type: string + type: object + status: + description: 'BarStatus defines the observed state of ' + type: object + type: object + version: v1beta1 + versions: + - name: v1beta1 + served: true + storage: true +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: [] +--- +apiVersion: apiextensions.k8s.io/v1beta1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: (unknown) + cert-manager.io/inject-ca-from: simple-system/simple-serving-cert + name: foos.example.my.domain +spec: + group: example.my.domain + names: + kind: Foo + listKind: FooList + plural: foos + singular: foo + scope: Namespaced + validation: + openAPIV3Schema: + description: Foo is the Schema for the foos API + properties: + apiVersion: + description: 'APIVersion defines the versioned schema ' + type: string + kind: + description: 'Kind is a string value representing the ' + type: string + metadata: + type: object + spec: + description: FooSpec defines the desired state of Foo + properties: + foo: + description: Foo is an example field of Foo. + type: string + type: object + status: + description: 'FooStatus defines the observed state of ' + type: object + type: object + version: v1alpha1 + versions: + - name: v1alpha1 + served: true + storage: true +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: [] +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + name: simple-system-leader-election-role + namespace: simple-system +rules: + - apiGroups: + - "" + resources: + - configmaps + verbs: + - get + - list + - watch + - create + - update + - patch + - delete + - apiGroups: + - "" + resources: + - configmaps/status + verbs: + - get + - update + - patch + - apiGroups: + - "" + resources: + - events + verbs: + - create +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: simple-proxy-role +rules: + - apiGroups: ["authentication.k8s.io"] + resources: + - tokenreviews + verbs: ["create"] + - apiGroups: ["authorization.k8s.io"] + resources: + - subjectaccessreviews + verbs: ["create"] +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + creationTimestamp: null + name: simple-system-manager-role +rules: + - apiGroups: + - example.my.domain + resources: + - bars + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - example.my.domain + resources: + - bars/status + verbs: + - get + - patch + - update + - apiGroups: + - example.my.domain + resources: + - foos + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - example.my.domain + resources: + - foos/status + verbs: + - get + - patch + - update +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: simple-system-leader-election-rolebinding + namespace: simple-system +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: simple-system-leader-election-role +subjects: + - kind: ServiceAccount + name: default + namespace: simple-system +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: simple-proxy-rolebinding +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: simple-proxy-role +subjects: + - kind: ServiceAccount + name: default + namespace: simple-system +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: simple-system-manager-rolebinding +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: simple-system-manager-role +subjects: + - kind: ServiceAccount + name: default + namespace: simple-system +--- +apiVersion: v1 +kind: Service +metadata: + namespace: simple-system + name: metrics-service + labels: + control-plane: controller-manager +spec: + ports: + - name: https + port: 8443 + targetPort: https + selector: + control-plane: controller-manager +--- +apiVersion: v1 +kind: Service +metadata: + namespace: simple-system + name: webhook-service + labels: + control-plane: webhook +spec: + ports: + - port: 443 + targetPort: webhook-server + selector: + control-plane: controller-manager +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: controller-manager + namespace: simple-system + labels: + control-plane: controller-manager +spec: + selector: + matchLabels: + control-plane: controller-manager + replicas: 1 + template: + metadata: + labels: + control-plane: controller-manager + spec: + containers: + - command: + - /manager + args: + - "--metrics-addr=127.0.0.1:8080" + - "--enable-leader-election" + image: example/simple:latest + name: manager + resources: + limits: + cpu: 100m + memory: 30Mi + requests: + cpu: 100m + memory: 20Mi + ports: + - containerPort: 9443 + name: webhook-server + protocol: TCP + volumeMounts: + - mountPath: /tmp/k8s-webhook-server/serving-certs + name: cert + readOnly: true + - name: kube-rbac-proxy + image: gcr.io/kubebuilder/kube-rbac-proxy:v0.5.0 + args: + - "--secure-listen-address=0.0.0.0:8443" + - "--upstream=http://127.0.0.1:8080/" + - "--logtostderr=true" + - "--v=10" + ports: + - containerPort: 8443 + name: https + terminationGracePeriodSeconds: 10 + volumes: + - name: cert + secret: + defaultMode: 420 + secretName: webhook-server-cert +--- +# The following manifests contain a self-signed issuer CR and a certificate CR. +# More document can be found at https://docs.cert-manager.io +# WARNING: Targets CertManager 0.11 check https://docs.cert-manager.io/en/latest/tasks/upgrading/index.html for +# breaking changes +apiVersion: cert-manager.io/v1 +kind: Issuer +metadata: + name: simple-selfsigned-issuer + namespace: simple-system +spec: + selfSigned: {} +--- +apiVersion: cert-manager.io/v1 +kind: Certificate +metadata: + name: simple-serving-cert + namespace: simple-system +spec: + dnsNames: + - webhook-service.simple-system.svc + - webhook-service.simple-system.svc.cluster.local + issuerRef: + kind: Issuer + name: selfsigned-issuer + secretName: webhook-server-cert # this secret will not be prefixed, since it's not managed by kustomize diff --git a/pkg/cli/alpha/config-gen/testdata/enableconversionwebhooks/config.yaml b/pkg/cli/alpha/config-gen/testdata/enableconversionwebhooks/config.yaml new file mode 100644 index 00000000000..6d7ce318579 --- /dev/null +++ b/pkg/cli/alpha/config-gen/testdata/enableconversionwebhooks/config.yaml @@ -0,0 +1,15 @@ +apiVersion: kubebuilder.sigs.k8s.io/v1alpha1 +kind: KubebuilderConfigGen +metadata: + name: simple +spec: + crds: + sourceDirectory: ../project/... + + controllerManager: + image: example/simple:latest + + webhooks: + enable: true + conversions: + "bars.example.my.domain": true \ No newline at end of file diff --git a/pkg/cli/alpha/config-gen/testdata/enableconversionwebhooks/expected.yaml b/pkg/cli/alpha/config-gen/testdata/enableconversionwebhooks/expected.yaml new file mode 100644 index 00000000000..5dc9238932a --- /dev/null +++ b/pkg/cli/alpha/config-gen/testdata/enableconversionwebhooks/expected.yaml @@ -0,0 +1,335 @@ +apiVersion: v1 +kind: Namespace +metadata: + labels: + control-plane: controller-manager + name: simple-system +--- +apiVersion: apiextensions.k8s.io/v1beta1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: (unknown) + name: bars.example.my.domain +spec: + group: example.my.domain + names: + kind: Bar + listKind: BarList + plural: bars + singular: bar + scope: Namespaced + validation: + openAPIV3Schema: + description: Bar is the Schema for the bars API + properties: + apiVersion: + description: 'APIVersion defines the versioned schema ' + type: string + kind: + description: 'Kind is a string value representing the ' + type: string + metadata: + type: object + spec: + description: BarSpec defines the desired state of Bar + properties: + foo: + description: Foo is an example field of Bar. + type: string + type: object + status: + description: 'BarStatus defines the observed state of ' + type: object + type: object + version: v1beta1 + versions: + - name: v1beta1 + served: true + storage: true + conversion: + strategy: Webhook + webhookClientConfig: + # this is "\n" used as a placeholder, otherwise it will be rejected by the apiserver for being blank, + # but we're going to set it later using the cert-manager (or potentially a patch if not using cert-manager) + caBundle: Cg== + service: + namespace: simple-system + name: webhook-service + path: /convert +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: [] +--- +apiVersion: apiextensions.k8s.io/v1beta1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: (unknown) + creationTimestamp: null + name: foos.example.my.domain +spec: + group: example.my.domain + names: + kind: Foo + listKind: FooList + plural: foos + singular: foo + scope: Namespaced + validation: + openAPIV3Schema: + description: Foo is the Schema for the foos API + properties: + apiVersion: + description: 'APIVersion defines the versioned schema ' + type: string + kind: + description: 'Kind is a string value representing the ' + type: string + metadata: + type: object + spec: + description: FooSpec defines the desired state of Foo + properties: + foo: + description: Foo is an example field of Foo. + type: string + type: object + status: + description: 'FooStatus defines the observed state of ' + type: object + type: object + version: v1alpha1 + versions: + - name: v1alpha1 + served: true + storage: true +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: [] +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + name: simple-system-leader-election-role + namespace: simple-system +rules: + - apiGroups: + - "" + resources: + - configmaps + verbs: + - get + - list + - watch + - create + - update + - patch + - delete + - apiGroups: + - "" + resources: + - configmaps/status + verbs: + - get + - update + - patch + - apiGroups: + - "" + resources: + - events + verbs: + - create +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: simple-proxy-role +rules: + - apiGroups: ["authentication.k8s.io"] + resources: + - tokenreviews + verbs: ["create"] + - apiGroups: ["authorization.k8s.io"] + resources: + - subjectaccessreviews + verbs: ["create"] +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + creationTimestamp: null + name: simple-system-manager-role +rules: + - apiGroups: + - example.my.domain + resources: + - bars + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - example.my.domain + resources: + - bars/status + verbs: + - get + - patch + - update + - apiGroups: + - example.my.domain + resources: + - foos + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - example.my.domain + resources: + - foos/status + verbs: + - get + - patch + - update +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: simple-system-leader-election-rolebinding + namespace: simple-system +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: simple-system-leader-election-role +subjects: + - kind: ServiceAccount + name: default + namespace: simple-system +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: simple-proxy-rolebinding +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: simple-proxy-role +subjects: + - kind: ServiceAccount + name: default + namespace: simple-system +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: simple-system-manager-rolebinding +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: simple-system-manager-role +subjects: + - kind: ServiceAccount + name: default + namespace: simple-system +--- +apiVersion: v1 +kind: Service +metadata: + namespace: simple-system + name: metrics-service + labels: + control-plane: controller-manager +spec: + ports: + - name: https + port: 8443 + targetPort: https + selector: + control-plane: controller-manager +--- +apiVersion: v1 +kind: Service +metadata: + namespace: simple-system + name: webhook-service + labels: + control-plane: webhook +spec: + ports: + - port: 443 + targetPort: webhook-server + selector: + control-plane: controller-manager +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: controller-manager + namespace: simple-system + labels: + control-plane: controller-manager +spec: + selector: + matchLabels: + control-plane: controller-manager + replicas: 1 + template: + metadata: + labels: + control-plane: controller-manager + spec: + containers: + - command: + - /manager + args: + - "--metrics-addr=127.0.0.1:8080" + - "--enable-leader-election" + image: example/simple:latest + name: manager + resources: + limits: + cpu: 100m + memory: 30Mi + requests: + cpu: 100m + memory: 20Mi + ports: + - containerPort: 9443 + name: webhook-server + protocol: TCP + volumeMounts: + - mountPath: /tmp/k8s-webhook-server/serving-certs + name: cert + readOnly: true + - name: kube-rbac-proxy + image: gcr.io/kubebuilder/kube-rbac-proxy:v0.5.0 + args: + - "--secure-listen-address=0.0.0.0:8443" + - "--upstream=http://127.0.0.1:8080/" + - "--logtostderr=true" + - "--v=10" + ports: + - containerPort: 8443 + name: https + terminationGracePeriodSeconds: 10 + volumes: + - name: cert + secret: + defaultMode: 420 + secretName: webhook-server-cert diff --git a/pkg/cli/alpha/config-gen/testdata/enableprometheus/config.yaml b/pkg/cli/alpha/config-gen/testdata/enableprometheus/config.yaml new file mode 100644 index 00000000000..a2957b9cb19 --- /dev/null +++ b/pkg/cli/alpha/config-gen/testdata/enableprometheus/config.yaml @@ -0,0 +1,13 @@ +apiVersion: kubebuilder.sigs.k8s.io/v1alpha1 +kind: KubebuilderConfigGen +metadata: + name: simple +spec: + crds: + sourceDirectory: ../project/... + + controllerManager: + image: example/simple:latest + metrics: + enableServiceMonitor: true + \ No newline at end of file diff --git a/pkg/cli/alpha/config-gen/testdata/enableprometheus/expected.yaml b/pkg/cli/alpha/config-gen/testdata/enableprometheus/expected.yaml new file mode 100644 index 00000000000..7047ebb504b --- /dev/null +++ b/pkg/cli/alpha/config-gen/testdata/enableprometheus/expected.yaml @@ -0,0 +1,314 @@ +apiVersion: v1 +kind: Namespace +metadata: + labels: + control-plane: controller-manager + name: simple-system +--- +apiVersion: apiextensions.k8s.io/v1beta1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: (unknown) + creationTimestamp: null + name: bars.example.my.domain +spec: + group: example.my.domain + names: + kind: Bar + listKind: BarList + plural: bars + singular: bar + scope: Namespaced + validation: + openAPIV3Schema: + description: Bar is the Schema for the bars API + properties: + apiVersion: + description: 'APIVersion defines the versioned schema ' + type: string + kind: + description: 'Kind is a string value representing the ' + type: string + metadata: + type: object + spec: + description: BarSpec defines the desired state of Bar + properties: + foo: + description: Foo is an example field of Bar. + type: string + type: object + status: + description: 'BarStatus defines the observed state of ' + type: object + type: object + version: v1beta1 + versions: + - name: v1beta1 + served: true + storage: true +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: [] +--- +apiVersion: apiextensions.k8s.io/v1beta1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: (unknown) + creationTimestamp: null + name: foos.example.my.domain +spec: + group: example.my.domain + names: + kind: Foo + listKind: FooList + plural: foos + singular: foo + scope: Namespaced + validation: + openAPIV3Schema: + description: Foo is the Schema for the foos API + properties: + apiVersion: + description: 'APIVersion defines the versioned schema ' + type: string + kind: + description: 'Kind is a string value representing the ' + type: string + metadata: + type: object + spec: + description: FooSpec defines the desired state of Foo + properties: + foo: + description: Foo is an example field of Foo. + type: string + type: object + status: + description: 'FooStatus defines the observed state of ' + type: object + type: object + version: v1alpha1 + versions: + - name: v1alpha1 + served: true + storage: true +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: [] +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + name: simple-system-leader-election-role + namespace: simple-system +rules: + - apiGroups: + - "" + resources: + - configmaps + verbs: + - get + - list + - watch + - create + - update + - patch + - delete + - apiGroups: + - "" + resources: + - configmaps/status + verbs: + - get + - update + - patch + - apiGroups: + - "" + resources: + - events + verbs: + - create +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: simple-proxy-role +rules: + - apiGroups: ["authentication.k8s.io"] + resources: + - tokenreviews + verbs: ["create"] + - apiGroups: ["authorization.k8s.io"] + resources: + - subjectaccessreviews + verbs: ["create"] +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + creationTimestamp: null + name: simple-system-manager-role +rules: + - apiGroups: + - example.my.domain + resources: + - bars + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - example.my.domain + resources: + - bars/status + verbs: + - get + - patch + - update + - apiGroups: + - example.my.domain + resources: + - foos + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - example.my.domain + resources: + - foos/status + verbs: + - get + - patch + - update +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: simple-system-leader-election-rolebinding + namespace: simple-system +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: simple-system-leader-election-role +subjects: + - kind: ServiceAccount + name: default + namespace: simple-system +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: simple-proxy-rolebinding +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: simple-proxy-role +subjects: + - kind: ServiceAccount + name: default + namespace: simple-system +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: simple-system-manager-rolebinding +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: simple-system-manager-role +subjects: + - kind: ServiceAccount + name: default + namespace: simple-system +--- +apiVersion: v1 +kind: Service +metadata: + namespace: simple-system + name: metrics-service + labels: + control-plane: controller-manager +spec: + ports: + - name: https + port: 8443 + targetPort: https + selector: + control-plane: controller-manager +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: controller-manager + namespace: simple-system + labels: + control-plane: controller-manager +spec: + selector: + matchLabels: + control-plane: controller-manager + replicas: 1 + template: + metadata: + labels: + control-plane: controller-manager + spec: + containers: + - command: + - /manager + args: + - "--metrics-addr=127.0.0.1:8080" + - "--enable-leader-election" + image: example/simple:latest + name: manager + resources: + limits: + cpu: 100m + memory: 30Mi + requests: + cpu: 100m + memory: 20Mi + - name: kube-rbac-proxy + image: gcr.io/kubebuilder/kube-rbac-proxy:v0.5.0 + args: + - "--secure-listen-address=0.0.0.0:8443" + - "--upstream=http://127.0.0.1:8080/" + - "--logtostderr=true" + - "--v=10" + ports: + - containerPort: 8443 + name: https + terminationGracePeriodSeconds: 10 +--- +apiVersion: monitoring.coreos.com/v1 +kind: ServiceMonitor +metadata: + namespace: simple-system + name: controller-manager-metrics-monitor + labels: + control-plane: controller-manager +spec: + endpoints: + - path: /metrics + port: https + selector: + matchLabels: + control-plane: controller-manager diff --git a/pkg/cli/alpha/config-gen/testdata/enablewebhooks/config.yaml b/pkg/cli/alpha/config-gen/testdata/enablewebhooks/config.yaml new file mode 100644 index 00000000000..a987a255174 --- /dev/null +++ b/pkg/cli/alpha/config-gen/testdata/enablewebhooks/config.yaml @@ -0,0 +1,13 @@ +apiVersion: kubebuilder.sigs.k8s.io/v1alpha1 +kind: KubebuilderConfigGen +metadata: + name: simple +spec: + crds: + sourceDirectory: ../project/... + + controllerManager: + image: example/simple:latest + + webhooks: + enable: true diff --git a/pkg/cli/alpha/config-gen/testdata/enablewebhooks/expected.yaml b/pkg/cli/alpha/config-gen/testdata/enablewebhooks/expected.yaml new file mode 100644 index 00000000000..ad97a25e588 --- /dev/null +++ b/pkg/cli/alpha/config-gen/testdata/enablewebhooks/expected.yaml @@ -0,0 +1,326 @@ +apiVersion: v1 +kind: Namespace +metadata: + labels: + control-plane: controller-manager + name: simple-system +--- +apiVersion: apiextensions.k8s.io/v1beta1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: (unknown) + creationTimestamp: null + name: bars.example.my.domain +spec: + group: example.my.domain + names: + kind: Bar + listKind: BarList + plural: bars + singular: bar + scope: Namespaced + validation: + openAPIV3Schema: + description: Bar is the Schema for the bars API + properties: + apiVersion: + description: 'APIVersion defines the versioned schema ' + type: string + kind: + description: 'Kind is a string value representing the ' + type: string + metadata: + type: object + spec: + description: BarSpec defines the desired state of Bar + properties: + foo: + description: Foo is an example field of Bar. + type: string + type: object + status: + description: 'BarStatus defines the observed state of ' + type: object + type: object + version: v1beta1 + versions: + - name: v1beta1 + served: true + storage: true +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: [] +--- +apiVersion: apiextensions.k8s.io/v1beta1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: (unknown) + creationTimestamp: null + name: foos.example.my.domain +spec: + group: example.my.domain + names: + kind: Foo + listKind: FooList + plural: foos + singular: foo + scope: Namespaced + validation: + openAPIV3Schema: + description: Foo is the Schema for the foos API + properties: + apiVersion: + description: 'APIVersion defines the versioned schema ' + type: string + kind: + description: 'Kind is a string value representing the ' + type: string + metadata: + type: object + spec: + description: FooSpec defines the desired state of Foo + properties: + foo: + description: Foo is an example field of Foo. + type: string + type: object + status: + description: 'FooStatus defines the observed state of ' + type: object + type: object + version: v1alpha1 + versions: + - name: v1alpha1 + served: true + storage: true +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: [] +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + name: simple-system-leader-election-role + namespace: simple-system +rules: + - apiGroups: + - "" + resources: + - configmaps + verbs: + - get + - list + - watch + - create + - update + - patch + - delete + - apiGroups: + - "" + resources: + - configmaps/status + verbs: + - get + - update + - patch + - apiGroups: + - "" + resources: + - events + verbs: + - create +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: simple-proxy-role +rules: + - apiGroups: ["authentication.k8s.io"] + resources: + - tokenreviews + verbs: ["create"] + - apiGroups: ["authorization.k8s.io"] + resources: + - subjectaccessreviews + verbs: ["create"] +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + creationTimestamp: null + name: simple-system-manager-role +rules: + - apiGroups: + - example.my.domain + resources: + - bars + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - example.my.domain + resources: + - bars/status + verbs: + - get + - patch + - update + - apiGroups: + - example.my.domain + resources: + - foos + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - example.my.domain + resources: + - foos/status + verbs: + - get + - patch + - update +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: simple-system-leader-election-rolebinding + namespace: simple-system +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: simple-system-leader-election-role +subjects: + - kind: ServiceAccount + name: default + namespace: simple-system +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: simple-proxy-rolebinding +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: simple-proxy-role +subjects: + - kind: ServiceAccount + name: default + namespace: simple-system +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: simple-system-manager-rolebinding +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: simple-system-manager-role +subjects: + - kind: ServiceAccount + name: default + namespace: simple-system +--- +apiVersion: v1 +kind: Service +metadata: + namespace: simple-system + name: metrics-service + labels: + control-plane: controller-manager +spec: + ports: + - name: https + port: 8443 + targetPort: https + selector: + control-plane: controller-manager +--- +apiVersion: v1 +kind: Service +metadata: + namespace: simple-system + name: webhook-service + labels: + control-plane: webhook +spec: + ports: + - port: 443 + targetPort: webhook-server + selector: + control-plane: controller-manager +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: controller-manager + namespace: simple-system + labels: + control-plane: controller-manager +spec: + selector: + matchLabels: + control-plane: controller-manager + replicas: 1 + template: + metadata: + labels: + control-plane: controller-manager + spec: + containers: + - command: + - /manager + args: + - "--metrics-addr=127.0.0.1:8080" + - "--enable-leader-election" + image: example/simple:latest + name: manager + resources: + limits: + cpu: 100m + memory: 30Mi + requests: + cpu: 100m + memory: 20Mi + ports: + - containerPort: 9443 + name: webhook-server + protocol: TCP + volumeMounts: + - mountPath: /tmp/k8s-webhook-server/serving-certs + name: cert + readOnly: true + - name: kube-rbac-proxy + image: gcr.io/kubebuilder/kube-rbac-proxy:v0.5.0 + args: + - "--secure-listen-address=0.0.0.0:8443" + - "--upstream=http://127.0.0.1:8080/" + - "--logtostderr=true" + - "--v=10" + ports: + - containerPort: 8443 + name: https + terminationGracePeriodSeconds: 10 + volumes: + - name: cert + secret: + defaultMode: 420 + secretName: webhook-server-cert diff --git a/pkg/cli/alpha/config-gen/testdata/project/api/v1alpha1/foo_types.go b/pkg/cli/alpha/config-gen/testdata/project/api/v1alpha1/foo_types.go new file mode 100644 index 00000000000..0bf0e4803bd --- /dev/null +++ b/pkg/cli/alpha/config-gen/testdata/project/api/v1alpha1/foo_types.go @@ -0,0 +1,63 @@ +/* + + +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 v1alpha1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN! +// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized. + +// FooSpec defines the desired state of Foo +type FooSpec struct { + // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster + // Important: Run "make" to regenerate code after modifying this file + + // Foo is an example field of Foo. Edit Foo_types.go to remove/update + Foo string `json:"foo,omitempty"` +} + +// FooStatus defines the observed state of Foo +type FooStatus struct { + // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster + // Important: Run "make" to regenerate code after modifying this file +} + +// +kubebuilder:object:root=true + +// Foo is the Schema for the foos API +type Foo struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec FooSpec `json:"spec,omitempty"` + Status FooStatus `json:"status,omitempty"` +} + +// +kubebuilder:object:root=true + +// FooList contains a list of Foo +type FooList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []Foo `json:"items"` +} + +func init() { + SchemeBuilder.Register(&Foo{}, &FooList{}) +} diff --git a/pkg/cli/alpha/config-gen/testdata/project/api/v1alpha1/groupversion_info.go b/pkg/cli/alpha/config-gen/testdata/project/api/v1alpha1/groupversion_info.go new file mode 100644 index 00000000000..f6b1f5cab03 --- /dev/null +++ b/pkg/cli/alpha/config-gen/testdata/project/api/v1alpha1/groupversion_info.go @@ -0,0 +1,36 @@ +/* + + +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 v1alpha1 contains API Schema definitions for the example v1alpha1 API group +// +kubebuilder:object:generate=true +// +groupName=example.my.domain +package v1alpha1 + +import ( + "k8s.io/apimachinery/pkg/runtime/schema" + "sigs.k8s.io/controller-runtime/pkg/scheme" +) + +var ( + // GroupVersion is group version used to register these objects + GroupVersion = schema.GroupVersion{Group: "example.my.domain", Version: "v1alpha1"} + + // SchemeBuilder is used to add go types to the GroupVersionKind scheme + SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} + + // AddToScheme adds the types in this group-version to the given scheme. + AddToScheme = SchemeBuilder.AddToScheme +) diff --git a/pkg/cli/alpha/config-gen/testdata/project/api/v1alpha1/zz_generated.deepcopy.go b/pkg/cli/alpha/config-gen/testdata/project/api/v1alpha1/zz_generated.deepcopy.go new file mode 100644 index 00000000000..40f10b6917d --- /dev/null +++ b/pkg/cli/alpha/config-gen/testdata/project/api/v1alpha1/zz_generated.deepcopy.go @@ -0,0 +1,114 @@ +// +build !ignore_autogenerated + +/* + + +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. +*/ + +// Code generated by controller-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + runtime "k8s.io/apimachinery/pkg/runtime" +) + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Foo) DeepCopyInto(out *Foo) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + out.Spec = in.Spec + out.Status = in.Status +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Foo. +func (in *Foo) DeepCopy() *Foo { + if in == nil { + return nil + } + out := new(Foo) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *Foo) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FooList) DeepCopyInto(out *FooList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Foo, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FooList. +func (in *FooList) DeepCopy() *FooList { + if in == nil { + return nil + } + out := new(FooList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *FooList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FooSpec) DeepCopyInto(out *FooSpec) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FooSpec. +func (in *FooSpec) DeepCopy() *FooSpec { + if in == nil { + return nil + } + out := new(FooSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FooStatus) DeepCopyInto(out *FooStatus) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FooStatus. +func (in *FooStatus) DeepCopy() *FooStatus { + if in == nil { + return nil + } + out := new(FooStatus) + in.DeepCopyInto(out) + return out +} diff --git a/pkg/cli/alpha/config-gen/testdata/project/api/v1beta1/bar_types.go b/pkg/cli/alpha/config-gen/testdata/project/api/v1beta1/bar_types.go new file mode 100644 index 00000000000..d931e88ab55 --- /dev/null +++ b/pkg/cli/alpha/config-gen/testdata/project/api/v1beta1/bar_types.go @@ -0,0 +1,63 @@ +/* + + +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 v1beta1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN! +// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized. + +// BarSpec defines the desired state of Bar +type BarSpec struct { + // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster + // Important: Run "make" to regenerate code after modifying this file + + // Foo is an example field of Bar. Edit Bar_types.go to remove/update + Foo string `json:"foo,omitempty"` +} + +// BarStatus defines the observed state of Bar +type BarStatus struct { + // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster + // Important: Run "make" to regenerate code after modifying this file +} + +// +kubebuilder:object:root=true + +// Bar is the Schema for the bars API +type Bar struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec BarSpec `json:"spec,omitempty"` + Status BarStatus `json:"status,omitempty"` +} + +// +kubebuilder:object:root=true + +// BarList contains a list of Bar +type BarList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []Bar `json:"items"` +} + +func init() { + SchemeBuilder.Register(&Bar{}, &BarList{}) +} diff --git a/pkg/cli/alpha/config-gen/testdata/project/api/v1beta1/groupversion_info.go b/pkg/cli/alpha/config-gen/testdata/project/api/v1beta1/groupversion_info.go new file mode 100644 index 00000000000..088b91cfc2e --- /dev/null +++ b/pkg/cli/alpha/config-gen/testdata/project/api/v1beta1/groupversion_info.go @@ -0,0 +1,36 @@ +/* + + +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 v1beta1 contains API Schema definitions for the example v1beta1 API group +// +kubebuilder:object:generate=true +// +groupName=example.my.domain +package v1beta1 + +import ( + "k8s.io/apimachinery/pkg/runtime/schema" + "sigs.k8s.io/controller-runtime/pkg/scheme" +) + +var ( + // GroupVersion is group version used to register these objects + GroupVersion = schema.GroupVersion{Group: "example.my.domain", Version: "v1beta1"} + + // SchemeBuilder is used to add go types to the GroupVersionKind scheme + SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} + + // AddToScheme adds the types in this group-version to the given scheme. + AddToScheme = SchemeBuilder.AddToScheme +) diff --git a/pkg/cli/alpha/config-gen/testdata/project/api/v1beta1/zz_generated.deepcopy.go b/pkg/cli/alpha/config-gen/testdata/project/api/v1beta1/zz_generated.deepcopy.go new file mode 100644 index 00000000000..b05c785c1ef --- /dev/null +++ b/pkg/cli/alpha/config-gen/testdata/project/api/v1beta1/zz_generated.deepcopy.go @@ -0,0 +1,114 @@ +// +build !ignore_autogenerated + +/* + + +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. +*/ + +// Code generated by controller-gen. DO NOT EDIT. + +package v1beta1 + +import ( + runtime "k8s.io/apimachinery/pkg/runtime" +) + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Bar) DeepCopyInto(out *Bar) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + out.Spec = in.Spec + out.Status = in.Status +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Bar. +func (in *Bar) DeepCopy() *Bar { + if in == nil { + return nil + } + out := new(Bar) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *Bar) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *BarList) DeepCopyInto(out *BarList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Bar, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BarList. +func (in *BarList) DeepCopy() *BarList { + if in == nil { + return nil + } + out := new(BarList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *BarList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *BarSpec) DeepCopyInto(out *BarSpec) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BarSpec. +func (in *BarSpec) DeepCopy() *BarSpec { + if in == nil { + return nil + } + out := new(BarSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *BarStatus) DeepCopyInto(out *BarStatus) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BarStatus. +func (in *BarStatus) DeepCopy() *BarStatus { + if in == nil { + return nil + } + out := new(BarStatus) + in.DeepCopyInto(out) + return out +} diff --git a/pkg/cli/alpha/config-gen/testdata/project/controllers/bar_controller.go b/pkg/cli/alpha/config-gen/testdata/project/controllers/bar_controller.go new file mode 100644 index 00000000000..03e8503ba21 --- /dev/null +++ b/pkg/cli/alpha/config-gen/testdata/project/controllers/bar_controller.go @@ -0,0 +1,31 @@ +/* + + +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 controllers + +import ( + ctrl "sigs.k8s.io/controller-runtime" +) + +// BarReconciler reconciles a Bar object +type BarReconciler struct{} + +// +kubebuilder:rbac:groups=example.my.domain,resources=bars,verbs=get;list;watch;create;update;patch;delete +// +kubebuilder:rbac:groups=example.my.domain,resources=bars/status,verbs=get;update;patch + +func (r *BarReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) { + return ctrl.Result{}, nil +} diff --git a/pkg/cli/alpha/config-gen/testdata/project/controllers/foo_controller.go b/pkg/cli/alpha/config-gen/testdata/project/controllers/foo_controller.go new file mode 100644 index 00000000000..b3ae530b38b --- /dev/null +++ b/pkg/cli/alpha/config-gen/testdata/project/controllers/foo_controller.go @@ -0,0 +1,31 @@ +/* + + +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 controllers + +import ( + ctrl "sigs.k8s.io/controller-runtime" +) + +// FooReconciler reconciles a Foo object +type FooReconciler struct{} + +// +kubebuilder:rbac:groups=example.my.domain,resources=foos,verbs=get;list;watch;create;update;patch;delete +// +kubebuilder:rbac:groups=example.my.domain,resources=foos/status,verbs=get;update;patch + +func (r *FooReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) { + return ctrl.Result{}, nil +} diff --git a/pkg/cli/alpha/config-gen/types.go b/pkg/cli/alpha/config-gen/types.go new file mode 100644 index 00000000000..7cdff6c5f0d --- /dev/null +++ b/pkg/cli/alpha/config-gen/types.go @@ -0,0 +1,230 @@ +/* +Copyright 2021 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 configgen + +import ( + "io/ioutil" + "time" + + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "sigs.k8s.io/kustomize/kyaml/errors" +) + +// KubebuilderConfigGen implements the API for generating configuration +type KubebuilderConfigGen struct { + metav1.TypeMeta `json:",inline" yaml:",omitempty"` + + // ObjectMeta has metadata about the object + ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"` + + // Spec is the configuration spec defining what configuration should be produced. + Spec KubebuilderConfigGenSpec `json:"spec,omitempty" yaml:"spec,omitempty"` + + // Status is the configuration status defined at runtime. + Status KubebuilderConfigGenStatus `json:"status,omitempty" yaml:"status,omitempty"` +} + +// ObjectMeta contains metadata about the resource +type ObjectMeta struct { + // Name is used to generate the names of resources. + Name string `json:"name,omitempty" yaml:"name,omitempty"` + + // Namespace defines the namespace for the controller resources. + // Must be a DNS_LABEL. + // More info: http://kubernetes.io/docs/user-guide/namespaces + // Defaults to "${name}-system" -- e.g. if name is "foo", then namespace defaults + // to "foo-system" + // +optional + Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"` + + // Map of string keys and values that can be used to organize and categorize + // (scope and select) objects. May match selectors of replication controllers + // and services. + // More info: http://kubernetes.io/docs/user-guide/labels + // +optional + Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"` + + // Annotations is an unstructured key value map stored with a resource that may be + // set by external tools to store and retrieve arbitrary metadata. They are not + // queryable and should be preserved when modifying objects. + // More info: http://kubernetes.io/docs/user-guide/annotations + // +optional + Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"` +} + +// KubebuilderConfigGenSpec defines the desired configuration to be generated +type KubebuilderConfigGenSpec struct { + // CRDs configures how CRDs + related RBAC and Webhook resources are generated. + CRDs CRDs `json:"crds,omitempty" yaml:"crds,omitempty"` + + // ControllerManager configures how the controller-manager Deployment is generated. + ControllerManager ControllerManager `json:"controllerManager,omitempty" yaml:"controllerManager,omitempty"` + + // Webhooks configures how webhooks and certificates are generated. + Webhooks Webhooks `json:"webhooks,omitempty" yaml:"webhooks,omitempty"` +} + +// CRDs configures how controller-gen is run against the project go source code in order to generate CRDs and RBAC. +type CRDs struct { + // SourceDirectory is the go project directory containing source code marked up with controller-gen tags. + // Defaults to the directory containing the KubebuilderConfigGen configuration file. + // +optional + SourceDirectory string `json:"sourceDirectory,omitempty" yaml:"sourceDirectory,omitempty"` +} + +// ControllerManager configures how the controller-manager resources are generated. +type ControllerManager struct { + // Image is the container image to run as the controller-manager. + Image string `json:"image,omitempty" yaml:"image,omitempty"` + + // Metrics configures how prometheus metrics are exposed. + Metrics Metrics `json:"metrics,omitempty" yaml:"metrics,omitempty"` + + // ComponentConfig configures how the controller-manager is configured. + // +optional + ComponentConfig ComponentConfig `json:"componentConfig,omitempty" yaml:"componentConfig,omitempty"` +} + +// Metrics configures how prometheus metrics are exposed from the controller. +type Metrics struct { + // DisableAuthProxy if set to true will disable the auth proxy + // +optional + DisableAuthProxy bool `json:"disableAuthProxy,omitempty" yaml:"disableAuthProxy,omitempty"` + + // EnableServiceMonitor if set to true with generate the prometheus ServiceMonitor resource + // +optional + EnableServiceMonitor bool `json:"enableServiceMonitor,omitempty" yaml:"enableServiceMonitor,omitempty"` +} + +// ComponentConfig configures how to setup the controller-manager to use component config rather +// than flag driven options. +type ComponentConfig struct { + // Enable if set to true will use component config rather than flags. + Enable bool `json:"enable,omitempty" yaml:"enable,omitempty"` + + // ConfigFilepath is the relative path to a file containing component config. + ConfigFilepath string `json:"configFilepath,omitempty" yaml:"configFilepath,omitempty"` +} + +// Webhooks configures how webhooks are generated. +type Webhooks struct { + // Enable if set to true will generate webhook configurations. + Enable bool `json:"enable,omitempty" yaml:"enable,omitempty"` + + // Conversions configures which resource types to enable conversion webhooks for. + // Conversion will be set in the CRDs for these resource types. + // The key is the CRD name. + // Note: This is a map rather than a list so it can be overridden when patched or merged. + Conversions map[string]bool `json:"conversions,omitempty" yaml:"conversions,omitempty"` + + // CertificateSource defines where to get the webhook certificates from. + CertificateSource CertificateSource `json:"certificateSource,omitempty" yaml:"certificateSource,omitempty"` +} + +// CertificateSource configures where to get webhook certificates from. +// It is a discriminated union. +type CertificateSource struct { + // Type is a discriminator for this union. + // One of: ["certManager", "dev", "manual"]. + // Defaults to "manual". + Type string `json:"type,omitempty" yaml:"type,omitempty"` + + // ManualCertificate requires the user to provide a certificate. + // Requires "manual" as the type. + ManualCertificate *ManualCertificate `json:"manualCertificate,omitempty" yaml:"manualCertificate,omitempty"` + + // CertManagerCertificate relies on the certificate manager operator installed separately. + // Requires "certManager" as the type. + //nolint:lll + CertManagerCertificate *CertManagerCertificate `json:"certManagerCertificate,omitempty" yaml:"certManagerCertificate,omitempty"` + + // GenerateCert will generate self signed certificate and inject it into the caBundles. + // For development only, not a production grade solution. + // Requires "dev" as the type. + DevCertificate *DevCertificate `json:"devCertificate,omitempty" yaml:"devCertificate,omitempty"` +} + +// ManualCertificate will not generate any certificate, and requires the user to manually +// specify and wire one in. +type ManualCertificate struct { + // Placeholder for future options + // TODO: Consider allowing users to specify the path to a file containing a certificate +} + +// CertManagerCertificate will generate cert-manager.io/v1 Issuer and Certificate resources. +type CertManagerCertificate struct { + // Placeholder for future options +} + +// DevCertificate generates a certificate for development purposes and wires it into the appropriate locations. +type DevCertificate struct { + // CertDuration sets the duration for the generated cert. Defaults to 1 hour. + CertDuration time.Duration `json:"certDuration,omitempty" yaml:"certDuration,omitempty"` +} + +// KubebuilderConfigGenStatus is runtime status for the api configuration. +// It is used to pass values generated at runtime (not directly specified by users) +// to templates. +type KubebuilderConfigGenStatus struct { + // CertCA is the CertCA generated at runtime. + CertCA string + + // CertKey is the CertKey generated at runtime. + CertKey string + + // ComponentConfigString is the contents of the component config file read from disk. + ComponentConfigString string +} + +// Default defaults the values +func (kp *KubebuilderConfigGen) Default() error { + // Validate the input + if kp.Name == "" { + return errors.Errorf("must specify metadata.name field") + } + if kp.Spec.ControllerManager.Image == "" { + return errors.Errorf("must specify spec.controllerManager.image field") + } + + // Perform defaulting + if kp.Namespace == "" { + kp.Namespace = kp.Name + "-system" + } + + if kp.Spec.CRDs.SourceDirectory == "" { + kp.Spec.CRDs.SourceDirectory = "./..." + } + + if kp.Spec.ControllerManager.ComponentConfig.ConfigFilepath != "" { + b, err := ioutil.ReadFile(kp.Spec.ControllerManager.ComponentConfig.ConfigFilepath) + if err != nil { + return err + } + kp.Status.ComponentConfigString = string(b) + } + + if kp.Spec.Webhooks.CertificateSource.Type == "dev" { + if kp.Spec.Webhooks.CertificateSource.DevCertificate == nil { + kp.Spec.Webhooks.CertificateSource.DevCertificate = &DevCertificate{} + } + if kp.Spec.Webhooks.CertificateSource.DevCertificate.CertDuration == 0 { + kp.Spec.Webhooks.CertificateSource.DevCertificate.CertDuration = time.Hour + } + } + + return nil +} diff --git a/pkg/cli/cli.go b/pkg/cli/cli.go index 41d8726a64b..e6ab178cb17 100644 --- a/pkg/cli/cli.go +++ b/pkg/cli/cli.go @@ -400,6 +400,9 @@ func (c *CLI) resolve() error { // addSubcommands returns a root command with a subcommand tree reflecting the // current project's state. func (c *CLI) addSubcommands() { + // add the alpha command if it has any subcommands enabled + c.addAlphaCmd() + // kubebuilder completion // Only add completion if requested if c.completionCommand { diff --git a/pkg/cli/internal/config/config.go b/pkg/cli/internal/config/config.go index 0bcbd4ba014..3a4bc621f4a 100644 --- a/pkg/cli/internal/config/config.go +++ b/pkg/cli/internal/config/config.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 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. diff --git a/pkg/cli/internal/config/config_suite_test.go b/pkg/cli/internal/config/config_suite_test.go index fffe2f8bb2f..3abbc0398f3 100644 --- a/pkg/cli/internal/config/config_suite_test.go +++ b/pkg/cli/internal/config/config_suite_test.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 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. diff --git a/pkg/cli/internal/config/config_test.go b/pkg/cli/internal/config/config_test.go index fe7d7ee4932..cef1a408b78 100644 --- a/pkg/cli/internal/config/config_test.go +++ b/pkg/cli/internal/config/config_test.go @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2021 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. diff --git a/pkged.go b/pkged.go new file mode 100644 index 00000000000..70a6fb240ee --- /dev/null +++ b/pkged.go @@ -0,0 +1,12 @@ +// Code generated by pkger; DO NOT EDIT. + +// +build !skippkger + +package kubebuilder + +import ( + "github.com/markbates/pkger" + "github.com/markbates/pkger/pkging/mem" +) + +var _ = pkger.Apply(mem.UnmarshalEmbed([]byte(`1f8b08000000000000ffec5d6b73a2ccf2ff2a5bbcce46869b62d579114c445c358f26723bf5d45330104087cb11f0766abffbbf18103151a3bbd9a4eafca9ad8dccd033cc8deee9df7437ff25bce0258c89f67f89d873e2db792bbef5c2c63c356d33f590652f1a4b3abb7bef2d8836d198c6f6226e442b2f4916219c379cb0112f60e34459e28690fc285c247f19894bb4cf3de2861819be4db489c3e2f72124dac45f069c1b8efdad72ef1b0c83c4f082f85b34776cebdb8b87ecf81b0cfdc843b6f5cd0b92f05be2dadf9cf09be905c6c2b3e35be2867836168e9d9ce84934771a96b15879c13f866f71cca96edd1ac40d3109c313f51037c4d048a04bb4ff4ddc127fdf104f89816ca29d2c52bb484c6c230e03a24d0461f2cd0be2c44059abcd34f9662c0d0f1926b2bf79c137fcc06fd080ae4ddc1062d8cd7a99d56b85f0163f09f73ebbfc7b37d6f8bee3256e6adec2d06ff8c6626e1a891d67fdc3837afa66f6d70b9c866ffb5985f776846b33d3172f7b98b949ec98b821b2615ed871dc7841466257339cad17e1349e1c7bd1405e9c1419f61a5f2d36511296170d23af314f402f7271138bb455bd69c5c63e61c3c3a445b12ce0df6434bc20b11781811ab6b5321656fc9a0c212f4a3cb8cf717da3922a8b2f8cc04a130f1db915a76682ecfd0ddf62f789ac5c2505994aa2da81d835c0418a62b983340ba84afad523135419a7354bf287a97d5b7d0386af481bd1dc5b1337841dc0d0f202a772d930e20054d3a611db1c739093bd5c9b6a8e6b576b6bccb2855e4947b69f25178b709135e4c54f0e57a4139ae9cb8b81c2866b2fecb3abf5fc527eb7787554a2f892f7e2a277c7f64ddbbaf82dbb842e4e2c3c69ae11bbc54f032e209d2d88b20fd9bb6920a79a05a3b49a7cf193385c24d5acc04e928501ed6a5e18e3c9a966452142d5f4eb220bfb05d930415e72901d7b8183ec17e439eec153e34d0c0d841af6da8676b03c762b0df09a2cf3133b4e5078d0bb34888d17dbb58d5c526006e5850d2f2c5ed39cdccf244ffed3303d677f99c4bbebe215f53ddf2e7e1a7e8a122f32f060e18cffa461625bd1c20b928c371337446027f9df869b2451e512ffd98d6a99b96b76919731c36811624698a5d3457607cf7218e381c9787bdef6eca791c9b7225d8c36be72ec75545e34e24d9018d9b82dd220c9bb535cedd7ba91843ee6776fee1443f5263fde64cd2a964e9c2c6088e72c4e165ee0e05b9b00163ffbea8b99246e88a22569e0c1d0aa5c35d2e4057087e9164e66134bdc104b3bb0c245c309911138b7e1c269ac1b3b41e11ad03528f232aa28441b4093ec3bd4f8277b8f2ea5dbf1c773c4e96269ef84ce193a776ebd9ca7782b6fce10bfd3e36cc959419cfdf7ed38369c53d51d2c6a27c52fcdbb74d1225c6fde21a41a6e64c0f9192acf0a8c33b717617a72a2e24d5c30bf6377b377af11db305dd80dd3b3bc457a72343169b23082f8255cf8e788766b38abf012ba20abefef1be2d98e93725f17a408e559e5562ecf1a8656d6c8f67f894b76d243c30b76dbcd5fddb78be130b4ae2fd970c25b3fb47005b2bd883dbccb05b780257efefc7943bce41d3da76db4f13e1c22af61a0c8351a300c5e3ce7bb63078dc4f62394cbc76c836dc70d682f92efbe1118d976a09d6b33d9af65278687f093825caf38a0bc21626f6b136d9ebb21fc8c29b529c034991603188073fec14cab4d502405be93f477403d93ad36d36ad3e42d4583162059067c275b6d3263415efc8f958d733ee419bfcc34267b49b401d76c36290ae029b4b374abd9bc2146c80be6449bbe21a42024da14dba469a6c5df1053cf22da2c096e0831bba2c81b626265159137c45f86f50f74c27f48a2fd6ff206fffbfb86b8cb5a1a4736cc9ef994fd000eb02cd76c02f28618c5590e0d7892a4418bf979430c2fa02f7bf8f386e85c492f788bc4bdac0cc7365986fe79433c959321a010ce63dc5d01cdf34962c8ec4e17194e7e43b403fc3b88236361e3cb7171998dcbdf78a1b9f97aa8d5d65a6dadd5d65a6dadd5d65a6dadd5d65a6dadd5d65a6dadd5d65a6dbd466d2d385ad68bb973a13af0cb3aeccf1bc23212633782995a1324fb67ef9f801bf607b4e88611046162245e18dcee286f37868fceabd7274bed546dd06ced746d26536b8f2bd9806bd34c9ba66e29866e019e21d9374af68b81e277b46c9a06ad56a96583032d9b273f50cbe659ae49ef345a8e62298a6bb6e8d35a76464f951af0ae8ba7b5ec93f45768d92d12d074b3d4b2f13cecd4ecd657aad9d926fcb5aabd5fdff9cd5c91ae6ac07b1d76afb0e6ef4aa1af16ebe35061adaaa139f52b5695eb8c7b4e5633b78f676ea7594bc9f5089b8e1d43d11c5d7d700668b4d295612a53b26788fcd2a087e998923796887c4319b996283f9bb4bcd1a8692af7d04a7fbaf3b4ecfe03704dbf1be8aae4493dc0777c802cb13bd7d489fbe8848e247653d3e7494d9d4426c56e715ee7cec1653b20d114d6d5297933f0d17240a1d4f0e599d50133ed09f8d0e79347efcec9da3998b3aea9c85b287667fa93c0bf3cf14d7b73973efbdd244f83adaef6294361838132423018ffc8cae90a3bc7ed72fef52fe2d3787c18248b10217b71215efa96be64e51cf94bb029d5a201c5d3bf0d9bb2870c1dfc49d814b000f017c3a6450f2f864df7f49733748a6c019e67f60c9d236bdcb4c64d6bdcb4c64d6bdcb4c64d6bdcb4c64d6bdcb4c64d6bdcb4c64dffc7a185b71aead7a0a76fdad120c177234ddceff8d5b806463d5770a77eb30c7b09924ab759a6cdf2b73cc3b6289ea65a1f8ea4521fa878b79a34c7ec945cbe45514c0b70a7f5ee1647f27c49beebe169bdfb24fd157a3745d22c49967a379e861a48ad81d4afe27667b9cc5b44d5f47952eab0cf50946783f9686906938d49ad635ded8f4ac4730e90d5eb471a3d4c2722da6a4a3fd6a75d6089ee18fa3c63ab80ef041895e53ade9d63897202c5b56b89539c963ac236ab7f87a84a1d6166522ca92928d5d5fe769f7f974822eb9aca9493c40468fe34817edfd53660859f332ee91c494489a658e8d113028d965243692d0d5af674a50f0c653dd755294f3f818de677670355d898b4cb3e06da6a309ba6c3bb6a5ddd8d4e0f8bb6e6ff074f77dee0096c756504a03f4d4c116d2d514e074a77aef7fa08d2437ed8615683d95d3abc0f99d1fd782b39953a3ba423796462a9c2d6eaf591a690bcd19b90f03e5c0eb60f9bd1a628fb1c32c37b6735d8483ff665ef12a923250365bdd4e9c912d293b9aef6377fa9938da54cbd23eda4fe7a7e581d3cbf272c6130a98e2d6e9346f1a9257623d397375391df58f7a1f3783f2687ab2add9d63fadd447f0e1ddce6def0c7fe7942aa29201bf71211afb64753fb01dc8647fa52aea1445326733823d7c3194cf3317ce01eefef9861e7d818c8295e6f4f20d6b3b157a54457d648a3279149315e27489a9228a77a47e05fc6e15722e70d92fabeb24d370ce7f155d2fd64b19d6c6758ee42d9ceb60177dbe438a6c5737f40b6d37f4eb6d38064d9b3b21d006e475ef6f09c6c3f417f856c67298a244129dbf134d4b2bd96ed5f27db4fb28ab792fdd839e944615dcd5f230973cb682f957b1364aa42aca913b4931890169056e1e455c951e5f0ef4904984999de6be97ab003189b749f7cf4eed84c8a56e9a44e5937ad2bfdd0a4f8c5401d2118e8083a87120bf6fa4b4be46726b5e2a4eee47e5a95f03d7d69f6e4449f82a5a5b0e41b0925e6f953b14b1af7a133a02709ecf08bc7de30b176e3b7c9cf6db39d05a4e48de5a354df8099aef64978427ae2b3e3bb57edf465577fe053b337e7a41e96e8655b2c9f8f2d05a013e38b9f7530b6943c83be4c3ebe1a0b5d947d4d9563eb012c7571ca49f7e3cdf0753b8ab2cf455b8ff433c9db1f35ed8d804c7fecbca8e48faf94b03cff1d867e140676905c2362cf94dbcb5870898c65da806db3d42d001c07489ee13f5cc6327f4ec63224d7e4c11919dba4d9d2b0a8ece119197b8afe0a19dba2289e6d55642ca8656c2d63bf50c69ee115a785ec38138ebdfed214d708ce4b43a32c3f81229fea0a4b6634ba8f82c17ca7d2dc6186ba17b402a92b60658a5d527f2e04406faf56e7aa2a56d15d4361110caa42952c858ea974d34c353e1090a755dc4c10fb860279adda07c497c25ca5464bd3d7237dc3b29a02e24335f33dc1ba53e7cb3149b4621c5e09fac4a4e5d4ea0aae253a9cd4e1f10601fa7c6c8a591b76e5fb2fbbf28300b9a6b2aa3e2f1b2fa0a1a20ef100ce7829c705f1bb3ea7b6d24dcc52300a9449ad81a9c8272089f37dd8e53d2bddd56b81fc666ebc72dcbfd0f86b61bd63edb5b07ed72996062d96fb7de3ae439f589efd93c65d14db6c9e51445f09b0bc83e4c5c65d7bfacb85240d48aed96ad53eb1b56d576ddb55db76d5b65db56d576ddb55db76d5b65db56d576ddb55db76fdff416b16d61719732dac8c609977f81ae4f964a9d26eab495f7cb6cb825b40b13c4f51a0f9e1b833f7e770671670806c9d3ddb65418923ef7a78f66cf738fd352a758b64786e6fb7954d438d3bd7b8f3a771b2d30ce537cf7231eca923188c2293624a0b2cabd7772d510eece7d029eb29ce2dcbb33f72141b8a9c5a0f05e4bb0d7fd8749c4822f225515e979662c8429aef2e4d2ad90ee623048349a4fb68a6a91334a57800fd111aa0090bc5a923f91364791286baf75069b76329ecdc14a79cd44b9a59bd96d8252db5f0e57d1809180e0d92e6e04940666f8470ba845b878e25ba11dc0811dcdc79aac878524fdeeacad8d1d4a1a33d092b53ecce74c55d9ae204416fe598f424d4d53e6da823248988947a56648a2b47f3a70ef4e5ffe8ca88c4e58379563792c4eecad89d357b826fd292a3f97264fad0d1fcb56bfa715c6d8f16c8599da84ff791245a4b436103a937594abd11b23a426475f2f375e809005228d537026988d337fec552c75d424f5899f40499c124d294756c3f09aed4135c4b1c85f95cb04bab53d683cf85074a094f4795e302771cc8a92eaed1a327dceb5b723fa6c5796ee53c7863f968561e3d54cedf212db81a55ced56325efa08e33e7f591464dab742b4d9d848fdedd121f3bf85f70cebcb0e3305dc03cf2e46909be27db896c9afa354f67966e72cdb707c6d762e19918ab0aeee69f03c35b7c8ba6af081099f7f072307c4f7f85e4666886a99c18e3d9a8d1f01a0dafd1f01a0dafd1f01a0dafd1f01a0dafd1f01a0dafd1f01a0dff5fc490f60ae9a762e1e5631b7bf7c2ef0bd3805705843c5b74a760731c7521264eb749f6966d8226c7d0f4c7db62b7fe1c26ce5134db3a8789b37c8bdd91973d3c83899fa2bf42b366c91660f69a359e861a13af31f14fe267ef30963fe8bcec775786bc87cca55edfd39461aaa9326988fcc65023d712d1d2f4d8c5636f889d8dadd9c30f8342a97e1f3a636a0d203d4110f597a638fd612a32a92913d7121f30fcbeb3fedd8787c4b069027bfda5dd9b27d0e7637d1c6d2c658d5d7f064f820b45d4833e0f606fc849ddd8cbdb22a7968861f6ac9da9b175b7031f2d2544fe903ac24657474b4bedcf7435b7f41e3c09a44925c80cfac8f211b2e8614647e96adf83dbd05136fd19f465d712a79e3a0e130c794fad8d49cbabe2be6ba993d0a4fb91ed774943e1d3811f3370c346e6a66f65cf80bebccdc36deeaca64907d2b287c3638add59960fe9cb9e3f78227f68aa10c9bebc81145a9ab3d0c91dc0d933ede0a9e1385a180a3b7ff4847bb3276f2d51de4cb3319df623d39f44a60f7f6d4e947d799c96fb489f614bfdfdfcdc5fd0c655e848621299fe98931e46b1a58e485ded3f99d41a5db13eb696d2c7c714c51ad9f5f9390f273a42636534c356f477d9f37656eb13a4fb5d60f6c63f2e85f3074f64f2e98ed57b36508d0e7bd559fbe972a5153b495e186f9a6dd3fc6d8b0414dd04fcc7c79bfec8af3af16c93298fc3199a6b7274ab7936de74932ec39e945d3c176ffa04fd155b8b2668e5a15b9ef6f3506f2deaadc5676d2dcef0863f1c66da1b3a323e4ed697a6b85e5af9916da2296ca4fbf2d6ea0df7aed59ee04abd1132452d81140a4c5f9e4b22da425a46d013eea79ee09afed8d19ef2235f43d1238dea92fa53768ff9216d8491898f9f274b8d96135d6149491cb9a62778fa93e067b241ef08aed51142ab37c964fc724065b4c3f458986bdc76b2fbf43c478f936de8c86277a353320937c27df6fce7d29be96e35983dac257114eaca6821892e69f584eda3d75aea223f831bf6f51135de43e90ab3c4de6eea881cd0131752c97640cb2b9deebbba988d139fc95f6477d8d012419c8d21f4eeb27e7ad9bec1288ebf0db19bea94bc7db38f137178ed64ef75f566bfd087f408e8aa74f9fe8092633d18453ac522bd03a25df94b656bc5db6fab2b6b7f5accf3a327345f4eec818e8620a7b575c72ff7140726186f439b177b814a9bb2b5b93b9a377d9894aeea62257cf941ff2b21cd0fcc4d262924f3fbbbfddf6b57f26c6f32088e8e470a697d56ec558f990ca4c743aab35bcbcfd66cb1eff6d8d8a4462ef6e4dbbd2f68b757bbabecbd8a7b8577de6e8ecfcce95657461b5d9d3c9e0c43e0e521002a26294599b1635128363b426ad2e3dccca4d747ba8f185d19c7526f14997e6e8ad2a787b92eb3f3302ccc500c3adbcbf289a146a8e391c960fc5526128d5f72bb7fcfe79eba34ae0dc3b729eab6450192a100fdd1716d58f223bffef10ae76935791a9cf3b9679b5ce9435ff6f01cce7382fef2cd18036892e3f631eba83aae4dbd19fbd4cdd825fef5b9d1e1bbe8ce6869aac2d2f42b468b1bb66bfa5dcf14a74efea18fd7e8ce81e4cccb90c0857751a2ab135717bba4868de0de06b6192805fdea524999d1ad5dcd97e3d237bef44b5fe13079a63f7de5ab2eed772c4e5491e217fab3df878ee44947b4f84ff02daf4ef2ebd00a57dacd9f2f5d7e7684a69a171e16706d006e798e26499a62dffaa4ffae10f9c82f8ebc12227c93e6b0c67dda80be592200650fcf1ad01fa7bf4288302c4d57bed39ccf432d456a29f27952e41d16b117276f142a5558c14345f0415785d8a411569a4f2a5027d9f4a789834accb6113245796689fc66176ec454baa446b9434de923b3f7266ccc85cfc8eaee2328ae238dea6e1fbdbbf589a8aeafc46511ea44ec7abab23e8c3c7aedf3af8b3f373329ac1ccf5f473b1d946163aa91450517fad69bc8a88327808a6d43628ab2ab8b99b897635d196130bf1aeac55080abef95fc77b62879a4da43ff852321610ec2eaf4112cfc285e85d4c9d64f642ae875a89d7c8c680164f335bc1792c3f03a5939804c85dfd8cfa133dc0a2363fc262eddda523020c5bd2d3b5a5959b9e7bb95f9aa1c5e070a58c260ce49f7d2ea5999efe3d989f2c654505a7c53ad07fdee4c9705047db4d4bb238443e6f4869c74ffb0da2bb8e4a53e2f2e1491a2abfd6d363f8f9e507d9fcb43918377d9bbbb18a879df9741880fdf33a10c593450b37bec41d96a84e46a4cc4c193b02ae21f92a3fb22d26e6f92ad51647585250cc69cd4dbf9dbc449eea791c758c4c08532224d5a3ad78683504a1510aedc22e6fe20936c4ccbf1ff7387ab95ed77773f9e47013875b4d29451d687fd37f48abcddfbb47f8f6412fa68062ba013beff8a1f9561ae3a38d4569ac769ac84bef2f640db9939dbad8d1c482dfca8e09188ca56019aeea22def232a63001069f4640967bf220b72b0f0d3c347ed25b0652f6d1446be1d24bbb8a4df631b2eecab50a28b6b296123faa28fc6d26d966cb3e096a4388e6518e6e361a33ff7a9031e507c13bbb49e848d5a7b17d85d07cfa146c7c9afd8ef375986e2f83d6844d75f8cadb7fb9fb8ddbf984d1c41913ec075f5b50a51b5ff9916a1744f9fbbbc15dfbb4fbf5eba1da9a052a4d91ba60625b33bb138a527aed59377fd19e8ea7cb785c1b41ade5e1ca5bd1fe76ac9578b924c16c49101ed6b24c7a942253604980b050568b3cc2dc33314cd50e0e305c59f8b9bcf531cc7600fcad376a4a0242f7b78d68ef438fd15a282679b74256e3e9e865a54d4a2e2b344c529be701a10aa72f3aa92f196a3ff0e7873fc24becae53f91e3468bd0b713d74eaffa58c9c952a5733c7f693c1bba4df3b7140368966bb6980fe7b97f2e8e3acf907c8b3bf3fdef164782d260aeece1d9ef901da7bf9ce7b2a04903c0eebde2f93a9e4dcd733f91e79e640cbf72a85b41950ac46fba8b4e32054bd347a4491fdf969b0a9f1aea6409f1d739d89949f79189cddbf8e4c064aa449ee49149b19125f29be3dbf74b10fd774e073c90e8ea646328a3ed4029db7f29827812bdab989221d39fac4c0aa515f436c923c6e060eae5f34b64b757208b85a9de093431d1d4c9cc787825f4ae45d1bed674e95a1fb5338e69806c5d2add9836e06f01437134c9311f7fd8fc9111d05f4937966c82b39e691cc996d2aaece159e9769cfe0ae94637c916dddc6b14781e6af1568bb7cf126f67fdd1bece67a96a135bb10f5633262c7b59fd86c2069d00a79f7445c3f564ed9dd0fda5a5de5de2eb960998e36d1dbfabd15485e006fb3b0523a0f911d268fc71caa4b4cddd0b6441a346f86b22d53e979fb4bad846f943fcc9721fad0beca90ffa7ce4f8389f93e9e576e2811ce77e7c6465be84d2c65af2a4533e7f85359895686a2ed82d5fde6841793fd0d5f18ffccb26eb08d2c575cfc2e1e57675147e79c53d79a58b5d12cf778774a0d82535ca29ea98205394b37baffd077f141ff1f44ef909eebe98622add15dcf0db220460d547b0788685f2cfa8918ea50a736ce35e1c9de20dcaddf5cfd6551d99c1e4d8f8947dc7c7a3bfe91bfa9beff4b18f9ebef14dbc784d7d940f63f7702d9f3a9e1d646d5626d9bb5f98aa64e3f4357ce0bd0d67be0db0ebe06f75f0b73af85b1dfcad0efe56077fab83bfd5c1dfeae06f75f0b73af85b1dfced5a44eae7ff010000ffff010000ffff5a3234d444bb0000`)))