Brian Grant
3f69112e02
Merge pull request #4766 from mikedanese/remove-util-merge
...
Remove pkg/util/merge and replace with evanphx/json-patch
2015-02-25 09:22:01 -08:00
Salvatore Dario Minonne
0186acc37c
Extending label.Parse method to support exact match
2015-02-25 08:52:20 +01:00
Scott Creeley
40c03b057a
Fix whitespace in v1beta3 enablement
2015-02-24 14:49:54 -05:00
Mike Danese
88e1ab3cbe
replace pkg/util/merge with evanphx/json-patch
2015-02-23 20:55:30 -08:00
Andy Goldstein
44d41a0f1b
Move golang code to third_party
2015-02-20 20:00:31 -05:00
Andy Goldstein
5bd0e9ab05
Add streaming command execution & port forwarding
...
Add streaming command execution & port forwarding via HTTP connection
upgrades (currently using SPDY).
2015-02-20 09:57:02 -05:00
Victor Marmol
2d1a8d0da0
Allow ApplyOomScoreAdj to specify what PID to adjust for.
2015-02-19 17:16:31 -08:00
Yu-Ju Hong
7379502cc9
Run gofmt for hash.go to fix formatting errors
2015-02-19 10:51:46 -08:00
rsokolowski
14e93a112b
Make DeepHashObject function deterministic.
2015-02-19 16:46:19 +01:00
Mike Danese
3039f7846c
implement RFC7386 JSON Merge Patch
2015-02-15 22:21:10 -08:00
Tim Hockin
063ff6677c
Merge pull request #4422 from derekwaynecarr/set_difference
...
Set should have a difference function
2015-02-13 14:16:28 -08:00
derekwaynecarr
e7a0340ad7
Set should have a difference function
2015-02-13 15:39:56 -05:00
Jeff Lowdermilk
b23230e616
Merge pull request #4296 from deads2k/deads-allow-dots
...
allow dots in config set
2015-02-13 12:27:36 -08:00
deads2k
2dcaab75f5
allow dots in config set
2015-02-13 13:11:42 -05:00
Alex Robinson
b58160c5ea
Remove the unused TimeCache file and its tests. Fixes issue #4192 .
2015-02-11 11:11:43 -08:00
Marek Grabowski
72a066a992
Add more information to Validator error messages.
2015-02-09 18:07:09 +01:00
Wojciech Tyczynski
524cdba101
Fix hack/test-cmd.sh test.
2015-02-05 01:58:26 +01:00
Brendan Burns
ab0acae7d3
fix build on non-linux hosts.
2015-02-03 08:13:09 -08:00
Tim Hockin
1ee1702be0
Merge pull request #3808 from brendandburns/master
...
Add a mounter that uses google's safe_format_and_mount.
2015-02-02 16:29:10 -08:00
Brendan Burns
ac21ac24fa
Add a mounter that uses google's safe_format_and_mount.
2015-02-02 16:16:20 -08:00
Dawn Chen
4aac47c31d
make kube-proxy.log less verbose.
2015-02-02 11:15:14 -08:00
Joe Beda
e1dd6b297c
Create new hyperkube package.
...
This is the start of an uber-binary that can morph into any server. Eventually we'll want this to be able to launch multiple servers from a single command line.
2015-01-28 16:11:34 -08:00
Satnam Singh
358ace610d
Merge pull request #3824 from smarterclayton/allow_panic_and_error_reporting
...
Allow panics and unhandled errors to be sent elsewhere
2015-01-27 13:18:43 -08:00
Mike Danese
d77743a07c
gimports nits
2015-01-26 22:42:29 -08:00
Clayton Coleman
04b864a91f
Allow panics and unhandled errors to be reported to external targets
...
It would be better if Kubernetes could be instrumented to report panics
and handled but unreturned errors in controller loops to a remote
service. This commit introduces settable handlers for HandleCrash and a new
HandleError that can be overriden to report errors to a remote service
for analysis. HandleError() in particular is for control loops that do
not return an error, and so there is no ability to report those errors
other than in log files.
ReplicationController is provided as an example.
2015-01-26 20:23:46 -05:00
Jeff Lowdermilk
6ba8b7dfb2
Merge pull request #3768 from deads2k/deads-make-kubectl-config-easier-alt
...
make kubectl config set-cluster easier to use
2015-01-26 13:13:26 -08:00
deads2k
05bc508a13
make all kubectl config set-* easier to use
2015-01-26 15:16:54 -05:00
Tim Hockin
5d73fa40aa
Merge pull request #3588 from vishh/api_resources
...
Adding a 'Typename' strongtype for representing all resource types
2015-01-23 15:07:27 -08:00
Vishnu Kannan
c32295a180
Adding a 'Typename' strongtype for representing all compute resource types.
2015-01-23 22:17:56 +00:00
Tim Hockin
c292aa54c4
Merge pull request #3738 from smreed/randomize-roundrobin-endpoints
...
Randomize roundrobin endpoints
2015-01-23 12:33:17 -08:00
Steve Reed
a186b47cd3
Adds test for slice.ShuffleStrings
2015-01-23 09:30:09 -08:00
Filipe Brandenburger
a5898a9559
Keep boolean status of imported flags
...
This makes glog flags such as --logtostderr and --alsologtostderr keep
working without requiring an explicit =true.
Tested by building kubelet and invoking it with --logtostderr. Also
tested a few non-boolean flags to ensure they weren't affected.
2015-01-22 16:32:12 -08:00
Steve Reed
ab1ede3aaa
Sets year in copyright to 2015
2015-01-22 14:24:07 -08:00
Steve Reed
f7e3cb12a6
Moves string slice sorting, copying and shuffling into pkg/util/slice
2015-01-22 14:20:23 -08:00
Clayton Coleman
80d99b8d85
Merge pull request #3631 from deads2k/deads-add-set-deleteall
...
make StringSet.Delete accept multiple items
2015-01-20 17:22:58 -05:00
Tim Hockin
6cb275829f
Implement volumes as plugins.
...
Break up the monolithic volumes code in kubelet into very small individual
modules with a well-defined interface. Move them all into their own packages
and beef up testing along the way.
2015-01-20 11:45:45 -08:00
deads2k
5b8e38a665
make StringSet.Delete accept multiple items
2015-01-20 14:42:10 -05:00
Joe Beda
6bd6b905f5
Address code review comments
...
Add some documentation.
Create new util.InitFlags() function to merge and parse in one step.
2015-01-15 09:12:20 -08:00
Joe Beda
1d0b6ee5f5
Fix up logging flags for kubectl.
2015-01-15 09:12:20 -08:00
Joe Beda
f692604bdf
Fix name of pflag_import.go
2015-01-15 09:12:19 -08:00
Joe Beda
dcd00c936e
Move all kubernetes to posix flags
2015-01-15 09:12:19 -08:00
Tim Hockin
1be3de895c
Move util.UID to pkg/types
2015-01-14 15:22:21 -08:00
Tim Hockin
e86d4cd3c6
Use a strong type for UID fields
2015-01-14 13:53:43 -08:00
Zach Loafman
e14d5f3416
Merge pull request #3464 from smarterclayton/fix_invalid_json_in_services.sh
...
Fix e2e invalid JSON, ensure CLI communicates invalid JSON errors effectively
2015-01-14 10:26:34 -08:00
bgrant0607
312de43ace
Merge pull request #3444 from lavalamp/fix
...
eliminate possibility of double-calling
2015-01-14 10:12:26 -08:00
Clayton Coleman
31413c8727
Add more tests around JSON/YAML decoding from the CLI
...
Switch the ignore stream errors behavior to print a Warningf on
failure to parse, not v(2)
2015-01-14 12:38:36 -05:00
Clayton Coleman
22cf8b94e6
Add a package for doing YAML-to-JSON streaming, one document at a time
...
Will be moved upstream soon
2015-01-14 00:50:07 -05:00
Daniel Smith
30be0eeac7
eliminate possibility of double-calling
2015-01-13 18:09:13 -08:00
Daniel Smith
f0b5fba988
Improve cache behavior
...
* don't block while filling cache
* make cache wait for pending calls
2015-01-12 16:20:25 -08:00
Daniel Smith
6e70853e83
genericize ip cache
2015-01-12 16:04:43 -08:00
Tim Hockin
4fcd496d59
change everything to use new util/errors
2015-01-08 22:10:03 -08:00
Tim Hockin
cd29ba7ebc
Add new util/errors pkg
2015-01-08 21:59:23 -08:00
Joe Beda
7abd90e9df
Generic way to import 'flag' flags into the 'pflag' system.
...
Start with kubectl but with an eye toward switching everything over to pflag.
2015-01-08 15:25:31 -08:00
Clayton Coleman
7fd887df61
Enable v1beta3 API via --runtime_config=api/v1beta3 flag
...
This exposes the proper v1beta3 API endpoint when the user specifies
the --runtime_config=api/v1beta3 argument to the apiserver. v1beta3
is still considered experimental and subject to change.
--runtime_config is a map of string keys and values, that can be
specified by providing
--runtime_config=a=b,b=c,d,e
Only the key must be specified, the value can be omitted.
Enables v1beta3 in hack/local-up-cluster.sh and hack/test-cmd.sh
2015-01-08 13:01:24 -05:00
Daniel Smith
894a3e6d3f
Wire resource.Quantity into api
2015-01-07 15:21:34 -08:00
Rohit Jnagal
62ecd5f3ff
Fix few vet errors.
...
There are quite a few 'composite literal uses unkeyed fields' errors that I have kept out of this patch.
And there's a couple where vet just seems confused. These are the easiest ones.
2015-01-07 08:40:16 +00:00
Joe Beda
b736b42585
Merge pull request #3224 from liggitt/self_signed
...
Automatically serve API on https with self-signed cert if no cert is provided
2015-01-06 10:29:05 -08:00
Eric Tune
25a19039fb
Merge pull request #3250 from a-robinson/failure
...
Minor doc/comment fixes that came up while reading through some code.
2015-01-06 10:18:36 -08:00
Alex Robinson
d8dab5dfb9
Minor doc/comment fixes that came up while reading through some code.
2015-01-06 18:05:33 +00:00
Jordan Liggitt
b36a44f036
Automatically serve API on https with self-signed cert
2015-01-06 09:36:29 -05:00
saadali
4bf191a30a
Update copyright year for files created today to current year
2015-01-05 17:01:02 -08:00
Tim Hockin
03baa7234a
Merge pull request #3225 from dchen1107/clean
...
Move GetHostName and GetDockerEndpoint methods to pkg/util
2015-01-05 16:21:51 -08:00
saadali
f92f830e1f
Modify hash to be computed using spew library so that nested object values are used instead of pointer
2015-01-05 15:48:06 -08:00
Dawn Chen
f718957a79
Move GetHostName and GetDockerEndpoint methods to pkg/util
2015-01-05 11:44:21 -08:00
Tim Hockin
e4d239cbb1
Util to test if all ptr fields are nil
2015-01-03 23:57:43 -08:00
Tim Hockin
fc69379b8c
Add a util/mount pkg
2014-12-30 14:38:49 -08:00
Tim Hockin
e045c6ce2f
Split portals into host and container
...
After this DNS is resolvable from the host, if the DNS server is targetted
explicitly. This does NOT add the cluster DNS to the host's resolv.conf. That
is a larger problem, with distro-specific tie-ins and circular deps.
2014-12-29 09:18:12 -08:00
Vishnu Kannan
6f53f33fda
Set oom_score_adj for kubelet and kube-proxy to a low value to help them survive system memory pressure.
2014-12-24 00:34:28 +00:00
Daniel Smith
545d87d554
Move clock to util
2014-12-22 14:14:03 -08:00
Joe Beda
93ed9173e3
Merge pull request #2781 from commonlisp/master
...
simplify util.ErrorList by eliminating errorListInternal
2014-12-16 15:43:55 -08:00
Brendan Burns
2d1b279311
Merge pull request #2905 from smarterclayton/misc_cleanup
...
Small fixes to prepare for v1beta3
2014-12-15 11:49:29 -08:00
Clayton Coleman
a636e44e3d
Add a side-by-side diff option for verbose output
...
Make regular diff better by eliding pointer values
2014-12-12 18:14:46 -05:00
George Kuan
5e1fc1f4e0
Fixes #1605 : make ErrorList introspectable by replacing ErrorList and
...
ErrorList#ToError with []error and util.SliceToError() respectively
2014-12-12 10:56:31 -08:00
Clayton Coleman
c5ba95ee26
Add Type() method on flags for compat with pflag library
...
Allows our flag objects to be used with both golang flags and pflags
2014-12-11 20:10:54 -05:00
Jordan Liggitt
51bfb50698
Use util.Time consistently in types.go
2014-12-11 11:14:25 -05:00
Satnam Singh
7582884f30
Do not consider an empty string to be an error in list.go
2014-12-10 11:41:13 -08:00
Clayton Coleman
2c27f7d332
Allow an empty service
2014-12-09 12:48:53 -05:00
Tim Hockin
5ecce5d60c
Add util to validate namespaced names
2014-12-08 15:31:43 -08:00
Eric Tune
64f1084c1a
Rename util.config.Watcher -> util.config.Broadcaster.
...
Watch is a widely used term in the codebase, which doesn't capture
the key feature of this type: broadcasting a change to several
listeners.
2014-12-04 00:10:27 -08:00
Tim Hockin
c31b3f04de
Merge pull request #2722 from thockin/iptables
...
strip quotes in back-compat iptables
2014-12-03 16:10:00 -08:00
Daniel Smith
7aaf76af6e
Merge pull request #2661 from smarterclayton/allow_loops_to_exit
...
Add a util.Forever variant that ends on a stop channel
2014-12-03 11:52:59 -08:00
Tim Hockin
b1470b6672
strip quotes in back-compat iptables
2014-12-03 08:34:34 -08:00
Sam Ghods
6399854240
Remove unused YAML tags and GetYAML/SetYAML methods
...
Unneeded after move to ghodss/yaml.
2014-12-02 16:25:28 -08:00
Sam Ghods
9a9a1e0939
Move from go-yaml/yaml to ghodss/yaml
2014-12-02 16:24:05 -08:00
Tim Hockin
89875ef09d
Loosen DNS 952 for labels
2014-12-01 12:30:43 -08:00
Clayton Coleman
740b824ac2
Add a util.Forever variant that ends on a stop channel
2014-11-28 15:15:52 -05:00
Tim Hockin
e925deccb0
Fix iptables for old systems
...
The iptables args list needs to include all fields as they are eventually spit
out by iptables-save. This is because some systems do not support the
'iptables -C' arg, and so fall back on parsing iptables-save output. If this
does not match, it will not pass the check. For example: adding the /32 on
the destination IP arg is not strictly required, but causes this list to not
match the final iptables-save output. This is fragile and I hope one day we
can stop supporting such old iptables versions.
2014-11-26 12:50:44 -08:00
Tim Hockin
95a9098311
fix 'go vet' warnings
2014-11-21 09:45:28 +08:00
Tim Hockin
ea960711ff
Clean up error logs.
...
Use %v for errors, tidy some messages, make error messages start lowe-case
(as per go guidelines). Just accumulated nits.
2014-11-21 09:45:26 +08:00
Deyuan Deng
762e9a0f57
Create a backgroud task to register static list of machines.
2014-11-20 20:22:32 -05:00
Tim Hockin
8fdaa5d453
Merge pull request #2067 from hmrm/iptables-compatibility
...
Remove iptables >1.4.11 specific functionality
2014-11-18 08:54:38 -08:00
Haney Maxwell
5d69faa6d6
Allow proxy to run on systems with iptables <1.4.11
2014-11-17 13:37:46 -08:00
Tim Hockin
9c218f0a19
Cleanups of ipv6 changes.
...
I was late re-reviewing and some comments did not get resolved.
2014-11-17 09:33:14 -08:00
Brendan Burns
2aa52d043b
Add external services v2 support.
2014-11-14 11:32:54 -08:00
Brendan Burns
c2485a4056
Merge pull request #2147 from justinsb/ipv6
...
Initial ipv6 / iptables work
2014-11-14 10:34:37 -08:00
Clayton Coleman
6d31c2bf8a
util.EncodeJSON proven harmful, remove it everywhere
...
People were misusing EncodeJSON in tests when they should be using
runtime.EncodeOrDie(testapi.Codec(), obj). Removing the potential
for cutting self on sharp objects.
2014-11-13 10:38:13 -05:00
Justin SB
9a053a4b59
Initial ipv6 / iptables work
2014-11-03 15:23:04 -08:00
Brendan Burns
a624630112
Add some blocking so that we don't generate identical UUIDs for API objects.
2014-11-03 13:27:59 -08:00
Deyuan Deng
acf9d23b32
Stop httptest server.
2014-10-30 21:37:08 -04:00
Daniel Smith
d05dad6c59
Add runner utility.
2014-10-29 11:29:28 -07:00