Commit Graph

1192 Commits (8326ea71a300d7da358eed0338ef05a0360c556d)

Author SHA1 Message Date
Thomas Runyon 163844cb13 Added ability to execute subsets of cli tests 2019-01-15 16:20:50 -05:00
Jordan Liggitt ef4983fb52 Update generated files 2019-01-15 13:33:06 -05:00
Jeff Grafton e34a0619ea Only build tests with bazel test --config=unit 2019-01-08 14:47:32 -08:00
Jeff Grafton 3fd6f97f55 bazel: update openapi-gen to use new kazel-generated dictionaries 2019-01-08 14:47:32 -08:00
Jeff Grafton 06d5c50eb2 Update to latest kazel and update generated files
Also switch from github.com/kubernetes/repo-infra to k8s.io/repo-infra.
2019-01-08 14:47:26 -08:00
Jeff Grafton 4503d573d3 Use new codegen config options in kazel and fix boilerplate check for generated bzl 2019-01-08 14:40:56 -08:00
Jeff Grafton 7397a6278b Update to go1.11.4 2018-12-15 12:25:05 -08:00
Eli Uriegas d443402f35 bump golang to 1.11.3 (CVE-2018-16875)
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2018-12-14 18:27:21 +00:00
Kubernetes Prow Robot e689d515f7
Merge pull request #71634 from ereslibre/allow-to-build-images-offline
Allow to build docker images offline (do not always use `docker build --pull`)
2018-12-05 01:18:05 -08:00
Kubernetes Prow Robot 07faaeff6d
Merge pull request #71686 from BenTheElder/cni-version
add CNI_VERSION to build/workspace.bzl, use it to dedupe version
2018-12-04 16:03:09 -08:00
Kubernetes Prow Robot a9b69dc381
Merge pull request #71615 from jpbetz/etcd-3.3.10-0-image
Update default etcd server to 3.3.10 for kubernetes 1.14
2018-12-04 02:54:34 -08:00
Benjamin Elder 4cd93dada4 add CNI_VERSION to build/workspace.bzl, use it to dedupe version 2018-12-03 20:19:47 -08:00
Rafael Fernández López 68e6fa0f8d
Allow to build docker images offline (do not always use `docker build --pull`)
Passing `KUBE_BUILD_PULL_LATEST_IMAGES=n` will disable building the artifacts
with `--pull`, so they can be built in an offline environment.

By default, `KUBE_BUILD_PULL_LATEST_IMAGES` is `y`, so the default behavior
is kept unchanged.
2018-12-03 20:34:22 +01:00
Joe Betz 862b945e5a Update default etcd server to 3.3.10 for kubernetes 1.13 2018-12-03 11:03:49 -08:00
Duffie Cooley 8e08cbc3c4
Bump the version of kubernetes-cni to 0.6.0
This will resolve the kubernetes-anywhere e2e test.
In commit: https://github.com/kubernetes/kubernetes/pull/71540
I bumped the required version of kubernetes-cni to 0.6.0 but didn't
start packaging it. This resolve that.

Signed-off-by: Duffie Cooley <dcooley@heptio.com>
2018-11-30 23:20:19 -08:00
Duffie Cooley 2d7b386193
Add conntrack as a dependency of kubelet
FIXES: https://github.com/kubernetes/kubeadm/issues/1287

- This commit integrates the work of @jdetiber to fix bazel build
//build/rpms and also addresses an issue where not all common versions
of rpmbuild have the %{_sysctldir} macro.

- Since that macro points to /usr/lib/sysctl.d this commit just points
directly to that dir.

- This also adds conntrack as a dependency of kubelet for both rpm and
deb builds.

Signed-off-by: Duffie Cooley <dcooley@heptio.com>
2018-11-29 10:08:07 -08:00
Jason DeTiberus 3ee10e9ceb
Fix bazel //build/rpms
- Also update the kubernetes-cni requirement for both debs and rpms
  to match release packaging.
2018-11-28 16:51:59 -08:00
k8s-ci-robot 3bf41a210b
Merge pull request #69820 from ixdy/fork-multiarch-register
Use a forked copy of multiarch/qemu-user-static scripts instead of a privileged container
2018-11-07 19:10:15 -08:00
k8s-ci-robot c2aa35866c
Merge pull request #70665 from cblecker/go-1.11.2
Update to use go1.11.2
2018-11-06 04:54:17 -08:00
Jeff Grafton 3778646d34 Update to rules_go 0.16.2 2018-11-05 15:35:31 -08:00
Christoph Blecker b71e74626e
Bump golang version to 1.11.2 2018-11-03 14:10:45 -07:00
Haowei Cai dcc062d812 Add UPDATE_API_KNOWN_VIOLATIONS=true to Makefile.generated_files
One can run:
    make generated_files UPDATE_API_KNOWN_VIOLATIONS=true
