Commit Graph

25 Commits

Author SHA1 Message Date
Jeff Grafton
8e168f8d5a Use kubekins-test:v20160822 everywhere 2016-08-22 14:31:45 -07:00
Jeff Grafton
7e51ee1ccd Install bc in the kubekins-test image
It is needed by the shell2junit script.
2016-08-12 16:42:53 -07:00
Kubernetes Submit Queue
d4691a76ec Merge pull request #27911 from jfrazelle/start-enable-golint
Automatic merge from submit-queue

Start verifying golint on a per-package basis as packages are fixed

<!--
Checklist for submitting a Pull Request

Please remove this comment block before submitting.

1. Please read our [contributor guidelines](https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md).
2. See our [developer guide](https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md).
3. If you want this PR to automatically close an issue when it is merged,
   add `fixes #<issue number>` or `fixes #<issue number>, fixes #<issue number>`
   to close multiple issues (see: https://github.com/blog/1506-closing-issues-via-pull-requests).
4. Follow the instructions for [labeling and writing a release note for this PR](https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes) in the block below.
-->

```release-note
Added `golint` for pkg/security/podsecuritypolicy/capabilities` along with validation.
```


[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()

This is a POC to start enabling `golint` checks on a per-package basis, we did this on the docker project and it was a great way for new contributors to help and it benefits the project overall. All they have to do is add the package they fixed to the bash array in `hack/verify-golint.sh` and fix all the lint errors. 
Eventually when all the packages have been fixed we can change the function to `find_files`. Or something based off which files are changed in a patch set to verify `golint`.
Now I used this specific package as the POC because I wanted to show the downside of this changing the api of the package.
Most of the times this arose in docker/docker we decided that if someone wasn't importing their deps locally then it was their loss, but I'm not sure if you all will agree.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.kubernetes.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.kubernetes.io/reviews/kubernetes/kubernetes/27911)
<!-- Reviewable:end -->
2016-08-11 15:03:06 -07:00
Jess Frazelle
818cdaf9d3
add golint to test dockerfile
Signed-off-by: Jess Frazelle <me@jessfraz.com>
2016-08-10 16:46:19 -07:00
Davanum Srinivas
2616fc9cf5 Check for CAP_SYS_ADMIN in Kubelet
The Kubelet process must have CAP_SYS_ADMIN, which implies that
the kubelet process must be either running as root or in a privileged
container. Make this check early in the startup sequence and bail out
if necessary.

Related to #26093
2016-08-09 13:40:07 -04:00
Jess Frazelle
a333cf429a update go to 1.6.3
Signed-off-by: Jess Frazelle <me@jessfraz.com>
2016-07-18 16:29:46 -04:00
Jess Frazelle
5e03b743d6
Cleanup hack/ Dockerfiles
Signed-off-by: Jess Frazelle <jessfraz@google.com>
2016-07-06 11:03:42 -07:00
k8s-merge-robot
d8a54c7a5c Merge pull request #28237 from ixdy/kubekins-aws
Automatic merge from submit-queue

Install pip in kubekins test image and install AWS cli when needed

Follow-on to https://github.com/kubernetes/test-infra/pull/66. This fixes AWS hopefully.

I haven't pushed the image yet.

cc @fejta
2016-06-30 22:07:51 -07:00
David McMahon
ef0c9f0c5b Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
Jeff Grafton
9c7da9c116 Install pip in kubekins test image and install AWS cli when needed 2016-06-29 13:15:14 -07:00
Jeff Grafton
1040fac4b3 Download static docker binary into kubekins test image
Also rework apt-get lines to conform to Docker best practices and add
dnsutils.

Lastly, use kubekins-test:go1.6.2-docker1.9.1-rev1 on Jenkins
2016-06-27 14:27:12 -07:00
Mike Danese
ee34c7695f split verify out of unit/integration suite 2016-06-16 18:23:03 -07:00
Joe Finney
009ea19bf6 Up to go 1.6.2. 2016-04-22 14:21:52 -07:00
Jeff Grafton
d82a8cb282 Add a verify check to check Jenkins job config changes 2016-04-12 16:49:28 -07:00
Joe Finney
d3e94fcd78 Up unit/integration test on Jenkins to go 1.6. 2016-03-21 16:14:09 -07:00
Jeff Grafton
85bc91c44c Add jq to the kubekins-test image and passthru KUBE_FORCE_VERIFY_CHECKS 2016-03-10 17:57:55 -08:00
Jeff Grafton
24b3223141 Make skipping logic more robust in hack/verify-godep*
Also add an environment variable, KUBE_VERIFY_GIT_BRANCH, used with this
logic.
2016-03-09 15:20:36 -08:00
Lucas Käldström
b67445b064 Share the host's timezone with the build container 2016-02-11 07:44:05 +02:00
Jeff Grafton
0d84b49f65 Update tests from Go 1.5.2 to Go 1.5.3 2016-01-21 09:43:52 -08:00
Jeff Grafton
ad8ea35d94 Update kubekins-test image to include netcat 2016-01-19 16:24:58 -08:00
Mike Danese
c2753d75d2 bump ci go version to 1.5.2 2015-12-09 13:56:41 -08:00
Jeff Grafton
896d04d5f3 Install libapparmor1 in kubekins-test image 2015-11-13 17:17:52 -08:00
Jeff Lowdermilk
39965b67ce Move branch-specific test env out of the kubekins-test image 2015-10-30 11:12:47 -07:00
Jeff Lowdermilk
f03a04c097 Remove -t in gotest-dockerized.sh 2015-10-29 14:16:52 -07:00
Jeff Lowdermilk
04e891c7d3 Modify jenkins unit/integration scripts to work on branches
Also add a makefile. This will need a cherrypick onto 1.0,1.1
with edits to hack/jenkins/test-dockerized.sh to run branch-specific
test scripts.

Also had to modify hack/verify-api-reference.sh to handle volume mount
path peculiarity when doing `docker run -v` inside a container started
with `docker run -v`. See associated comment in
hack/jenkins/test-dockerized.sh
2015-10-29 11:08:35 -07:00