blob: d4f709eb4373b6020878ca0e9e96a85198825822 [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 Brun37050122021-03-30 14:00:27 +020031 "k8s-removed-block-device-pseudo-locks.patch",
Lorenz Brun878f5f92020-05-12 16:15:39 +020032 ),
Lorenz Bruned0503c2020-07-28 17:21:25 +020033 prePatches(
34 "k8s-e2e-tests-providerless.patch",
Lorenz Brun842536b2021-01-26 13:54:57 +010035 "k8s-fix-paths.patch",
36 "k8s-fix-logs-path.patch",
Lorenz Brun7b822272021-02-03 17:03:41 +010037 "k8s-drop-legacy-log-path.patch",
Lorenz Bruned0503c2020-07-28 17:21:25 +020038 ),
Serge Bazanskif369cfa2020-05-22 18:36:42 +020039 ).inject(
40 // repo infra, not requested by k8s, but used with bazel
Serge Bazanskif12bedf2021-01-15 16:58:50 +010041 "k8s.io/repo-infra", "a3483874bd37251c629c92df6d82a226b0e6ad92",
Lorenz Brun2073ce32021-02-03 18:52:59 +010042 prePatches("k8s-infra-bzl4-compat.patch"),
Lorenz Bruned0503c2020-07-28 17:21:25 +020043 ).with(prePatches("k8s-client-go.patch")).use(
Serge Bazanskif369cfa2020-05-22 18:36:42 +020044 "k8s.io/client-go",
Lorenz Brun878f5f92020-05-12 16:15:39 +020045 ).with(patches("k8s-native-mounter.patch")).use(
46 "k8s.io/utils",
Serge Bazanskif369cfa2020-05-22 18:36:42 +020047 ).use(
48 "k8s.io/cli-runtime",
49 "k8s.io/client-go",
50 "k8s.io/cloud-provider",
51 "k8s.io/cluster-bootstrap",
Serge Bazanski339f97d2021-03-31 22:16:52 +020052 "k8s.io/code-generator",
Serge Bazanskif369cfa2020-05-22 18:36:42 +020053 "k8s.io/component-base",
54 "k8s.io/csi-translation-lib",
55 "k8s.io/kube-controller-manager",
56 "k8s.io/kube-proxy",
57 "k8s.io/kube-scheduler",
58 "k8s.io/kubectl",
59 "k8s.io/legacy-cloud-providers",
60 "k8s.io/sample-apiserver",
61 ).with(disabledProtoBuild).use(
62 "k8s.io/api",
63 "k8s.io/apiextensions-apiserver",
64 "k8s.io/apimachinery",
65 "k8s.io/apiserver",
66 "k8s.io/cri-api",
67 "k8s.io/kube-aggregator",
68 "k8s.io/kubelet",
69 "k8s.io/metrics",
70 ).use(
71 "cloud.google.com/go",
72 "github.com/Azure/go-ansiterm",
73 "github.com/MakeNowJust/heredoc",
74 "github.com/NYTimes/gziphandler",
75 "github.com/PuerkitoBio/purell",
76 "github.com/PuerkitoBio/urlesc",
77 "github.com/armon/circbuf",
78 "github.com/asaskevich/govalidator",
79 "github.com/bgentry/speakeasy",
80 "github.com/blang/semver",
81 "github.com/chai2010/gettext-go",
Serge Bazanskif369cfa2020-05-22 18:36:42 +020082 "github.com/container-storage-interface/spec",
83 "github.com/coreos/go-oidc",
84 "github.com/coreos/go-semver",
85 "github.com/coreos/go-systemd",
86 "github.com/coreos/pkg",
87 "github.com/cyphar/filepath-securejoin",
88 "github.com/daviddengcn/go-colortext",
89 "github.com/dgrijalva/jwt-go",
90 "github.com/docker/go-connections",
Lorenz Brunb876fc32020-07-14 13:54:01 +020091 "github.com/docker/distribution",
Serge Bazanskif369cfa2020-05-22 18:36:42 +020092 "github.com/dustin/go-humanize",
Lorenz Bruned0503c2020-07-28 17:21:25 +020093 "github.com/elazarl/goproxy",
Serge Bazanskif369cfa2020-05-22 18:36:42 +020094 "github.com/euank/go-kmsg-parser",
95 "github.com/evanphx/json-patch",
96 "github.com/exponent-io/jsonpath",
97 "github.com/fatih/camelcase",
98 "github.com/fatih/color",
99 "github.com/ghodss/yaml",
100 "github.com/go-openapi/analysis",
101 "github.com/go-openapi/errors",
102 "github.com/go-openapi/jsonpointer",
103 "github.com/go-openapi/jsonreference",
104 "github.com/go-openapi/loads",
105 "github.com/go-openapi/runtime",
106 "github.com/go-openapi/spec",
107 "github.com/go-openapi/strfmt",
108 "github.com/go-openapi/swag",
109 "github.com/go-openapi/validate",
110 "github.com/go-stack/stack",
111 "github.com/golang/groupcache",
112 "github.com/google/btree",
113 "github.com/google/go-cmp",
114 "github.com/googleapis/gnostic",
115 "github.com/gorilla/websocket",
116 "github.com/gregjones/httpcache",
117 "github.com/grpc-ecosystem/go-grpc-middleware",
118 "github.com/grpc-ecosystem/go-grpc-prometheus",
119 "github.com/grpc-ecosystem/grpc-gateway",
Serge Bazanski520c9342020-12-22 10:58:41 +0100120 "github.com/hashicorp/hcl",
Lorenz Bruned0503c2020-07-28 17:21:25 +0200121 "github.com/hpcloud/tail",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200122 "github.com/jonboulle/clockwork",
123 "github.com/karrick/godirwalk",
124 "github.com/liggitt/tabwriter",
125 "github.com/lithammer/dedent",
126 "github.com/mailru/easyjson",
Serge Bazanski520c9342020-12-22 10:58:41 +0100127 "github.com/magiconair/properties",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200128 "github.com/mattn/go-colorable",
129 "github.com/mattn/go-isatty",
130 "github.com/mattn/go-runewidth",
131 "github.com/mindprince/gonvml",
Lorenz Brunb876fc32020-07-14 13:54:01 +0200132 "github.com/mistifyio/go-zfs",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200133 "github.com/mitchellh/go-wordwrap",
134 "github.com/mitchellh/mapstructure",
135 "github.com/moby/term",
Lorenz Brunb876fc32020-07-14 13:54:01 +0200136 "github.com/moby/sys/mountinfo",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200137 "github.com/morikuni/aec",
138 "github.com/mrunalp/fileutils",
139 "github.com/munnerz/goautoneg",
140 "github.com/mxk/go-flowrate",
141 "github.com/olekukonko/tablewriter",
Lorenz Bruned0503c2020-07-28 17:21:25 +0200142 "github.com/onsi/ginkgo",
143 "github.com/onsi/gomega",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200144 "github.com/peterbourgon/diskv",
145 "github.com/pquerna/cachecontrol",
146 "github.com/robfig/cron",
Lorenz Brunb876fc32020-07-14 13:54:01 +0200147 "github.com/russross/blackfriday",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200148 "github.com/soheilhy/cmux",
149 "github.com/spf13/afero",
Serge Bazanski520c9342020-12-22 10:58:41 +0100150 "github.com/spf13/cast",
151 "github.com/spf13/jwalterweatherman",
152 "github.com/spf13/cobra",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200153 "github.com/spf13/pflag",
Serge Bazanski520c9342020-12-22 10:58:41 +0100154 "github.com/spf13/viper",
Lorenz Brunb876fc32020-07-14 13:54:01 +0200155 "github.com/stretchr/testify",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200156 "github.com/tmc/grpc-websocket-proxy",
157 "github.com/vishvananda/netlink",
158 "github.com/vishvananda/netns",
159 "github.com/xiang90/probing",
160 "go.mongodb.org/mongo-driver",
161 "go.uber.org/atomic",
162 "go.uber.org/multierr",
163 "go.uber.org/zap",
Serge Bazanski19eb0002021-01-21 14:25:25 +0100164 "golang.org/x/net",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200165 "golang.org/x/xerrors",
166 "gonum.org/v1/gonum",
Lorenz Bruned0503c2020-07-28 17:21:25 +0200167 "gopkg.in/fsnotify.v1",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200168 "gopkg.in/natefinch/lumberjack.v2",
169 "gopkg.in/square/go-jose.v2",
Lorenz Bruned0503c2020-07-28 17:21:25 +0200170 "gopkg.in/tomb.v1",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200171 "k8s.io/gengo",
172 "k8s.io/heapster",
173 "k8s.io/kube-openapi",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200174 "sigs.k8s.io/apiserver-network-proxy/konnectivity-client",
175 "sigs.k8s.io/kustomize",
Serge Bazanski19eb0002021-01-21 14:25:25 +0100176 "sigs.k8s.io/structured-merge-diff/v4",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200177 "vbom.ml/util",
Lorenz Brunb876fc32020-07-14 13:54:01 +0200178 ).use(
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200179 "github.com/google/cadvisor",
180 ).with(disabledProtoBuild).use(
181 "go.etcd.io/etcd",
182 )
183}