blob: baa7d15d887bad311d090d416cbf8b9a468318d9 [file] [log] [blame]
Serge Bazanskif369cfa2020-05-22 18:36:42 +02001// 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
17package main
18
19func depsKubernetes(p *planner) {
20 // containerd and its deps
21 p.collect(
Serge Bazanski19eb0002021-01-21 14:25:25 +010022 "k8s.io/kubernetes", "v1.19.7",
Serge Bazanskif369cfa2020-05-22 18:36:42 +020023 buildTags("providerless"),
24 disabledProtoBuild,
Lorenz Brun878f5f92020-05-12 16:15:39 +020025 patches(
26 "k8s-kubernetes.patch",
27 "k8s-kubernetes-build.patch",
28 "k8s-native-metrics.patch",
29 "k8s-use-native.patch",
Serge Bazanski19eb0002021-01-21 14:25:25 +010030 "k8s-revert-seccomp-runtime-default.patch",
Lorenz Brun878f5f92020-05-12 16:15:39 +020031 ),
Lorenz Bruned0503c2020-07-28 17:21:25 +020032 prePatches(
33 "k8s-e2e-tests-providerless.patch",
Lorenz Brun842536b2021-01-26 13:54:57 +010034 "k8s-fix-paths.patch",
35 "k8s-fix-logs-path.patch",
Lorenz Brun7b822272021-02-03 17:03:41 +010036 "k8s-drop-legacy-log-path.patch",
Lorenz Bruned0503c2020-07-28 17:21:25 +020037 ),
Serge Bazanskif369cfa2020-05-22 18:36:42 +020038 ).inject(
39 // repo infra, not requested by k8s, but used with bazel
Serge Bazanskif12bedf2021-01-15 16:58:50 +010040 "k8s.io/repo-infra", "a3483874bd37251c629c92df6d82a226b0e6ad92",
Lorenz Bruned0503c2020-07-28 17:21:25 +020041 ).with(prePatches("k8s-client-go.patch")).use(
Serge Bazanskif369cfa2020-05-22 18:36:42 +020042 "k8s.io/client-go",
Lorenz Brun878f5f92020-05-12 16:15:39 +020043 ).with(patches("k8s-native-mounter.patch")).use(
44 "k8s.io/utils",
Serge Bazanskif369cfa2020-05-22 18:36:42 +020045 ).use(
46 "k8s.io/cli-runtime",
47 "k8s.io/client-go",
48 "k8s.io/cloud-provider",
49 "k8s.io/cluster-bootstrap",
50 "k8s.io/component-base",
51 "k8s.io/csi-translation-lib",
52 "k8s.io/kube-controller-manager",
53 "k8s.io/kube-proxy",
54 "k8s.io/kube-scheduler",
55 "k8s.io/kubectl",
56 "k8s.io/legacy-cloud-providers",
57 "k8s.io/sample-apiserver",
58 ).with(disabledProtoBuild).use(
59 "k8s.io/api",
60 "k8s.io/apiextensions-apiserver",
61 "k8s.io/apimachinery",
62 "k8s.io/apiserver",
63 "k8s.io/cri-api",
64 "k8s.io/kube-aggregator",
65 "k8s.io/kubelet",
66 "k8s.io/metrics",
67 ).use(
68 "cloud.google.com/go",
69 "github.com/Azure/go-ansiterm",
70 "github.com/MakeNowJust/heredoc",
71 "github.com/NYTimes/gziphandler",
72 "github.com/PuerkitoBio/purell",
73 "github.com/PuerkitoBio/urlesc",
74 "github.com/armon/circbuf",
75 "github.com/asaskevich/govalidator",
76 "github.com/bgentry/speakeasy",
77 "github.com/blang/semver",
78 "github.com/chai2010/gettext-go",
Serge Bazanskif369cfa2020-05-22 18:36:42 +020079 "github.com/container-storage-interface/spec",
80 "github.com/coreos/go-oidc",
81 "github.com/coreos/go-semver",
82 "github.com/coreos/go-systemd",
83 "github.com/coreos/pkg",
84 "github.com/cyphar/filepath-securejoin",
85 "github.com/daviddengcn/go-colortext",
86 "github.com/dgrijalva/jwt-go",
87 "github.com/docker/go-connections",
Lorenz Brunb876fc32020-07-14 13:54:01 +020088 "github.com/docker/distribution",
Serge Bazanskif369cfa2020-05-22 18:36:42 +020089 "github.com/dustin/go-humanize",
Lorenz Bruned0503c2020-07-28 17:21:25 +020090 "github.com/elazarl/goproxy",
Serge Bazanskif369cfa2020-05-22 18:36:42 +020091 "github.com/euank/go-kmsg-parser",
92 "github.com/evanphx/json-patch",
93 "github.com/exponent-io/jsonpath",
94 "github.com/fatih/camelcase",
95 "github.com/fatih/color",
96 "github.com/ghodss/yaml",
97 "github.com/go-openapi/analysis",
98 "github.com/go-openapi/errors",
99 "github.com/go-openapi/jsonpointer",
100 "github.com/go-openapi/jsonreference",
101 "github.com/go-openapi/loads",
102 "github.com/go-openapi/runtime",
103 "github.com/go-openapi/spec",
104 "github.com/go-openapi/strfmt",
105 "github.com/go-openapi/swag",
106 "github.com/go-openapi/validate",
107 "github.com/go-stack/stack",
108 "github.com/golang/groupcache",
109 "github.com/google/btree",
110 "github.com/google/go-cmp",
111 "github.com/googleapis/gnostic",
112 "github.com/gorilla/websocket",
113 "github.com/gregjones/httpcache",
114 "github.com/grpc-ecosystem/go-grpc-middleware",
115 "github.com/grpc-ecosystem/go-grpc-prometheus",
116 "github.com/grpc-ecosystem/grpc-gateway",
Serge Bazanski520c9342020-12-22 10:58:41 +0100117 "github.com/hashicorp/hcl",
Lorenz Bruned0503c2020-07-28 17:21:25 +0200118 "github.com/hpcloud/tail",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200119 "github.com/jonboulle/clockwork",
120 "github.com/karrick/godirwalk",
121 "github.com/liggitt/tabwriter",
122 "github.com/lithammer/dedent",
123 "github.com/mailru/easyjson",
Serge Bazanski520c9342020-12-22 10:58:41 +0100124 "github.com/magiconair/properties",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200125 "github.com/mattn/go-colorable",
126 "github.com/mattn/go-isatty",
127 "github.com/mattn/go-runewidth",
128 "github.com/mindprince/gonvml",
Lorenz Brunb876fc32020-07-14 13:54:01 +0200129 "github.com/mistifyio/go-zfs",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200130 "github.com/mitchellh/go-wordwrap",
131 "github.com/mitchellh/mapstructure",
132 "github.com/moby/term",
Lorenz Brunb876fc32020-07-14 13:54:01 +0200133 "github.com/moby/sys/mountinfo",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200134 "github.com/morikuni/aec",
135 "github.com/mrunalp/fileutils",
136 "github.com/munnerz/goautoneg",
137 "github.com/mxk/go-flowrate",
138 "github.com/olekukonko/tablewriter",
Lorenz Bruned0503c2020-07-28 17:21:25 +0200139 "github.com/onsi/ginkgo",
140 "github.com/onsi/gomega",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200141 "github.com/peterbourgon/diskv",
142 "github.com/pquerna/cachecontrol",
143 "github.com/robfig/cron",
Lorenz Brunb876fc32020-07-14 13:54:01 +0200144 "github.com/russross/blackfriday",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200145 "github.com/soheilhy/cmux",
146 "github.com/spf13/afero",
Serge Bazanski520c9342020-12-22 10:58:41 +0100147 "github.com/spf13/cast",
148 "github.com/spf13/jwalterweatherman",
149 "github.com/spf13/cobra",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200150 "github.com/spf13/pflag",
Serge Bazanski520c9342020-12-22 10:58:41 +0100151 "github.com/spf13/viper",
Lorenz Brunb876fc32020-07-14 13:54:01 +0200152 "github.com/stretchr/testify",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200153 "github.com/tmc/grpc-websocket-proxy",
154 "github.com/vishvananda/netlink",
155 "github.com/vishvananda/netns",
156 "github.com/xiang90/probing",
157 "go.mongodb.org/mongo-driver",
158 "go.uber.org/atomic",
159 "go.uber.org/multierr",
160 "go.uber.org/zap",
Serge Bazanski19eb0002021-01-21 14:25:25 +0100161 "golang.org/x/net",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200162 "golang.org/x/xerrors",
163 "gonum.org/v1/gonum",
Lorenz Bruned0503c2020-07-28 17:21:25 +0200164 "gopkg.in/fsnotify.v1",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200165 "gopkg.in/natefinch/lumberjack.v2",
166 "gopkg.in/square/go-jose.v2",
Lorenz Bruned0503c2020-07-28 17:21:25 +0200167 "gopkg.in/tomb.v1",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200168 "k8s.io/gengo",
169 "k8s.io/heapster",
170 "k8s.io/kube-openapi",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200171 "sigs.k8s.io/apiserver-network-proxy/konnectivity-client",
172 "sigs.k8s.io/kustomize",
Serge Bazanski19eb0002021-01-21 14:25:25 +0100173 "sigs.k8s.io/structured-merge-diff/v4",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200174 "vbom.ml/util",
Lorenz Brunb876fc32020-07-14 13:54:01 +0200175 ).use(
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200176 "github.com/google/cadvisor",
177 ).with(disabledProtoBuild).use(
178 "go.etcd.io/etcd",
179 )
180}