blob: e3b00cff6011ea36927119ac58b2feace00c8569 [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
Serge Bazanski4b1e37c2021-09-28 12:49:15 +020017package fietsje
18
19// deps_kubernetes.go contains all dependencies required by Kubernetes.
Serge Bazanskif369cfa2020-05-22 18:36:42 +020020
21func depsKubernetes(p *planner) {
22 // containerd and its deps
23 p.collect(
Serge Bazanski19eb0002021-01-21 14:25:25 +010024 "k8s.io/kubernetes", "v1.19.7",
Serge Bazanskif369cfa2020-05-22 18:36:42 +020025 buildTags("providerless"),
26 disabledProtoBuild,
Lorenz Brun878f5f92020-05-12 16:15:39 +020027 patches(
28 "k8s-kubernetes.patch",
29 "k8s-kubernetes-build.patch",
30 "k8s-native-metrics.patch",
31 "k8s-use-native.patch",
Serge Bazanski19eb0002021-01-21 14:25:25 +010032 "k8s-revert-seccomp-runtime-default.patch",
Lorenz Brun37050122021-03-30 14:00:27 +020033 "k8s-removed-block-device-pseudo-locks.patch",
Lorenz Brun878f5f92020-05-12 16:15:39 +020034 ),
Lorenz Bruned0503c2020-07-28 17:21:25 +020035 prePatches(
36 "k8s-e2e-tests-providerless.patch",
Lorenz Brun842536b2021-01-26 13:54:57 +010037 "k8s-fix-paths.patch",
38 "k8s-fix-logs-path.patch",
Lorenz Brun7b822272021-02-03 17:03:41 +010039 "k8s-drop-legacy-log-path.patch",
Lorenz Bruned0503c2020-07-28 17:21:25 +020040 ),
Serge Bazanskif369cfa2020-05-22 18:36:42 +020041 ).inject(
42 // repo infra, not requested by k8s, but used with bazel
Serge Bazanskif12bedf2021-01-15 16:58:50 +010043 "k8s.io/repo-infra", "a3483874bd37251c629c92df6d82a226b0e6ad92",
Lorenz Brunc2e3b1b2021-11-11 11:06:41 +010044 prePatches("k8s-infra-bzl4-compat.patch", "k8s-infra-fix-go116.patch"),
Lorenz Bruned0503c2020-07-28 17:21:25 +020045 ).with(prePatches("k8s-client-go.patch")).use(
Serge Bazanskif369cfa2020-05-22 18:36:42 +020046 "k8s.io/client-go",
Lorenz Brun878f5f92020-05-12 16:15:39 +020047 ).with(patches("k8s-native-mounter.patch")).use(
48 "k8s.io/utils",
Serge Bazanskif369cfa2020-05-22 18:36:42 +020049 ).use(
50 "k8s.io/cli-runtime",
51 "k8s.io/client-go",
52 "k8s.io/cloud-provider",
53 "k8s.io/cluster-bootstrap",
Serge Bazanski339f97d2021-03-31 22:16:52 +020054 "k8s.io/code-generator",
Serge Bazanskif369cfa2020-05-22 18:36:42 +020055 "k8s.io/component-base",
56 "k8s.io/csi-translation-lib",
57 "k8s.io/kube-controller-manager",
58 "k8s.io/kube-proxy",
59 "k8s.io/kube-scheduler",
60 "k8s.io/kubectl",
61 "k8s.io/legacy-cloud-providers",
62 "k8s.io/sample-apiserver",
63 ).with(disabledProtoBuild).use(
64 "k8s.io/api",
65 "k8s.io/apiextensions-apiserver",
66 "k8s.io/apimachinery",
67 "k8s.io/apiserver",
68 "k8s.io/cri-api",
69 "k8s.io/kube-aggregator",
70 "k8s.io/kubelet",
71 "k8s.io/metrics",
72 ).use(
73 "cloud.google.com/go",
74 "github.com/Azure/go-ansiterm",
75 "github.com/MakeNowJust/heredoc",
76 "github.com/NYTimes/gziphandler",
77 "github.com/PuerkitoBio/purell",
78 "github.com/PuerkitoBio/urlesc",
79 "github.com/armon/circbuf",
80 "github.com/asaskevich/govalidator",
81 "github.com/bgentry/speakeasy",
82 "github.com/blang/semver",
83 "github.com/chai2010/gettext-go",
Serge Bazanskif369cfa2020-05-22 18:36:42 +020084 "github.com/container-storage-interface/spec",
85 "github.com/coreos/go-oidc",
86 "github.com/coreos/go-semver",
87 "github.com/coreos/go-systemd",
88 "github.com/coreos/pkg",
89 "github.com/cyphar/filepath-securejoin",
90 "github.com/daviddengcn/go-colortext",
91 "github.com/dgrijalva/jwt-go",
92 "github.com/docker/go-connections",
Lorenz Brunb876fc32020-07-14 13:54:01 +020093 "github.com/docker/distribution",
Serge Bazanskif369cfa2020-05-22 18:36:42 +020094 "github.com/dustin/go-humanize",
Lorenz Bruned0503c2020-07-28 17:21:25 +020095 "github.com/elazarl/goproxy",
Serge Bazanskif369cfa2020-05-22 18:36:42 +020096 "github.com/euank/go-kmsg-parser",
97 "github.com/evanphx/json-patch",
98 "github.com/exponent-io/jsonpath",
99 "github.com/fatih/camelcase",
100 "github.com/fatih/color",
101 "github.com/ghodss/yaml",
102 "github.com/go-openapi/analysis",
103 "github.com/go-openapi/errors",
104 "github.com/go-openapi/jsonpointer",
105 "github.com/go-openapi/jsonreference",
106 "github.com/go-openapi/loads",
107 "github.com/go-openapi/runtime",
108 "github.com/go-openapi/spec",
109 "github.com/go-openapi/strfmt",
110 "github.com/go-openapi/swag",
111 "github.com/go-openapi/validate",
112 "github.com/go-stack/stack",
113 "github.com/golang/groupcache",
114 "github.com/google/btree",
115 "github.com/google/go-cmp",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200116 "github.com/gorilla/websocket",
117 "github.com/gregjones/httpcache",
118 "github.com/grpc-ecosystem/go-grpc-middleware",
119 "github.com/grpc-ecosystem/go-grpc-prometheus",
120 "github.com/grpc-ecosystem/grpc-gateway",
Serge Bazanski520c9342020-12-22 10:58:41 +0100121 "github.com/hashicorp/hcl",
Lorenz Bruned0503c2020-07-28 17:21:25 +0200122 "github.com/hpcloud/tail",
Serge Bazanskidd7b2d22021-07-02 17:13:22 +0200123 "github.com/inconshreveable/mousetrap",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200124 "github.com/jonboulle/clockwork",
125 "github.com/karrick/godirwalk",
126 "github.com/liggitt/tabwriter",
127 "github.com/lithammer/dedent",
128 "github.com/mailru/easyjson",
Serge Bazanski520c9342020-12-22 10:58:41 +0100129 "github.com/magiconair/properties",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200130 "github.com/mattn/go-colorable",
131 "github.com/mattn/go-isatty",
132 "github.com/mattn/go-runewidth",
133 "github.com/mindprince/gonvml",
Lorenz Brunb876fc32020-07-14 13:54:01 +0200134 "github.com/mistifyio/go-zfs",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200135 "github.com/mitchellh/go-wordwrap",
136 "github.com/mitchellh/mapstructure",
137 "github.com/moby/term",
Lorenz Brunb876fc32020-07-14 13:54:01 +0200138 "github.com/moby/sys/mountinfo",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200139 "github.com/morikuni/aec",
140 "github.com/mrunalp/fileutils",
141 "github.com/munnerz/goautoneg",
142 "github.com/mxk/go-flowrate",
143 "github.com/olekukonko/tablewriter",
Lorenz Bruned0503c2020-07-28 17:21:25 +0200144 "github.com/onsi/ginkgo",
145 "github.com/onsi/gomega",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200146 "github.com/peterbourgon/diskv",
147 "github.com/pquerna/cachecontrol",
148 "github.com/robfig/cron",
Lorenz Brunb876fc32020-07-14 13:54:01 +0200149 "github.com/russross/blackfriday",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200150 "github.com/soheilhy/cmux",
151 "github.com/spf13/afero",
Serge Bazanski520c9342020-12-22 10:58:41 +0100152 "github.com/spf13/cast",
153 "github.com/spf13/jwalterweatherman",
154 "github.com/spf13/cobra",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200155 "github.com/spf13/pflag",
Serge Bazanski520c9342020-12-22 10:58:41 +0100156 "github.com/spf13/viper",
Lorenz Brunb876fc32020-07-14 13:54:01 +0200157 "github.com/stretchr/testify",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200158 "github.com/tmc/grpc-websocket-proxy",
159 "github.com/vishvananda/netlink",
160 "github.com/vishvananda/netns",
161 "github.com/xiang90/probing",
162 "go.mongodb.org/mongo-driver",
163 "go.uber.org/atomic",
164 "go.uber.org/multierr",
165 "go.uber.org/zap",
Serge Bazanski19eb0002021-01-21 14:25:25 +0100166 "golang.org/x/net",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200167 "golang.org/x/xerrors",
168 "gonum.org/v1/gonum",
Lorenz Bruned0503c2020-07-28 17:21:25 +0200169 "gopkg.in/fsnotify.v1",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200170 "gopkg.in/natefinch/lumberjack.v2",
171 "gopkg.in/square/go-jose.v2",
Lorenz Bruned0503c2020-07-28 17:21:25 +0200172 "gopkg.in/tomb.v1",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200173 "k8s.io/gengo",
174 "k8s.io/heapster",
175 "k8s.io/kube-openapi",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200176 "sigs.k8s.io/apiserver-network-proxy/konnectivity-client",
177 "sigs.k8s.io/kustomize",
Serge Bazanski19eb0002021-01-21 14:25:25 +0100178 "sigs.k8s.io/structured-merge-diff/v4",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200179 "vbom.ml/util",
Lorenz Brunb876fc32020-07-14 13:54:01 +0200180 ).use(
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200181 "github.com/google/cadvisor",
182 ).with(disabledProtoBuild).use(
183 "go.etcd.io/etcd",
Lorenz Brunc2e3b1b2021-11-11 11:06:41 +0100184 "github.com/googleapis/gnostic",
Serge Bazanskif369cfa2020-05-22 18:36:42 +0200185 )
186}