Commit Graph

387 Commits

Author SHA1 Message Date
Eric Paris
b503214fee Fix boilerplate check crash if .go file has no comments
Clayton pointed out that if he created a file with no /* in it anywhere
the boilerplate logic would crash like:

$ hack/verify-boilerplate.sh
Traceback (most recent call last):
  File "hack/../hooks/boilerplate.py", line 87, in <module>
    sys.exit(main())
  File "hack/../hooks/boilerplate.py", line 83, in main
    if not file_passes(filename, extention, ref, p):
  File "hack/../hooks/boilerplate.py", line 38, in file_passes
    while data[0] != "/*\n":
IndexError: list index out of range

That is because we were just stripping everything before the first line
that contained exacly "/*".  If no such line existed it got to the end
and just kept going.

This does something smarter. We use a regex to look for one or more
lines which start // +build followed by a single newline and remove only
those.  This obviously found one place where the package name was above
the license and was being missed by both the old and the new checker.

It also fixed the python spew and just tells you your file fails.
2015-05-08 17:30:40 -04:00
Brian Grant
97004c87c1 Merge pull request #7942 from goltermann/master
Simple nginx Guide Fixes
2015-05-08 12:09:25 -07:00
Daniel Smith
d136728df7 Merge pull request #7875 from satnam6502/elasticsearch
Elasticsearch Discovery with Kubernetes
2015-05-08 12:04:11 -07:00
goltermann
e175728969 simple nginx fixes 2015-05-07 18:28:00 -07:00
Chao Xu
e0f0ac463f verify the v1beta3 yaml files all work; merge the yaml files 2015-05-07 13:46:12 -07:00
Nikhil Jindal
4cef4a89d1 Merge pull request #7899 from caesarxuchao/persistent-example
update service.json in persistent-volume example to v1beta3
2015-05-07 11:43:27 -07:00
Nikhil Jindal
c41982dac5 Merge pull request #7864 from caesarxuchao/wordpress-example
update mysql-wordpress example to use v1beta3 API
2015-05-07 11:41:53 -07:00
Nikhil Jindal
a1c305c390 Merge pull request #7848 from caesarxuchao/meteor-example
Update examples/meteor to use API v1beta3
2015-05-07 11:41:05 -07:00
Satnam Singh
9c72a56056 Elasticsearch Discovery with Kubernetes 2015-05-07 11:23:00 -07:00
Chao Xu
7476ca0090 update service.json in persistent-volume example to v1beta3 2015-05-07 10:33:36 -07:00
Chao Xu
284cd205d2 update mysql-wordpress example to use v1beta3 API 2015-05-07 10:21:24 -07:00
Chao Xu
29157f267b update nodeSelector example to use v1beta3 API 2015-05-06 17:24:22 -07:00
Satnam Singh
9939f92731 Merge pull request #7824 from caesarxuchao/Kibana-example
update logging-demo to use API v1beta3; modify the way to access Elasticsearch and Kibana services
2015-05-06 16:10:11 -07:00
Chao Xu
5b60731945 Update examples/meteor to use API v1beta3 2015-05-06 13:42:30 -07:00
Clayton Coleman
52e94b1e2c Merge pull request #7591 from derekwaynecarr/fix_origin
Fix OpenShift example
2015-05-06 15:43:11 -04:00
Chao Xu
eee11dee1b update logging-demo to use API v1beta3; modify the way to access Elasticsearch and Kibana services
COMMIT_BLOCKED_ON_GENDOCS
2015-05-05 18:14:17 -07:00
Jeff Lowdermilk
87cdc3f032 Merge pull request #7672 from eparis/boilerplate-python
Check license boilerplate for python files
2015-05-05 09:23:36 -07:00
derekwaynecarr
a8f8e2d609 Fix OpenShift example 2015-05-05 11:13:49 -04:00
Paul Morie
e949a623ff Change EnvVarSource.FieldPath -> FieldRef and add example 2015-05-04 18:41:09 -04:00
Eric Paris
f416289a85 update all python with boilerplate 2015-05-04 18:37:47 -04:00
Brian Grant
52d388a487 Merge pull request #7649 from brendandburns/example
Add a central simple getting started guide with kubernetes guide.
2015-05-04 14:46:28 -07:00
Chao Xu
733e3af376 update the hazelcast example to API version v1beta3 2015-05-04 13:37:20 -07:00
Brendan Burns
37eedef348 Add a central simple getting started guide with kubernetes guide.
Point several getting started guides at this doc.
2015-05-01 20:20:15 -07:00
Jeff Lowdermilk
5350d5e8d3 Merge pull request #7637 from eparis/copyright-boilerplate-rethinkdb
Update license boilerplate for examples/rethinkdb
2015-05-01 17:46:15 -07:00
Jeff Lowdermilk
e87d735304 Merge pull request #7638 from eparis/copyright-boilerplate-phabricator
Add license boilerplate to examples/phabricator
2015-05-01 17:03:24 -07:00
Eric Paris
6b3a6e6b98 Make copyright ownership statement generic
Instead of saying "Google Inc." (which is not always correct) say "The
Kubernetes Authors", which is generic.
2015-05-01 17:49:56 -04:00
Eric Paris
de4e84d3d9 Add license boilerplate to examples/phabricator 2015-05-01 14:05:21 -04:00
Eric Paris
461fa188f2 Update license boilerplate for examples/rethinkdb 2015-05-01 14:01:28 -04:00
Eric Paris
8bd9d4b6ec Include shell license boilerplate in examples/k8petstore 2015-05-01 13:39:59 -04:00
Paul Morie
e1885ba05f Add example for secrets 2015-04-30 12:35:21 -04:00
elsonrodriguez
621c86defb Fixed NFS example Dockerfile to include a valid Entrypoint.
While running through this example the Dockerfile wouldn't build, upon closer inspection the entrypoint was not being copied into the container, and it was not executable.
2015-04-27 20:39:44 -07:00
Brian Grant
f4ea8a3b2f Merge pull request #6807 from endocode/kbeecher/celery-update
Updates celery example
2015-04-27 17:36:59 -07:00
Karl Beecher
7072cd8357 Updates celery example
Change files from JSON to YAML.
2015-04-27 19:27:02 +02:00
markturansky
37d7f3f4f1 Added integration test, fixed a validation issue 2015-04-27 12:05:12 -04:00
markturansky
2cf4e6564b Added more to README, tweaked pod, added service, fixed validation 2015-04-27 12:05:12 -04:00
markturansky
49883e7d01 Edited README 2015-04-27 12:05:12 -04:00
markturansky
242567460d PersistentVolumeClaimBinder implementation 2015-04-27 12:05:11 -04:00
Steve Watt
3ad4dbdc65 Warning about Critical bug in the GlusterFS Volume Plugin
This warning will serve to let users know about a critical bug so they don't experience it first hand - https://github.com/GoogleCloudPlatform/kubernetes/issues/7317
2015-04-24 18:24:11 -05:00
Nikhil Jindal
4120b711cf Merge pull request #7258 from caesarxuchao/api-example
update examples/cassandra to api v1beta3
2015-04-24 09:21:54 -07:00
Nikhil Jindal
dca49ba5e1 Merge pull request #7231 from bcbroussard/storm-example
Update examples/storm for v1beta3
2015-04-24 09:21:26 -07:00
Nikhil Jindal
113efcd355 Merge pull request #7230 from bcbroussard/spark-example
Update examples/spark for v1beta3
2015-04-24 09:21:10 -07:00
nikhiljindal
4c3171f7ec Fixing an indentation bug in yaml file 2015-04-24 00:48:24 -07:00
BC Broussard
6b27aa2e9b Update examples/storm for v1beta3 2015-04-23 20:03:32 -07:00
BC Broussard
709c00c63d Update examples/spark for v1beta3 2015-04-23 18:23:13 -07:00
Tim Hockin
12e4e8f304 Make docs links go through docs.k8s.io 2015-04-23 16:36:27 -07:00
Brian Grant
38ea531487 Merge pull request #7194 from nikhiljindal/example
Updating the guestbook example to v1beta3
2015-04-23 15:26:47 -07:00
Chao Xu
d761c64447 update examples/cassandra to api v1beta3 2015-04-23 14:48:21 -07:00
nikhiljindal
1e323d77bc Updating the guestbook example to v1beta3 2015-04-23 14:34:36 -07:00
BC Broussard
715bee6b3a Update examples/phabricator for v1beta3 2015-04-23 11:47:23 -07:00
Brian Grant
97302af015 Merge pull request #5012 from smarterclayton/podtemplates
Pod templates as their own type
2015-04-22 11:50:24 -07:00