to update the checked-in known API violation exceptions list.

Also updated README and the error message on how to resolve the
failure.
2018-11-01 17:43:16 -07:00
k8s-ci-robot f29d646210
Merge pull request #70385 from ixdy/bazel-starlark-repo-rules
bazel: use starlark implementations of http_archive and http_file
2018-10-29 18:53:13 -07:00
k8s-ci-robot c1f1cf168d
Merge pull request #70383 from ixdy/update-repo-infra
bazel: bump repo-infra dependency
2018-10-29 18:53:04 -07:00
k8s-ci-robot f698f0fe17
Merge pull request #70245 from ixdy/debian-base-instead-of-busybox
Use debian-base instead of busybox as base image for server images
2018-10-29 15:54:20 -07:00
Jeff Grafton 801679ed89 bazel: use starlark implementations of http_archive and http_file 2018-10-29 13:00:45 -07:00
Jeff Grafton 545ae2fcfe bazel: bump repo-infra dependency 2018-10-29 11:57:15 -07:00
Jeff Grafton f26048ecb1 Use debian-base instead of busybox as base image for server images 2018-10-25 10:19:40 -07:00
Ashwani Khemani a7ecb562b3 changes for update-bazel script 2018-10-25 10:57:24 -05:00
Ashwani Khemani b929ba01ef changes done to enable br_filter and ip_forward for debian packages 2018-10-25 10:55:13 -05:00
Jeff Grafton 003404685d Update to use debian-iptables v11.0 and debian-hyperkube-base 0.12.0 2018-10-24 16:18:53 -07:00
k8s-ci-robot 73c1a92bd9
Merge pull request #69152 from mkumatag/fix_manifest_push
Purge the manifest after the push
2018-10-24 01:06:10 -07:00
Jeff Grafton 7a8696c331 Update to debian-base 0.4.0
Additionally, update the addon-manager to use kubectl v1.11.3.
2018-10-19 11:13:28 -07:00
Jeff Grafton 8906d1d8be debian-base: purge libsystemd0 to eliminate CVE false-positives 2018-10-19 08:31:31 -07:00
k8s-ci-robot 1ba06b0444
Merge pull request #69939 from ixdy/clean-crossbuild-protoc-3.0.2
Clean cross-build image and update to protoc 3.0.2
2018-10-17 22:25:59 -07:00
Jeff Grafton 2812b55263 Clean cross-build image and update to protoc 3.0.2 2018-10-17 11:57:46 -07:00
k8s-ci-robot 0d6f6a680b
Merge pull request #68441 from smarterclayton/describe_dependency
Move versioned generators into their own package
2018-10-17 04:24:06 -07:00
Jeff Grafton a88244598a Use sudo only when not already root 2018-10-16 23:42:22 -07:00
Jeff Grafton 9e4fa1493d Use our forked qemu-static-register scripts instead of a privileged container 2018-10-16 23:41:32 -07:00
Jeff Grafton c761f779fc Base conformance image on debian-hyperkube-base:0.11.0 and reenable by default 2018-10-16 14:01:23 -07:00
Jeff Grafton 2d46adaec4 Use debian-hyperkube-base:0.11.0 and remove qemu registration 2018-10-16 14:01:23 -07:00
Jeff Grafton fbbb863433 Create hyperkube symlinks in base image 2018-10-16 14:01:23 -07:00
Clayton Coleman 0ff34efcc5
All kubectl/cmds need visibility on pkg/kubectl/util 2018-10-16 12:54:41 -04:00
Clayton Coleman 9f5c2aea1a
Cut a dependency between kubectl and the rest of the repo
The types referenced in credentialprovider are part of a long term api
and will not change, and kubectl doesn't need to take a dependency on this
package in order to do minimal validation here.
2018-10-16 12:54:40 -04:00
Clayton Coleman 5e905f1f5f
Move versioned generators into their own package
pkg/kubectl has a lot of files. Move everything generator related
into pkg/kubectl/generate (generic) or pkg/kubectl/generate/versioned
(type specific).

