Commit Graph

1933 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
d6487d63b7
Merge pull request #108310 from csantanapr/add-check-colima
add check for colima docker socket as fall back
2022-03-25 15:33:59 -07:00
Davanum Srinivas
d8f1da5ecb
golang: Update to 1.18 from 1.18rc1
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-03-22 09:47:35 -04:00
Mike Danese
b32e043898 remove metadata-concealment related testing
We agreed to remove these tests in SIG Auth because they aren't testing
any OSS functionality.
2022-03-14 12:44:48 -07:00
Kubernetes Prow Robot
45f2c63d6a
Merge pull request #108661 from thockin/makefile-pass-SHELL
Makefile: Pass SHELL to sub-make
2022-03-11 20:30:34 -08:00
Kubernetes Prow Robot
72e67a6b15
Merge pull request #108659 from thockin/makefile-whitespace
Makefile whitespace cleanup
2022-03-11 20:30:22 -08:00
Kubernetes Prow Robot
281b07d963
Merge pull request #108660 from thockin/makefile-dolla-dolla
Makefile: use $$ in `define` blocks
2022-03-11 18:10:23 -08:00
Kubernetes Prow Robot
b2c5bd2a27
Merge pull request #107056 from jsturtevant/remove-sac-from-pause
Remove unsupported Windows SAC images from pause image
2022-03-11 16:32:34 -08:00
Tim Hockin
ebbc4716a7 Makefile: Pass SHELL to sub-make
It turns out that:

a) SHELL does not automatically get passed down
b) we were resetiing SHELL in the sub-make anyway
2022-03-11 14:51:38 -08:00
Tim Hockin
04a1d20deb Makefile: use $$ in define blocks
Make's "define" feature (macros) is subtle and it took me a long time to
convince myself this all works. In particular, we (prior to this commit)
are terribly inconsistent about the use of `$` vs `$$`.  We mostly get
away with it because the "variables" are more like "constants", but the
inconsistency trips up some things.  For example, using `$(shell)`
inside a macro will run at macro expansion time rather than when the
resulting make code is executed.

For a contrived, but concrete example, derived from our Makefile:

```
define MACRO
ifeq ($(DBG),1)
  $(warning dbg is $(DBG))
endif
endef # macro

TGTS=a b c
$(foreach pfx, $(TGTS), $(eval $(MACRO)))

default:
	@echo $@
```

yields:

```
$ make
Makefile:8: dbg is
Makefile:8: dbg is
Makefile:8: dbg is
default

$ make DBG=1
Makefile:8: dbg is 1
Makefile:8: dbg is 1
Makefile:8: dbg is 1
default
```

This is because `$(warning)` is evaluated as the macro is expanded.
Replace that with `$(shell)` and you can see how you might end up
running a bunch of things you didn't need to run.  The fix is:

```
define MACRO
ifeq ($(DBG),1)
  $$(warning dbg is $$(DBG))
endif
endef # macro

TGTS=a b c
$(foreach pfx, $(TGTS), $(eval $(MACRO)))

default:
        @echo $@
```

which yields:

```
$ make
default

$ make DBG=1
Makefile:8: dbg is 1
Makefile:8: dbg is 1
Makefile:8: dbg is 1
default
```

We COULD have only changed `$(warning)` to `$$(warning)` and left
`$(DBG)` alone, because that's a cheap expansion.  I chose NOT to do
that here because it requires brainpower to think about this all, and it
seems easier to set a simple rule: inside a `define`/`endef` block, you
always use `$$` unless you KNOW that you NEED expansion-time evaluation
(as in the `$(prefix)` in this commit, which is effectively an argument
to the macros).
2022-03-11 14:49:47 -08:00
Tim Hockin
be7651f642 Makefile whitespace cleanup 2022-03-11 13:38:25 -08:00
Dave Chen
ace64c0138 Switch to use the DBG flag to build debug binaries
With the merging of #108371, the old way to build the debug binaries
won't work anymore.

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-03-09 14:57:59 +08:00
Carlos Santana
e914f6bf20 remove jq usage
Signed-off-by: Carlos Santana <csantana23@gmail.com>
2022-03-04 07:11:37 -05:00
Kubernetes Prow Robot
4968923164
Merge pull request #108379 from thockin/makefile-go2make-empty
Make builds fail if go2make misbehaves
2022-03-03 12:47:40 -08:00
Kubernetes Prow Robot
4dda76588f
Merge pull request #108371 from thockin/makefile-dbg-flag
Makefile: add a DBG variable
2022-03-03 12:47:28 -08:00
Davanum Srinivas
abdcbb8235
Enable specifying pause image in containerd config.toml
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-03-02 11:51:06 -05:00
Tim Hockin
ed5e549cde Makefile: Add a DBG flag to build debug binaries
Now `make DBG=1` will produce binaries with no optimizaions and no
inlining, but with symbols and DWARF information.
2022-03-01 08:47:34 -08:00
Tim Hockin
56ad63913a Make builds fail if go2make misbehaves
Rather than an obscure error.
2022-03-01 08:37:40 -08:00
Marek Siarkowicz
8f5250e3fe Start building etcd v3.6.0-alpha.0 image for scalability tests 2022-02-28 13:58:18 +01:00
Kubernetes Prow Robot
5b1e538759
Merge pull request #108378 from thockin/makefile-use-loglib
Makefile: emit codegen info via kube::log::status
2022-02-27 14:27:18 -08:00
Kubernetes Prow Robot
6d7c252906
Merge pull request #108377 from thockin/makefile-check-restarts
Makefile: avoid redundant work upon make restart
2022-02-27 13:25:17 -08:00
Tim Hockin
457e8778f7 Makefile: emit codegen info via kube::log::status 2022-02-27 11:33:52 -08:00
Tim Hockin
88fef96e75 Makefile: avoid redundant work upon make restart
Only build and run go2make on the first pass.  If that generates a new
GO_PKGDEPS_FILE, make will restart the whole process and set MAKE_RESTARTS to
a numeric value.

