Commit Graph

131 Commits

Author SHA1 Message Date
Jeremy Rickard
f62cf3914f Revert "build: Adds Windows kube-proxy image"
This reverts commit 3b0cec323e.
2024-06-01 10:43:08 -06:00
Kubernetes Prow Robot
802983e714 Merge pull request #109939 from claudiubelu/windows/kube-proxy-hostprocess
build: Adds Windows kube-proxy image
2024-05-31 07:19:57 -07:00
Claudiu Belu
3b0cec323e build: Adds Windows kube-proxy image
Adds the KUBE_BUILD_WINDOWS option to make release-images and quick-release-images,
which will allow it to build the a Windows kube-proxy image as well. That image can
then be used with Windows Host Process Containers to start the kube-proxy
service on Windows nodes.
2024-05-31 08:04:00 +00:00
Davanum Srinivas
4898651297 missing "version" file in release tarballs
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-05-22 17:52:45 -04:00
Jordan Liggitt
e33a233c3b Delete unused version regex function 2023-03-21 09:08:04 -04:00
Oscar Utbult
61cd37b806 Update shellcheck version (0.7.2 -> 0.8.0) and fix findings 2022-11-08 11:53:57 +01:00
Walter Fender
99156b5bdc Turn on CCM in kube-up when cloudprovider=external
Currently if we disable cloud provider by the following
CLOUD_PROVIDER_FLAG=external
KUBE_FEATURE_GATES=DisableCloudProviders=true,DisableKubeletCloudCredentialProviders=true
we can no longer schedule workloads due to taints and a lack of
node configuration.
This pulls a CCM image from K/cloud-provider-gcp to run tests.
This is a pre-step for taking the above feature gates to beta.
It does not address the last known good dependency issue.
Specifically the CCM image is built on top of client-go and staging.
However this image will be an "old" verison of those libraries.
So it does not test if those libraries work in the CCM.

Fix shellcheck errors.
Add CCM_FEATURE_GATES for testing.
Switching to extended regex from perl regex.
Adding instrumentation to cluster configuration.
Improved regex to not greedily get key-value pairs.
Fixed issue with error on regex no line match.
Switch credentialprovider version to v1alpha1
2022-11-03 10:38:23 -07:00
Davanum Srinivas
50bea1dad8 Move from k8s.gcr.io to registry.k8s.io
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-05-31 10:16:53 -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
Jordan Liggitt
4115bef826 Update references to test/conformance/image 2021-07-23 11:26:54 -04:00
Kubernetes Prow Robot
5491484aa9 Merge pull request #99386 from BenTheElder/conformance-on-release
don't default to building conformance image for fastbuilds (quick-rel…
2021-02-26 14:50:46 -08:00
Jake Sanders
4b83c760a9 Split the setcap image from the base images, make them easier to override 2021-02-24 12:49:08 -08:00
Benjamin Elder
a3a650f246 don't default to building conformance image for fastbuilds (quick-release)
continue defaulting to building it for release builds
2021-02-23 17:41:27 -08:00
Vinayak Goyal
b4c330ab72 Make the registry for the server-images templated in the Dockerfiles. 2021-02-23 13:40:13 -08:00
Vinayak Goyal
87f5ee31bd Check if the current builder supports multi-arch. 2021-02-22 18:13:27 -08:00
Vinayak Goyal
7edd17307c Apply cap_net_bind_service to kube-apiserver binary. 2021-02-17 21:26:19 -08:00
Vinayak Goyal
94f30808ae Use on disk Dockerfile for server-images. 2021-02-11 22:32:43 -08:00
Sascha Grunert
54db83eef8 Make image build logs verbose if necessary
The `-q` flag is not implemented by `docker buildx`, which results in an
output:

```
WARN[0000] quiet currently not implemented.
```

In the same way, the build output is not logged to `stdout` (but
`stderr`). This means we now dump the whole build process to a file and
if the `docker buildx` command fails, then we output those logs by
printing the contents of that file. This will also reduce the overall
verbosity and aligns to the original `docker build` behavior.

Signed-off-by: Sascha Grunert <mail@saschagrunert.de>
2021-02-02 19:47:22 +01:00
hasheddan
1723719761 Build release images with DOCKER_CLI_EXPERIMENTAL enabled
In order to use buildx with docker versions prior to v20.10 experimental
features must be enabled. Setting at build time ensures that they are
in case they have not already been at the environment scope.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2021-02-01 13:14:58 -06:00
Sascha Grunert
646a202440 Use buildx in favor of FROM --platform syntax
Signed-off-by: Sascha Grunert <mail@saschagrunert.de>
2021-01-28 14:53:09 +01:00
jared
a6ab4661c3 Build multiplatform images when issue make release-images
Signed-off-by: jared <yu2003w@hotmail.com>
2021-01-14 21:21:29 +08:00
Stephen Augustus
3ab1a49766 build/lib/release: Explicitly use '--platform' in building server images
When we switched to go-runner for building the apiserver,
controller-manager, and scheduler server components, we no longer
reference the individual architectures in the image names, specifically
in the 'FROM' directive of the server image Dockerfiles.

As a result, server images for non-amd64 images copy in the go-runner
amd64 binary instead of the go-runner that matches that architecture.

This commit explicitly sets the '--platform=linux/${arch}' to ensure
we're pulling the correct go-runner arch from the manifest list.

