Commit Graph

9114 Commits

Author SHA1 Message Date
Antonio Ojea
06f2d678ee update and verify netparse
Add script to verify that net.ParseIP and net.ParseCIDR are
not being used.

Add another script to automatically replace those functions
for the ones forked in k8s.io/utils/net
2021-08-20 10:42:09 +02:00
Jordan Liggitt
a26f7f2b58 Add non-vendor version ldflags 2021-08-14 11:20:26 -04:00
Kubernetes Prow Robot
98e526390d
Merge pull request #103724 from claudiubelu/update-e2e-test-images-url
Update e2e test images url
2021-08-12 09:10:13 -07:00
Kubernetes Prow Robot
9c7426e14f
Merge pull request #104315 from yselkowitz/goflags-fix
Fix build with multiple GOFLAGS
2021-08-12 04:59:47 -07:00
Kubernetes Prow Robot
8156c82fa1
Merge pull request #99887 from yangjunmyfm192085/run-test26
Fix error path in file /verify-prerelease-lifecycle-tags.sh.
2021-08-11 18:37:48 -07:00
Yaakov Selkowitz
67e14290aa Fix build with multiple GOFLAGS
The tag extraction from GOFLAGS doesn't do anything if -tags is not
present in GOFLAGS.  Not only does that mean non-sensical tags are
passed, but because GOFLAGS is a space-separated variable, the build
will fail because the build flags because -tags must be comma-separated.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2021-08-11 19:23:41 -04:00
Davanum Srinivas
f63dbd481f
Warn if docker buildx is not available
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-08-10 14:42:11 -04:00
Patrick Ohly
808659cc42 pin-dependencies.sh: support switching repos
Sometimes it is useful to fork a dependency in a different repo and
then use that forked code in Kubernetes. Normally one would do `go mod
edit -replace ...=/local/path` but that has drawbacks:

- repos under staging are not updated
- sharing the modified Kubernetes with others is harder, for example
  in a WIP or RFC PR

The revised pin-dependencies.sh supports this with an optional
=<replacement> part in the dependency parameter.

Determining the revision upfront with `go mod download` also makes the
script simpler.
2021-08-09 16:54:30 +02:00
Kubernetes Prow Robot
0427b17395
Merge pull request #104164 from dims/allow-override-of-cgo-enabled
Allow override of KUBE_CGO_OVERRIDES (for switching on/off of `CGO_ENABLED`)
2021-08-05 16:37:26 -07:00
Kubernetes Prow Robot
4842242e7a
Merge pull request #103987 from ehashman/cherry-pick-release-note
Add release note block to cherry-pick script
2021-08-05 14:11:10 -07:00
Kubernetes Prow Robot
79c7584764
Merge pull request #103986 from GM1957/fix-scripts
fixing scripts from https://github.com/google/protobuf/releases to ht…
2021-08-05 08:17:59 -07:00
Kubernetes Prow Robot
58cde6c442
Merge pull request #103874 from liggitt/move-conformance
Move conformance image
2021-08-05 08:17:34 -07:00
Davanum Srinivas
af2129b77d
Allow override of CGO_ENABLED=0
When building inside a docker container, we fail to pass along enough
information for KUBE_CGO_OVERRIDES. The original PR was geared towards
building the binary from the command line