We can use this to avoid re-running go2make, which saves a few seconds
each build.
2022-02-27 10:50:19 -08:00
Tim Hockin
30b20f184e Use build.sh to build go2make
This allows common flags to be passed in (upcoming commits).
2022-02-27 10:28:44 -08:00
Kubernetes Prow Robot
e9760925f9
Merge pull request #108369 from thockin/makefile-errexit
Makefile: use errexit, pipefail, and nounset
2022-02-26 17:45:16 -08:00
Tim Hockin
9ad4a659ae Makefile: use errexit, pipefail, and nounset 2022-02-26 12:32:48 -08:00
Tim Hockin
7a3dded74d Makefile: remove superfluous @ 2022-02-26 12:17:45 -08:00
Carlos Santana
b8bd6f190b make docker socket more generic than colima
Signed-off-by: Carlos Santana <csantana23@gmail.com>
2022-02-24 22:04:39 -05:00
Carlos Santana
bf331d53fe add check for colima docker socket as fall back
Signed-off-by: Carlos Santana <csantana23@gmail.com>
2022-02-23 16:31:56 -05:00
Kubernetes Prow Robot
86945d7e74
Merge pull request #107431 from justaugustus/rel-mgr
OWNERS(releng): Reconcile existing Release Managers
2022-02-22 11:39:16 -08:00
Stephen Augustus
8ee5a237ae
{build,staging/publishing}/OWNERS: Reconcile Release Managers
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2022-02-21 08:37:29 -05:00
Stephen Augustus
93295000af
golang: Update to go1.18rc1
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2022-02-20 21:16:26 -05:00
Kubernetes Prow Robot
d6087e7409
Merge pull request #108122 from sanposhiho/fix-broken-link-commonsh
Fix broken link for common.sh
2022-02-17 13:55:04 -08:00
Kensei Nakada
4671a8dc33
Fix broken link for common.sh 2022-02-15 22:22:27 +09:00
Marko Mudrinić
980406f083
Update Go to 1.17.7
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
2022-02-12 13:06:08 +01:00
Danielle Lancashire
9e5fac5bb2 make: test-e2e-node: default to containerd
Since removing dockershim, `make test-e2e-node` will fail by default as
there is no provided container runtime endpoint.

This commit defaults us to using containerd's default socket path as the
local test target, rather than failing hard.
2022-02-01 16:36:06 +01:00
Romain Aviolat
0a98875e95
feat: add missing SOCKS5 features
Goal of this commit is to add some missing features when the
Kubernetes API is accessed through a SOCKS5 proxy. That's for
example the case when port-forwarding is used (`kubectl port-forward`)
or when exec'ing inside a container (`kubectl exec`), with this
commit it'll now be possible to use both.

Signed-off-by: Romain Aviolat <romain.aviolat@kudelskisecurity.com>
Signed-off-by: Romain Jufer <romain.jufer@kudelskisecurity.com>
2022-01-21 11:49:41 +01:00
Kubernetes Prow Robot
ba1fc6f83c
Merge pull request #107612 from palnabarun/releng/go-update
[go] update to Go 1.17.6
2022-01-18 12:02:34 -08:00
Nabarun Pal
77816bd9b1
[go] update to Go 1.17.6
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2022-01-18 14:35:24 +05:30
Lubomir I. Ivanov
e0d50347b9 build/dependencies.yaml: remove the dependency on Docker
With the dockershim removal, core Kubernetes no longer
has to track the latest validated version of Docker.
2022-01-17 17:25:05 +02:00
Sascha Grunert
f7f0f4b901
Update cri-tools to v1.23.0
Files promoted to `k8s-artifacts-cri-tools`:
https://console.cloud.google.com/storage/browser/k8s-artifacts-cri-tools/release/v1.23.0

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2022-01-17 15:02:53 +01:00
Jordan Liggitt
5d9b7ae9e5 Remove fluentd-elasticsearch addon 2022-01-14 08:23:51 -05:00
James Sturtevant
c5e341d5e0 Remove unsupported Windows SAC images from pause image
Signed-off-by: James Sturtevant <jstur@microsoft.com>
2022-01-11 12:40:19 -08:00
Kubernetes Prow Robot
d2c9456963
Merge pull request #106287 from Dragoncell/update_cadvisor_version
update cadvisor version in test
2022-01-08 15:50:19 -08:00
Jiaming Xu
d6d63b44fa update cadvisor version in test
update NodePrePullImageList

fix conflicts

fix conflicts

remove script

add cadvisor as dependency

address comments
2022-01-07 22:29:12 +00:00
Kubernetes Prow Robot
1943ca7cda
Merge pull request #103311 from oz123/document-output-loctaion-of-build-artifacts
Build: improve documentation of build artifacts
2022-01-05 10:33:48 -08:00
Carlos Panato
4bda9697ee
[go1.17] Update to go1.17.5
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2021-12-10 16:58:29 +01:00
Davanum Srinivas
9405e9b55e
Check in OWNERS modified by update-yamlfmt.sh
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-12-09 21:31:26 -05:00
Kubernetes Prow Robot
cdf3ad823a
Merge pull request #97252 from dims/drop-dockershim
Completely remove in-tree dockershim from kubelet
2021-12-08 12:51:46 -08:00
Davanum Srinivas
bc78dff42e
update files to drop dockershim
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-12-07 15:15:13 -05:00
Carlos Panato
2adf0e116c
[go1.17] Update to go1.17.4
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2021-12-06 09:40:54 +01:00