Commit Graph

127 Commits

Author SHA1 Message Date
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
Walter Fender
ebb65c5f4c Get network-proxy working with GCE.
Got the proxy-server coming up in the master.
Added certs and have it comiung up with those certs.
Added a daemonset to run the network-agent.
Adding support for agent running as a sameon set on every node.

Added quick hack to test that proxy server/agent were correctly
tunneling traffic to the kubelet.

Added more WIP for reading network proxy configuration.
Get flags set correctly and fix connection services.
Adding missing ApplyTo
Added ConnectivityService.
Fixed build directives. Added connectivity service configuration.
Fixed log levels.
Fixed minor issues for feature turned off.
Fixed boilerplate and format.
Moved log dialer initialization earlier as per Liggits suggestion.
Fixed a few minor issues in the configuration for GCE.
Fixed scheme allocation
Adding unit test.
Added test for direct connectivity service.

Switching to injecting the Lookup method rather than using a Singleton.
First round of mikedaneses feedback.
Fixed deployment to use yaml and other changes suggested by MikeDanese.

Switched network proxy server/agent which are kebab-case not camelCase.
Picked up DIAL_RSP fix.
Factored in deads2k feedback.
Feedback from mikedanese
Factored in second round of feedback from David.
Fix path in verify.
Factored in anfernee's feedback.
First part of lavalamps feedback.
Factored in more changes from lavalamp and mikedanese.

Renamed network-proxy to konnectivity-server and konnectivity-agent.
Fixed tolerations and config file checking.
Added missing strptr
Finished lavalamps requested rename.
Disambiguating konnectivity service by renaming it egress selector.

Switched feature flag to KUBE_ENABLE_EGRESS_VIA_KONNECTIVITY_SERVICE
2019-08-06 23:09:49 -07:00
hui luo
97087c66f7 Allow customize registry name of base and release images
default behavior does not change, it uses k8s.gcr.io by default
added two vars: KUBE_DOCKER_REGISTRY, KUBE_BASE_IMAGE_REGISTRY.
KUBE_BASE_IMAGE_REGISTRY is for base image registry of server binaries
KUBE_DOCKER_REGISTRY is for released images registry

user can interact with them by:
`KUBE_DOCKER_REGISTRY=### KUBE_BASE_IMAGE_REGISTRY=### make quick-release`

Signed-off-by: Hui Luo <luoh@vmware.com>
2019-07-25 17:43:01 -07:00
Javier Pérez Hernández
df60ae1917 release: generate release docker tag with default values 2019-07-16 09:10:00 -07:00
Javier Pérez Hernández
12cf78e2d3 release: accept empty KUBE_DOCKER_IMAGE_TAG 2019-07-15 14:59:39 -07:00