Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 1 | // Copyright 2020 The Monogon Project Authors. |
| 2 | // |
| 3 | // SPDX-License-Identifier: Apache-2.0 |
| 4 | // |
| 5 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | // you may not use this file except in compliance with the License. |
| 7 | // You may obtain a copy of the License at |
| 8 | // |
| 9 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | // |
| 11 | // Unless required by applicable law or agreed to in writing, software |
| 12 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | // See the License for the specific language governing permissions and |
| 15 | // limitations under the License. |
| 16 | |
| 17 | package main |
| 18 | |
| 19 | func depsKubernetes(p *planner) { |
| 20 | // containerd and its deps |
| 21 | p.collect( |
Serge Bazanski | 19eb000 | 2021-01-21 14:25:25 +0100 | [diff] [blame] | 22 | "k8s.io/kubernetes", "v1.19.7", |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 23 | buildTags("providerless"), |
| 24 | disabledProtoBuild, |
Lorenz Brun | 878f5f9 | 2020-05-12 16:15:39 +0200 | [diff] [blame] | 25 | patches( |
| 26 | "k8s-kubernetes.patch", |
| 27 | "k8s-kubernetes-build.patch", |
| 28 | "k8s-native-metrics.patch", |
| 29 | "k8s-use-native.patch", |
Serge Bazanski | 19eb000 | 2021-01-21 14:25:25 +0100 | [diff] [blame] | 30 | "k8s-revert-seccomp-runtime-default.patch", |
Lorenz Brun | 878f5f9 | 2020-05-12 16:15:39 +0200 | [diff] [blame] | 31 | ), |
Lorenz Brun | ed0503c | 2020-07-28 17:21:25 +0200 | [diff] [blame] | 32 | prePatches( |
| 33 | "k8s-e2e-tests-providerless.patch", |
Lorenz Brun | 842536b | 2021-01-26 13:54:57 +0100 | [diff] [blame] | 34 | "k8s-fix-paths.patch", |
| 35 | "k8s-fix-logs-path.patch", |
Lorenz Brun | 7b82227 | 2021-02-03 17:03:41 +0100 | [diff] [blame] | 36 | "k8s-drop-legacy-log-path.patch", |
Lorenz Brun | ed0503c | 2020-07-28 17:21:25 +0200 | [diff] [blame] | 37 | ), |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 38 | ).inject( |
| 39 | // repo infra, not requested by k8s, but used with bazel |
Serge Bazanski | f12bedf | 2021-01-15 16:58:50 +0100 | [diff] [blame] | 40 | "k8s.io/repo-infra", "a3483874bd37251c629c92df6d82a226b0e6ad92", |
Lorenz Brun | 2073ce3 | 2021-02-03 18:52:59 +0100 | [diff] [blame^] | 41 | prePatches("k8s-infra-bzl4-compat.patch"), |
Lorenz Brun | ed0503c | 2020-07-28 17:21:25 +0200 | [diff] [blame] | 42 | ).with(prePatches("k8s-client-go.patch")).use( |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 43 | "k8s.io/client-go", |
Lorenz Brun | 878f5f9 | 2020-05-12 16:15:39 +0200 | [diff] [blame] | 44 | ).with(patches("k8s-native-mounter.patch")).use( |
| 45 | "k8s.io/utils", |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 46 | ).use( |
| 47 | "k8s.io/cli-runtime", |
| 48 | "k8s.io/client-go", |
| 49 | "k8s.io/cloud-provider", |
| 50 | "k8s.io/cluster-bootstrap", |
| 51 | "k8s.io/component-base", |
| 52 | "k8s.io/csi-translation-lib", |
| 53 | "k8s.io/kube-controller-manager", |
| 54 | "k8s.io/kube-proxy", |
| 55 | "k8s.io/kube-scheduler", |
| 56 | "k8s.io/kubectl", |
| 57 | "k8s.io/legacy-cloud-providers", |
| 58 | "k8s.io/sample-apiserver", |
| 59 | ).with(disabledProtoBuild).use( |
| 60 | "k8s.io/api", |
| 61 | "k8s.io/apiextensions-apiserver", |
| 62 | "k8s.io/apimachinery", |
| 63 | "k8s.io/apiserver", |
| 64 | "k8s.io/cri-api", |
| 65 | "k8s.io/kube-aggregator", |
| 66 | "k8s.io/kubelet", |
| 67 | "k8s.io/metrics", |
| 68 | ).use( |
| 69 | "cloud.google.com/go", |
| 70 | "github.com/Azure/go-ansiterm", |
| 71 | "github.com/MakeNowJust/heredoc", |
| 72 | "github.com/NYTimes/gziphandler", |
| 73 | "github.com/PuerkitoBio/purell", |
| 74 | "github.com/PuerkitoBio/urlesc", |
| 75 | "github.com/armon/circbuf", |
| 76 | "github.com/asaskevich/govalidator", |
| 77 | "github.com/bgentry/speakeasy", |
| 78 | "github.com/blang/semver", |
| 79 | "github.com/chai2010/gettext-go", |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 80 | "github.com/container-storage-interface/spec", |
| 81 | "github.com/coreos/go-oidc", |
| 82 | "github.com/coreos/go-semver", |
| 83 | "github.com/coreos/go-systemd", |
| 84 | "github.com/coreos/pkg", |
| 85 | "github.com/cyphar/filepath-securejoin", |
| 86 | "github.com/daviddengcn/go-colortext", |
| 87 | "github.com/dgrijalva/jwt-go", |
| 88 | "github.com/docker/go-connections", |
Lorenz Brun | b876fc3 | 2020-07-14 13:54:01 +0200 | [diff] [blame] | 89 | "github.com/docker/distribution", |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 90 | "github.com/dustin/go-humanize", |
Lorenz Brun | ed0503c | 2020-07-28 17:21:25 +0200 | [diff] [blame] | 91 | "github.com/elazarl/goproxy", |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 92 | "github.com/euank/go-kmsg-parser", |
| 93 | "github.com/evanphx/json-patch", |
| 94 | "github.com/exponent-io/jsonpath", |
| 95 | "github.com/fatih/camelcase", |
| 96 | "github.com/fatih/color", |
| 97 | "github.com/ghodss/yaml", |
| 98 | "github.com/go-openapi/analysis", |
| 99 | "github.com/go-openapi/errors", |
| 100 | "github.com/go-openapi/jsonpointer", |
| 101 | "github.com/go-openapi/jsonreference", |
| 102 | "github.com/go-openapi/loads", |
| 103 | "github.com/go-openapi/runtime", |
| 104 | "github.com/go-openapi/spec", |
| 105 | "github.com/go-openapi/strfmt", |
| 106 | "github.com/go-openapi/swag", |
| 107 | "github.com/go-openapi/validate", |
| 108 | "github.com/go-stack/stack", |
| 109 | "github.com/golang/groupcache", |
| 110 | "github.com/google/btree", |
| 111 | "github.com/google/go-cmp", |
| 112 | "github.com/googleapis/gnostic", |
| 113 | "github.com/gorilla/websocket", |
| 114 | "github.com/gregjones/httpcache", |
| 115 | "github.com/grpc-ecosystem/go-grpc-middleware", |
| 116 | "github.com/grpc-ecosystem/go-grpc-prometheus", |
| 117 | "github.com/grpc-ecosystem/grpc-gateway", |
Serge Bazanski | 520c934 | 2020-12-22 10:58:41 +0100 | [diff] [blame] | 118 | "github.com/hashicorp/hcl", |
Lorenz Brun | ed0503c | 2020-07-28 17:21:25 +0200 | [diff] [blame] | 119 | "github.com/hpcloud/tail", |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 120 | "github.com/jonboulle/clockwork", |
| 121 | "github.com/karrick/godirwalk", |
| 122 | "github.com/liggitt/tabwriter", |
| 123 | "github.com/lithammer/dedent", |
| 124 | "github.com/mailru/easyjson", |
Serge Bazanski | 520c934 | 2020-12-22 10:58:41 +0100 | [diff] [blame] | 125 | "github.com/magiconair/properties", |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 126 | "github.com/mattn/go-colorable", |
| 127 | "github.com/mattn/go-isatty", |
| 128 | "github.com/mattn/go-runewidth", |
| 129 | "github.com/mindprince/gonvml", |
Lorenz Brun | b876fc3 | 2020-07-14 13:54:01 +0200 | [diff] [blame] | 130 | "github.com/mistifyio/go-zfs", |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 131 | "github.com/mitchellh/go-wordwrap", |
| 132 | "github.com/mitchellh/mapstructure", |
| 133 | "github.com/moby/term", |
Lorenz Brun | b876fc3 | 2020-07-14 13:54:01 +0200 | [diff] [blame] | 134 | "github.com/moby/sys/mountinfo", |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 135 | "github.com/morikuni/aec", |
| 136 | "github.com/mrunalp/fileutils", |
| 137 | "github.com/munnerz/goautoneg", |
| 138 | "github.com/mxk/go-flowrate", |
| 139 | "github.com/olekukonko/tablewriter", |
Lorenz Brun | ed0503c | 2020-07-28 17:21:25 +0200 | [diff] [blame] | 140 | "github.com/onsi/ginkgo", |
| 141 | "github.com/onsi/gomega", |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 142 | "github.com/peterbourgon/diskv", |
| 143 | "github.com/pquerna/cachecontrol", |
| 144 | "github.com/robfig/cron", |
Lorenz Brun | b876fc3 | 2020-07-14 13:54:01 +0200 | [diff] [blame] | 145 | "github.com/russross/blackfriday", |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 146 | "github.com/soheilhy/cmux", |
| 147 | "github.com/spf13/afero", |
Serge Bazanski | 520c934 | 2020-12-22 10:58:41 +0100 | [diff] [blame] | 148 | "github.com/spf13/cast", |
| 149 | "github.com/spf13/jwalterweatherman", |
| 150 | "github.com/spf13/cobra", |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 151 | "github.com/spf13/pflag", |
Serge Bazanski | 520c934 | 2020-12-22 10:58:41 +0100 | [diff] [blame] | 152 | "github.com/spf13/viper", |
Lorenz Brun | b876fc3 | 2020-07-14 13:54:01 +0200 | [diff] [blame] | 153 | "github.com/stretchr/testify", |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 154 | "github.com/tmc/grpc-websocket-proxy", |
| 155 | "github.com/vishvananda/netlink", |
| 156 | "github.com/vishvananda/netns", |
| 157 | "github.com/xiang90/probing", |
| 158 | "go.mongodb.org/mongo-driver", |
| 159 | "go.uber.org/atomic", |
| 160 | "go.uber.org/multierr", |
| 161 | "go.uber.org/zap", |
Serge Bazanski | 19eb000 | 2021-01-21 14:25:25 +0100 | [diff] [blame] | 162 | "golang.org/x/net", |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 163 | "golang.org/x/xerrors", |
| 164 | "gonum.org/v1/gonum", |
Lorenz Brun | ed0503c | 2020-07-28 17:21:25 +0200 | [diff] [blame] | 165 | "gopkg.in/fsnotify.v1", |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 166 | "gopkg.in/natefinch/lumberjack.v2", |
| 167 | "gopkg.in/square/go-jose.v2", |
Lorenz Brun | ed0503c | 2020-07-28 17:21:25 +0200 | [diff] [blame] | 168 | "gopkg.in/tomb.v1", |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 169 | "k8s.io/gengo", |
| 170 | "k8s.io/heapster", |
| 171 | "k8s.io/kube-openapi", |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 172 | "sigs.k8s.io/apiserver-network-proxy/konnectivity-client", |
| 173 | "sigs.k8s.io/kustomize", |
Serge Bazanski | 19eb000 | 2021-01-21 14:25:25 +0100 | [diff] [blame] | 174 | "sigs.k8s.io/structured-merge-diff/v4", |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 175 | "vbom.ml/util", |
Lorenz Brun | b876fc3 | 2020-07-14 13:54:01 +0200 | [diff] [blame] | 176 | ).use( |
Serge Bazanski | f369cfa | 2020-05-22 18:36:42 +0200 | [diff] [blame] | 177 | "github.com/google/cadvisor", |
| 178 | ).with(disabledProtoBuild).use( |
| 179 | "go.etcd.io/etcd", |
| 180 | ) |
| 181 | } |