Move the DescriberFn and GeneratorFn out of kubectl/cmd/util and into
the respective versioned packages, along with tests.
2018-10-16 12:54:40 -04:00
k8s-ci-robot e42f52150e
Merge pull request #69779 from dims/remove-last-traces-of-old-registry-name
Remove last traces of old registry name
2018-10-15 17:52:46 -07:00
Davanum Srinivas cfc7797023
Switch off KUBE_BUILD_CONFORMANCE to diagnose a ci-cross issue
Looking at job results, there seems to be some flakiness, let's see if
the PR that added the conformance image is the one to blame.

https://prow.k8s.io/?type=periodic&job=ci-kubernetes-cross-build
https://k8s-testgrid.appspot.com/sig-release-misc#cross-build&graph-metrics=test-duration-minutes&width=20

Change-Id: Ic26431a0e262100dec0444279d94277482972b07
2018-10-15 13:13:19 -04:00
Davanum Srinivas 3cb0b5fc04
remove last traces of old registry name
Change-Id: Ie1a5feaba20736d491242b4c971423c0a624f383
2018-10-14 20:43:18 -04:00
k8s-ci-robot dad536b41f
Merge pull request #69747 from ixdy/bazel-container-rules
Bazel: stop using deprecated docker_ rules and turn on stamping
2018-10-13 18:18:47 -07:00
k8s-ci-robot 8e4f7812b8
Merge pull request #69368 from dims/upstream-heptio-kube-conformance
upstream heptio/kube-conformance
2018-10-12 19:13:33 -07:00
Jeff Grafton c34cbb2f70 Bazel: stop using deprecated docker_ rules and turn on stamping 2018-10-12 13:16:38 -07:00
Davanum Srinivas 6830bad2a6
upstream heptio/kube-conformance
Pick up some code from https://github.com/heptio/kube-conformance
Fix up build scripts for the new conformance image
Fix Header template and Copyright to make verify job go green
update README and add execute permissions for script

Change-Id: Ib6509acd816cc2fb3a516bfb8e0ff9e32bff8f79
2018-10-12 15:33:15 -04:00
Maciej Szulik e0c9189082
Manual changes to package visibility 2018-10-11 22:01:06 +02:00
mooncake 43fa73557b Fix typos of readme.md 2018-10-08 23:06:07 +08:00
Maciej Szulik add731dff1
Manual changes to package visibility and test dependencies 2018-10-06 18:44:05 +02:00
k8s-ci-robot 7f2d51d4d0
Merge pull request #68625 from sysrich/exec_fixes
Avoid marking configuration files as executable
2018-10-05 20:25:12 -07:00
Christoph Blecker 962fdbcbca
Bump golang version to 1.11.1 2018-10-05 12:58:56 -07:00
Christoph Blecker 0bde066cc1
Bump repo-infra to e8f2f7c 2018-10-05 12:58:56 -07:00
Christoph Blecker 85843149c9
Bump rules_go to 0.15.4 to support go1.11.1 2018-10-05 12:58:55 -07:00
Richard Brown eabd95c8a1 correct directory modes 2018-10-05 15:33:30 +02:00
k8s-ci-robot 5602ab7761
Merge pull request #68379 from immutableT/kms-plugin-via-gke
Enable configure-helper.sh to support two scenarios for etcd level encryption: decryption and adding encryption to existing clusters.
2018-10-04 23:38:42 -07:00
immutablet 4bc62be0e6 Run kms-plugin in its own POD. 2018-10-04 09:19:57 -07:00
k8s-ci-robot da5730e883
Merge pull request #69033 from feiskyer/crictl-update
Update crictl to v1.12.0
2018-10-02 02:23:33 -07:00
Benjamin Elder 4274c426ce add nsswitch to busybox control plane images 2018-09-28 17:04:48 -07:00
Richard Brown fe8493bbe7
Merge branch 'master' into exec_fixes 2018-09-28 13:19:42 +02:00
Manjunath A Kumatagi db0aaee57f Purge the manifest after the push 2018-09-27 18:58:16 +05:30
Davanum Srinivas d9cfd77149
Ensure reproducible builds - support for SOURCE_DATE_EPOCH with dockerized builds
- Pass in SOURCE_DATE_EPOCH when we run the docker container
- Looks like cleaning up symbol table also helps
- Also trimming the path

Tips from
- https://blog.filippo.io/reproducing-go-binaries-byte-by-byte/
- https://blog.filippo.io/shrink-your-go-binaries-with-this-one-weird-trick/