Before:
FROM ${base_image}

After:
FROM --platform=linux/${arch} ${base_image}

Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-09-05 04:45:42 -04:00
wojtekt
ee27e5b8be Remove all references to etcd-empty-dir-cleanup. 2020-06-05 08:41:31 +02:00
Tim Hockin
325ea6e3c2 Restructure licenses again (revert cd4474a)
This moves licenses of vendored code from one monolith file into a tree
of individual files for easier reviews.  This fixes both the bash and
bazel paths.
2020-05-07 21:48:59 -07:00
Di Xu
a88d25f9ad not walking directory if KUBE_BUILD_PLATFORMS is given 2020-04-01 22:04:33 +08:00
Kubernetes Prow Robot
abb0183e30 Merge pull request #88990 from spiffxp/use-gtar-in-build-lib-release
Replace raw usages of tar in build/lib/release.sh
2020-03-31 23:01:41 -07:00
Benjamin Elder
ef4692f33c remove lingering KUBE_BUILD_HYPERKUBE 2020-03-18 13:17:25 -07:00
Davanum Srinivas
e6cdc0e0f3 Remove hyperkube 2020-03-17 21:33:50 -04:00
Aaron Crickenberger
6b21505549 Replace raw usages of tar in build/lib/release.sh
They broke the ability to run make quick-release on darwin.

Use ${TAR} instead so that gtar can be used if available.
2020-03-09 18:04:51 -07:00
Joakim Roubert
e05f8e6991 Re-adding the [[ as per review comment request
Change-Id: I4a2fa687e6ef5c4ebf5c5624a730c32f23b7b134
Signed-off-by: Joakim Roubert <joakimr@axis.com>
2020-02-06 08:27:01 +01:00
Joakim Roubert
b1d027742b Update for loop in server image image creation
Signed-off-by: Joakim Roubert <joakimr@axis.com>
2020-02-04 11:01:00 +01:00
Joakim Roubert
bf7112ae8e Add shellcheck disable for set $wrappable
Signed-off-by: Joakim Roubert <joakimr@axis.com>
2020-02-04 11:01:00 +01:00
Joakim Roubert
82f3f33eea Simplify and improve find/tar lines
Signed-off-by: Joakim Roubert <joakimr@axis.com>
2020-02-04 11:01:00 +01:00
Joakim Roubert
b69a38667e Update after review comment
Signed-off-by: Joakim Roubert <joakimr@axis.com>
2020-02-04 11:01:00 +01:00
Joakim Roubert
8823a86718 Fix src_tarball packaging
Signed-off-by: Joakim Roubert <joakimr@axis.com>
2020-02-04 11:00:59 +01:00
Joakim Roubert
20aeeed0f0 Replace for loop with find command
Signed-off-by: Joakim Roubert <joakimr@axis.com>
2020-02-04 11:00:59 +01:00
Joakim Roubert
1b8107d60b Update after review
Signed-off-by: Joakim Roubert <joakimr@axis.com>
2020-02-04 11:00:59 +01:00
Joakim Roubert
468611d6e0 Update after review comments
Signed-off-by: Joakim Roubert <joakimr@axis.com>
2020-02-04 11:00:59 +01:00
Joakim Roubert
405609b920 Fix shellcheck warnings/errors in /build/lib/release.sh
With these changes, /build/lib/release.sh can be removed from
hack/.shellcheck_failures and included in the scripts that are checked
by hack/verify-shellcheck.sh.

Signed-off-by: Joakim Roubert <joakimr@axis.com>
2020-02-04 11:00:58 +01:00
Jordan Liggitt
cd4474ae4f Revert "76093 restructure LICENSES file generation"
This reverts commit d39ac98cc5.
2019-11-13 10:24:32 -05:00
Ji Shan Xing
d39ac98cc5 76093 restructure LICENSES file generation 2019-11-12 20:38:57 -05:00
Davanum Srinivas
0e99cd912b Script based hyperkube
Update bazel based build and make the containers match as well.
2019-11-06 09:11:26 -05:00
Kubernetes Prow Robot
cbd0d4ab6e Merge pull request #83924 from javier-b-perez/release-lib
release: lib: revert docker_registry to constant k8s.gcr.io
2019-10-16 09:35:20 -07:00
Javier Pérez Hernández
6df84554fc release: lib: revert docker_registry to constant k8s.gcr.io 2019-10-14 15:51:23 -07:00
immutablet
b6b55519ca Isolate the logic related to the configuration of kube-apiserver into a separate script. 2019-10-11 11:34:09 -07:00
Davanum Srinivas
138571b23f Remove hyperkube from release artifacts
Change-Id: Ie09248d6fc688ffffbeb0271824817a5129346a0
2019-10-03 13:33:17 -04:00
Kubernetes Prow Robot
1bfcfa68a9 Merge pull request #83093 from ixdy/remove-mondo-test-tarball
Stop building the kubernetes-test mondo tarball
2019-09-25 13:52:24 -07:00
Jeff Grafton
967032138f Stop building the kubernetes-test mondo tarball 2019-09-24 10:34:36 -07:00
zouyee
e88b81c1ba fix docker_build_opts bound variable
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
2019-09-23 17:46:47 +08:00
zouyee
8249e483f4 using echo to print args
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
2019-09-23 14:21:07 +08:00