- dca376a03e
- e4ded2b3ec

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-08-05 10:45:14 -04:00
Kubernetes Prow Robot
e4efd1e360
Merge pull request #103710 from nckturner/configure-cloud-routes-local-hack
Make --configure-cloud-routes configurable in local-up-cluster
2021-08-04 22:12:04 -07:00
Tim Hockin
09dc055984
Update golang.org/x/time/rate (#104014)
* Add failing test case

* Update golang.org/x/time/rate

* Call update-internal-modules from update-vendor
2021-07-29 16:13:38 -07:00
Elana Hashman
fec260d083
Add release note block to cherry-pick script 2021-07-28 14:46:05 -07:00
Tanmoy Bhowmick
260b5ef155 fixing scripts from https://github.com/google/protobuf/releases to https://github.com/protocolbuffers/protobuf/releases 2021-07-29 02:24:39 +05:30
Caleb Woodbine
bbb368b701 Update e2e test images url
Removes any reference from the registry gcr.io/kubernetes-e2e-test-images in
kubernetes/kubernetes, replacing it with k8s.gcr.io/kubernetes-e2e-test-images.
In some cases, the images had to be updated since a few things have changed since
their original implementation, most notably being the fact that some of the images
have been centralized into the agnhost image.

Co-Authored-By: Claudiu Belu <cbelu@cloudbasesolutions.com>
2021-07-27 22:01:43 -07:00
Jordan Liggitt
4115bef826 Update references to test/conformance/image 2021-07-23 11:26:54 -04:00
Nick Turner
1887ddfc96 Make --configure-cloud-routes configurable in local-up-cluster
- Allow --configure-cloud-routes to be set in hack/local-up-cluster.sh
  using the env var $CONFIGURE_CLOUD_ROUTES.
2021-07-15 08:21:32 +00:00
Davanum Srinivas
75748c185e
enable verify-golangci-lint.sh
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-07-14 08:53:33 -04:00
Davanum Srinivas
b74fe232e3
update golangci-lint to newer version
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-07-14 08:41:21 -04:00
Mikhail Mazurskiy
bc475373b2
Drop direct dependency on gotest.tools 2021-07-10 13:31:32 +10:00
Elana Hashman
642eff0c69
Rename NodeSwapEnabled flag to NodeSwap 2021-07-09 11:39:52 -07:00
Kubernetes Prow Robot
24a614cb4c
Merge pull request #103556 from dims/update-license-gathering-script-for-forked-code
Update license gathering script for forked code
2021-07-08 08:51:06 -07:00
Kubernetes Prow Robot
a2b1f00a8b
Merge pull request #103522 from atiratree/fix-translations-location
fix translations location in update-translations.sh
2021-07-08 05:58:53 -07:00
Davanum Srinivas
40f1db8d2d
update license gathering script for forked code
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-07-08 07:48:19 -04:00
Kubernetes Prow Robot
ac554af79b
Merge pull request #103142 from serathius/etcd-3.5.0
Upgrade etcd to 3.5.0
2021-07-07 12:40:22 -07:00
atiratree
1e0f695afa fix translations location in update-translations.sh 2021-07-07 20:01:25 +02:00
Kubernetes Prow Robot
561959f682
Merge pull request #102823 from ehashman/kep-2400-swap
Alpha node swap support
2021-07-06 22:11:11 -07:00
atiratree
66dbfbce10 update-translations.sh: add fix translations option (-k) 2021-07-05 22:39:11 +02:00
atiratree
079d8aeb1e fix update-translations.sh 2021-07-05 22:39:07 +02:00
Stephen Augustus
c24dfe528a
cluster,hack: Use community infra GCS bucket for retrieving CI builds
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-07-03 17:04:54 -04:00
Kubernetes Prow Robot
7e00f5d401
Merge pull request #103118 from wangyysde/remove-errors-from-check_conformance_test_requirements.go
use native error instead of github.com/pkg/errors
2021-07-01 07:39:55 -07:00
wangyysde
e2e1c94f06 use native error instead of github.com/pkg/errors
Signed-off-by: wangyysde <net_use@bzhy.com>
2021-07-01 10:54:09 +08:00
Kubernetes Prow Robot
044fd6fdf6
Merge pull request #99829 from palnabarun/migrate-to-go-embed
Replace go-bindata with //go:embed
2021-06-30 10:37:03 -07:00
Rishabh Jain
584eb5e947 Update local-cluster-up.sh to auto-detect darwin and skip kubelet and kube-proxy 2021-06-30 20:30:03 +05:30
Elana Hashman
9eeec68d67
Update local-up-cluster.sh swap warning 2021-06-29 11:57:35 -07:00
Nabarun Pal
d98b2dd2d6
generated: remove usage of go-bindata
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2021-06-29 19:16:48 +05:30
Nabarun Pal
43c2e454a0
hack: remove bindata generation logic for translations
also, remove generated bindata

Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2021-06-29 13:36:28 +05:30
Nabarun Pal
5ece28b77a
kubectl: move translations to i18n package to kubectl staging directory
Go 1.16's embed directive doesn't allow embeding files from parent
directories. Hence, moving the translations data to inside the i18n package.

Logically speaking as well, kubectl related artifacts should be inside
the kubectl package.

Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2021-06-29 13:36:26 +05:30
pacoxu
669fb50136 upgrade staticcheck to v0.2.0 and update the static failure packages 2021-06-28 18:04:16 +08:00
Kubernetes Prow Robot
7163f8f810
Merge pull request #100771 from njuptlzf/fix_staticcheck_storage
Fix staticcheck failures for vendor/k8s.io/apiserver/pkg/storage
2021-06-25 01:16:45 -07:00
Mike Spreitzer
179e48c4be Add missing comments in APF API types 2021-06-25 00:27:40 -04:00
Marek Siarkowicz
ebe550bd48 Upgrade etcd to 3.5.0 2021-06-24 09:15:17 +02:00
njuptlzf
93365919b5 Fix staticcheck failures 2021-06-23 23:27:43 +08:00
Kubernetes Prow Robot
2d0821c2a0
Merge pull request #102960 from BenTheElder/nodataracesplease
enable race detector by default in make test
2021-06-18 19:26:49 -07:00
Benjamin Elder
8942cba24d log if we're running with -race 2021-06-18 14:49:53 -07:00
Benjamin Elder
68d8bcb64f remove redundant bits from test-dockerized.sh 2021-06-18 14:49:53 -07:00
Benjamin Elder
4ee729ce5f disable race detector in test-cmd.sh 2021-06-18 14:49:53 -07:00