Change-Id: Iedba85d9c1a36790fb8814795f7c27c1371cff1b
2018-09-26 07:28:09 -04:00
Pengfei Ni fa42ba649a Update crictl to v1.12.0 2018-09-26 09:15:10 +08:00
k8s-ci-robot 8c4d37ece5
Merge pull request #68624 from sysrich/crio_support
Package fixes for enabling br_netfilter & ip_forward with kubeadm
2018-09-25 17:00:26 -07:00
k8s-ci-robot 9159c9ce92
Merge pull request #66669 from daixiang0/master
correct kubelet service file permission
2018-09-25 00:17:50 -07:00
k8s-ci-robot d1111a57d9
Merge pull request #59664 from mkumatag/manifest_infra
Manifest kubernetes infra images
2018-09-19 20:07:26 -07:00
k8s-ci-robot f6d8fd8bdc
Merge pull request #68802 from ixdy/golang-1.10.4
Update to golang 1.10.4
2018-09-19 17:11:29 -07:00
Manjunath A Kumatagi 0ea492012b Image manifest for debian-base 2018-09-19 09:46:50 +05:30
Manjunath A Kumatagi b9267f4a09 Manifest image for debian-hyperkube-base 2018-09-19 09:46:33 +05:30
Manjunath A Kumatagi d46283b6b1 Manifest for debian-iptables image 2018-09-19 09:46:07 +05:30
Jeff Grafton 10713501bd Update to golang 1.10.4 2018-09-18 13:13:57 -07:00
Jeff Grafton df368fbb8c bazel: update debian-iptables and debian-hyperkube-base 2018-09-18 12:48:07 -07:00
Jeff Grafton b4635a829a Update to use debian-iptables v10.2 and debian-hyperkube-base 0.10.2 2018-09-17 21:10:04 -07:00
Jeff Grafton 61b9b29f14 Install netbase in debian-iptables and debian-hyperkube-base as it is needed by ipvs 2018-09-17 19:06:57 -07:00
Richard Brown 5a302f58a9 Package fixes for enabling br_netfilter & ip_forward with kubeadm (kubeadm#1062) 2018-09-13 20:29:14 +02:00
Richard Brown 0bd695d8d1 Avoid marking configuration files as executable 2018-09-13 17:44:34 +02:00
Kubernetes Submit Queue 59bcf0dadf
Merge pull request #67950 from dims/remove-e2e-image-puller
Automatic merge from submit-queue (batch tested with PRs 67950, 68195). If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md.

Remove e2e-image-puller

**What this PR does / why we need it**:

A long time ago, We added the image prepulling as a workaround due to
the overwhelming amount of flake caused by pulling during the tests.
This functionality has been broken for a while now when we switched to a
COS image where mounting `docker` binary into `busybox` stopped working.
So we just have dead code we should clean up.

Change-Id: I538171a5c1d9361eee7f9e0a99655b88b1721e3e

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #63355

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
2018-09-07 11:19:36 -07:00
Timothy St. Clair ad2ed0e7df Update default etcd server to 3.2.24 for kubernetes 1.12
Signed-off-by: Timothy St. Clair <timothysc@gmail.com>
2018-09-06 10:24:57 -05:00
Jeff Grafton b25ad9c862 Set gazelle:proto disable_global 2018-09-05 15:27:15 -07:00
Jeff Grafton 9e284de501 Update to use latest busybox 2018-09-05 15:27:15 -07:00
Jeff Grafton f90d782113 Update to rules_docker v0.5.1 2018-09-05 15:27:15 -07:00
Jeff Grafton 60f00d1a08 Update to rules_go 0.15.3 and latest k8s.io/repo-infra 2018-09-05 15:27:07 -07:00
Davanum Srinivas ae0dde5c7d
Remove e2e-image-puller
A long time ago, We added the image prepulling as a workaround due to
the overwhelming amount of flake caused by pulling during the tests.
This functionality has been broken for a while now when we switched to a
COS image where mounting `docker` binary into `busybox` stopped working.
So we just have dead code we should clean up.

Change-Id: I538171a5c1d9361eee7f9e0a99655b88b1721e3e
2018-09-03 20:43:54 -04:00
Kubernetes Submit Queue 68d22a878d
Merge pull request #67971 from Katharine/coverage-instrumentation
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md.

Add ability to build with runtime coverage instrumentation

**What this PR does / why we need it**:

This PR adds the ability to instrument a subset of kubernetes binaries to report code coverage information. The specific use-case is to help determine coverage of our end-to-end Conformance tests, as well as provide data that can be used to help determine where to focus. This PR focuses on making it possible to build with instrumentation; collecting and using the generated coverage data will be done in later PRs. For more details as to the intent, see the [design doc](https://docs.google.com/document/d/1FKMBFxz7vtA-6ZgUkA47F8m6yR00fwqLcXMVJqsHt0g/edit?usp=sharing) (google doc; requires kubernetes-dev membership).

Specifically, this PR adds a new `KUBE_BUILD_WITH_COVERAGE` make variable, which when set will cause `kube-apiserver`, `kube-controller-manager`, `kube-scheduler`, `kube-proxy` and `kubelet` to be built with coverage instrumentation. These coverage-instrumented binaries will flush coverage information to disk every five seconds, defaulting to a temporary directory unless the `KUBE_COVERAGE_FILE` environment variable is set at launch, in which case it will write to that file instead.

The mechanism used to achieve coverage instrumentation is to build the targeted binaries as "unit tests" with coverage enabled, and then rigging the unit tests to just execute the binary's usual entry point. This is implemented only for the bash build system.

/sig testing

```release-note
NONE
```
2018-09-01 01:32:52 -07:00
Kubernetes Submit Queue d293eba9f6
Merge pull request #68150 from spiffxp/add-spiffxp-to-bash-owners
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md.

Add spiffxp to OWNERS files in bash-heavy dirs

I'm comfortable approving changes in hack/, I think I still need
to build up a corpus of reviews in build/ and cluster/ before I'm
comfortable asking for those rights. I'm willing to be voluntold
otherwise if existing approvers feel differently.

Approvers, WDYT?

```release-note
NONE
```
2018-08-31 21:56:33 -07:00
Benjamin Elder b56b2a741e unify server images bash build 2018-08-31 14:32:44 -07:00
Benjamin Elder 037fabd842 add make targets for building server images 2018-08-31 14:31:21 -07:00
Aaron Crickenberger 3aafdc4419 Add spiffxp to OWNERS files in bash-heavy dirs
I'm comfortable approving changes in hack/, I think I still need
to build up a corpus of reviews in build/ and cluster/ before I'm
comfortable asking for those rights
2018-08-31 14:01:16 -07:00
Katharine Berry 254618ed61 Pass KUBE_BUILD_WITH_COVERAGE through to docker instance. 2018-08-29 14:48:24 -07:00
Kubernetes Submit Queue d67a03183a
Merge pull request #67687 from Lion-Wei/remote-reschrduler
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

remove rescheduler since scheduling DS pods by default scheduler is moving to beta

**What this PR does / why we need it**:

remove rescheduler since scheduling DS pods by default scheduler is moving to beta

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #64725

**Special notes for your reviewer**:

**Release note**:
```release-note
Remove rescheduler since scheduling DS pods by default scheduler is moving to beta.
```
2018-08-23 12:32:17 -07:00
liangwei 5ea138f4e9 remove rescheduler 2018-08-22 11:49:14 +08:00
Kubernetes Submit Queue 09cdfc5287
Merge pull request #67673 from javier-b-perez/debian-iptables
Automatic merge from submit-queue (batch tested with PRs 67298, 67518, 67635, 67673). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

build/debian-iptables: make: support arguments for base and tag

**What this PR does / why we need it**:
Change debian-iptables makefile to support arguments for base image and tag.

**Special notes for your reviewer**:
Tested locally.

**Release note**:

```release-note
None
```
2018-08-21 18:33:10 -07:00
Javier B Perez 1b849f985b build/debian-iptable: make: support arguments for base and tag 2018-08-21 11:18:04 -07:00
Davanum Srinivas 9b43d97cd4
Add Labels to various OWNERS files
Will reduce the burden of manually adding labels. Information pulled
from:
https://github.com/kubernetes/community/blob/master/sigs.yaml

Change-Id: I17e661e37719f0bccf63e41347b628269cef7c8b
2018-08-21 13:59:08 -04:00
Kubernetes Submit Queue f6eb545ad3
Merge pull request #67365 from ixdy/update-debian-container-images
Automatic merge from submit-queue (batch tested with PRs 67396, 67097, 67395, 67365, 67099). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Update to debian-iptables v10.1 and hyperkube-base 0.10.1

**What this PR does / why we need it**: these images are based on the `debian-base` 0.3.2 images, which include CVE fixes (#67026) and permission fixes of the qemu-ARCH-static helper binary (#67026, #67283).

**Release note**:

```release-note
NONE
```
2018-08-15 05:45:24 -07:00