Commit Graph

1999 Commits (3da84e18447c4618d56296eb2a7473339e34608e)

Author SHA1 Message Date
Rajdeep Dua e47e1ee025 Added test case for ServerAPIVersions 2014-12-02 21:55:44 -08:00
Daniel Smith ffcbe2fa10 Merge pull request #2674 from mattmoor/quiet-credentialprovider
Make credentialprovider less verbose about benign errors.
2014-12-02 18:25:03 -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 f4b031d025 Merge pull request #2514 from thockin/label-ns
Add label key namespacing
2014-12-02 13:38:46 -08:00
Eric Tune 860d845d2c Merge pull request #2588 from lavalamp/fix4
Relax search criteria to find both pod & bound pod events
2014-12-02 09:40:32 -08:00
Craig Wickesser 1c02137f48 Update exec health check message logged
Update message logged after performing exec health check per #2708.
2014-12-02 07:15:02 -05:00
Brendan Burns 993ef88eec Merge pull request #2689 from brendandburns/standalone
Refactor kubelet, standalone k8s and integration test to all use the same code.
2014-12-01 21:53:41 -08:00
Daniel Smith 3b2fa9618d Relax search criteria to find both pod & bound pod events 2014-12-01 17:19:42 -08:00
Brendan Burns 85fbcdb981 Kubernetes version v0.6.0-dev 2014-12-01 16:26:48 -08:00
Brendan Burns 20a0d79bf4 Kubernetes version v0.6.0 2014-12-01 16:26:48 -08:00
Brendan Burns d47b510104 Refactor kubelet, standalone k8s and integration test to all use the same code. 2014-12-01 15:37:21 -08:00
Brendan Burns 6b009f06cd Merge pull request #2635 from thockin/public-ip
Enable public IPs even in not createExternal...
2014-12-01 14:56:22 -08:00
Tim Hockin 89875ef09d Loosen DNS 952 for labels 2014-12-01 12:30:43 -08:00
Tim Hockin c857dc1196 Add namespacing for label keys 2014-12-01 12:30:43 -08:00
Tim Hockin d5a6a54391 clean up error message on labels validation errs 2014-12-01 12:30:43 -08:00
Matt Moore 65c246d45a Make credentialprovider less verbose about benign errors.
In particular, a few of the utilities used within the credentialprovider had the pattern:
   glog.Errorf("while blah %s: %v", s, err)
   return nil, err

This change propagates those error message and puts the burden of logging on the caller.

In particular, this allows us to squelch all output during kubelet startup when we are detecting whether certain credentialprovider plugins should even be enabled.

Fixes: https://github.com/GoogleCloudPlatform/kubernetes/issues/2673
2014-12-01 11:54:50 -08:00
Brendan Burns 50cf0c1b23 Merge pull request #2668 from meirf/set-initial-udp-proxy-timeout
Set initial timeout upon UDP proxy connection creation
2014-12-01 10:14:23 -08:00
Brendan Burns b61168835d Merge pull request #2666 from mattmoor/master
add another registry URL
2014-12-01 10:12:31 -08:00
Vojtech Vitek (V-Teq) 28f5d51a5f Add Labels and Annotations to MetadataAccessor 2014-12-01 16:36:24 +01:00
Vojtech Vitek (V-Teq) 508724b1f8 meta_test should not depend on runtime.TypeMeta 2014-12-01 16:36:21 +01:00
Jimmi Dyson 5109ce3356 Fixes #2681: update to cadvisor 0.6.2 2014-12-01 11:38:03 +00:00
Meir Fischer d1c93384e9 Set initial timeout on UDP proxy connection creation 2014-11-29 21:32:45 -05:00
Matt Moore 5c35af5810 add another registry URL 2014-11-29 15:56:25 -08:00
Clayton Coleman 740b824ac2 Add a util.Forever variant that ends on a stop channel 2014-11-28 15:15:52 -05:00
Eric Tune 7eceafa656 Merge pull request #2437 from deads2k/deads-add-utility-to-bind-auth-flags
add utility for binding flags and building api server clients
2014-11-26 15:15:14 -08:00
Tim Hockin 7246727231 Merge pull request #2636 from erictune/service_env_var
Remove format specifiers with no options.
2014-11-27 06:03:55 +08:00
Tim Hockin 9afeaf36ef Fix head 2014-11-26 13:48:50 -08:00
Eric Tune 41f23ffca2 Merge pull request #2638 from thockin/iptables
Fix iptables for old systems
2014-11-26 13:16:45 -08:00
Eric Tune 585afa1bae Merge pull request #2610 from ddysher/node-namespace
Fix node namespace.
2014-11-26 13:02:21 -08: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
Eric Tune 54859cf1ea Remove format specifiers with no options. 2014-11-26 12:05:00 -08:00
Tim Hockin 0c03f6e784 Enable public IPs even in not createExternal...
This allows the proxier to portal Public IPs even if the
createExternalLoadBalancer flag is not set.

This also fixes what appears to be a bug in the createExternalLoadBalancer path
wherein multiple PublicIPs would get truncated.
2014-11-26 10:54:28 -08:00
deads2k 2dbfb80349 add utility for binding flags and building api server clients 2014-11-26 07:50:51 -05:00
Tim Hockin 26ec89c3c0 Merge pull request #2614 from bgrant0607/api
Format JSON by default. Fixes #2243.
2014-11-26 07:58:57 +08:00
Brian Grant e18dcb87c4 Format JSON by default. Fixes #2243. 2014-11-25 23:11:43 +00:00
Joe Beda 6590c66dd4 Revert "Add optional validation to kubecfg/kubectl."
This reverts commit acf6d82800.
2014-11-25 14:45:00 -08:00
Eric Tune f5f5542bb2 Merge pull request #2584 from liggitt/basic_auth
Add password authenticators
2014-11-25 14:21:32 -08:00
Eric Tune 7ca611b1df Merge pull request #2589 from ddysher/show-node-label
Use formatLabel instead of label.Set
2014-11-25 14:08:50 -08:00
Eric Tune 636ffed399 Merge pull request #2515 from thockin/why
Add details on Invalid validation errors
2014-11-25 14:04:27 -08:00
Deyuan Deng c8c7a13ac6 Fix node namespace. 2014-11-25 16:30:55 -05:00
Clayton Coleman a67912f937 Merge pull request #2517 from brendandburns/kubecfg
Add client side validation to kubecfg and kubectl.
2014-11-25 13:46:52 -06:00
Eric Tune ef85243f73 Merge pull request #2570 from derekwaynecarr/endpoints_missing_ns
Endpoint.Namespace is not being set when it has no resolved endpoints
2014-11-25 11:38:51 -08:00
Brendan Burns ded165def5 Merge pull request #2605 from derekwaynecarr/kubectl_log_ns
Log function use namespace
2014-11-25 11:16:27 -08:00
derekwaynecarr f41a44278d Log function use namespace 2014-11-25 13:10:32 -05:00
Joe Beda 12add3bc66 Merge pull request #2579 from brendandburns/e2e
Add an e2e test for gce pd.
2014-11-25 09:08:40 -08:00
Brendan Burns e1764e2e01 Add an e2e test for gce pd.
Add an example for gce pd.
Add an extra log message.
2014-11-25 09:02:00 -08:00
Clayton Coleman c5e9f60f9c Merge pull request #2569 from mfojtik/pluralization_fix
Fix pluralization in RESTMapper when kind ends with 'y'
2014-11-25 09:53:46 -06:00
Michal Fojtik 7235a9b1f0 Fix pluralization in RESTMapper when kind ends with 'y' 2014-11-25 11:33:13 +01:00
Brendan Burns acf6d82800 Add optional validation to kubecfg/kubectl. 2014-11-24 22:25:22 -08:00
Brendan Burns a5bc6301a4 Revert "Using util.Time for ContainerStatus" 2014-11-24 21:32:31 -08:00
Tim Hockin ff8c5f9415 Add a Detail field to Validation Error 2014-11-24 17:28:42 -08:00
Tim Hockin b08e5b24b0 Change ValidationError to a pointer
In Prep for adding at leats one more field, make this operate more list
StatusError.
2014-11-24 17:28:42 -08:00
Tim Hockin d4c37e352e small cleanup on pkg/config 2014-11-24 17:28:41 -08:00
Deyuan Deng ec7d544194 Use formatLabel instead of label.Set 2014-11-24 18:45:29 -05:00
Daniel Smith 610ab9a0db Merge pull request #2586 from dchen1107/cleanup
Using util.Time for ContainerStatus
2014-11-24 15:35:07 -08:00
Dawn Chen acb0f1198b Using util.Time for ContainerStatus 2014-11-24 15:15:33 -08:00
Jordan Liggitt 3532be3c82 Add basicauth and password authenticators 2014-11-24 17:52:10 -05:00
Daniel Smith 668a81e894 Merge pull request #2539 from lavalamp/master
Reduce boilerplate
2014-11-24 13:45:04 -08:00
Brendan Burns e82b88fed8 Merge pull request #2560 from ddysher/fix-git-volume
gitrepo validation
2014-11-24 13:12:04 -08:00
Daniel Smith 8d762c996a Remove boilerplate coversion functions 2014-11-24 12:57:34 -08:00
Daniel Smith f1c21c8fdf add boilerplate reduction struct field copier 2014-11-24 12:57:34 -08:00
derekwaynecarr 039af4a569 Endpoint.Namespace is not being set when it has no resolved pods 2014-11-24 14:15:22 -05:00
bgrant0607 e52579b8e1 Merge pull request #2535 from erictune/move_env
Move service environment vars code.
2014-11-24 09:47:32 -08:00
bgrant0607 c0fb54b8ca Merge pull request #2540 from mikedanese/kubectl-example-fix
Fixed kubectl example
2014-11-24 09:30:33 -08:00
Eric Tune c5e3eb1e3d Merge pull request #2547 from ddysher/show-node-label
Display node label
2014-11-24 09:26:14 -08:00
Eric Tune 517bb074c2 Merge pull request #2551 from meirf/set-error-to-set-deadline-call
reset err value to SetDeadline return
2014-11-24 09:21:21 -08:00
Brendan Burns 4b2a5cdb11 Merge pull request #2520 from mikedanese/proxy-healthz
add health check to kube-proxy
2014-11-24 08:44:33 -08:00
Brendan Burns 428cbcd799 Merge pull request #2531 from jbeda/32bit-fix
Fix 32bit build
2014-11-24 08:43:43 -08:00
Deyuan Deng b5fce5021f gitrepo validation 2014-11-23 23:03:11 -05:00
Meir Fischer 763e48bc6f multivalued requirement parser more whitespace tolerant 2014-11-23 21:55:34 -05:00
Mike Danese 5bda95f9fe added healthz check to the proxy with configurable port 2014-11-23 09:07:19 -08:00
Eric Tune f122fc94bf Move service enviroment vars code.
GetServiceEnvironmentVariables (originally in  pkg/registry/service/rest.go)
is split into two parts: one that lists services, and one that turns
a ServiceList into environment vars.  This will allow a subsequent PR
to add a call to the latter function with an existing ServiceList.
The former part is moved into pkg/registry/pod/bound_pod_factory.go.
The latter part is put in a new package, pkg/kubelet/envvars/envvars.go.
The new package is under kubelet because the container enviroment is more
associated with kubelet than with registry.
Test code moved too.
2014-11-23 05:50:34 -08:00
Meir Fischer 9b441d01ab reset err value to SetDeadline return 2014-11-22 23:48:27 -05:00
Deyuan Deng 6a42b66369 Display node label 2014-11-22 11:33:02 -05:00
Mike Danese 39bdee387e kubectl get format is specified with -o, not -f 2014-11-21 17:55:48 -08:00
Eric Tune 7d3e00c679 Remove never-needed return value.
Make some types private.
2014-11-21 15:11:45 -08:00
Joe Beda e5b988393d Fix 32bit build 2014-11-21 14:58:17 -08:00
bgrant0607 7ca2e06553 Merge pull request #2526 from erictune/addhelper
Add selector making helper
2014-11-21 14:27:18 -08:00
bgrant0607 8298308d34 Merge pull request #2525 from erictune/cleanup1
Rename makeContainerKey -> make BoundPodsKey.
2014-11-21 14:04:11 -08:00
Eric Tune 01434a8c04 Add helper for making simple selector. 2014-11-21 13:34:20 -08:00
Eric Tune 20a8e4bf19 Rename makeContainerKey -> make BoundPodsKey.
Fix some typos too.
2014-11-21 13:15:08 -08:00
markturansky 8159c8fd25 Refactor PodCondition to PodPhase 2014-11-21 15:28:38 -05:00
bgrant0607 9f5ebef3d8 Merge pull request #2513 from lavalamp/verifyNetwork
Fix crash (loop?) in kubelet
2014-11-21 10:10:32 -08:00
bgrant0607 4c5a7e5915 Merge pull request #2492 from brendandburns/valid
Add a swagger schema validator, for validating client side json files.
2014-11-21 07:01:59 -08:00
markturansky 13cba21c6c Add old and new DesiredState/Status to podToSelectableFields for watches 2014-11-21 09:46:05 -05:00
Brendan Burns 6c53d3b462 Add a swagger schema validator, for validating client side json files. 2014-11-20 22:16:55 -08:00
Deyuan Deng a4e7604266 Merge pull request #2478 from smarterclayton/refactor_minion_to_match_v1beta3
Move the internal minion representation to match v1beta3
2014-11-20 21:37:43 -05:00
Daniel Smith 9116c27040 Fix crash (loop?) in kubelet 2014-11-20 18:28:23 -08:00
Clayton Coleman 156000ef6d Move the internal minion representation to match v1beta3
Moves to 'Spec' and 'Status' internally and removes duplicate
fields.  Moves Capacity into Spec and drops use of NodeResources
2014-11-20 20:53:08 -05: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
Eric Tune ea58ab7221 Merge pull request #2508 from lavalamp/fix4
Don't hold up the entire event queue for a single bad event.
2014-11-20 17:22:03 -08:00
bgrant0607 6b80abc78c Merge pull request #2494 from bgrant0607/config
Create tool for resizing a replication controller via kubectl.
2014-11-20 16:30:22 -08:00
Daniel Smith 4437f03dbf Don't hold up the entire event queue for a single bad event. Also, don't retry forever. 2014-11-20 16:01:42 -08:00
Daniel Smith 432cf39c0c add test and more helpful error message 2014-11-20 14:11:19 -08:00
Brian Grant e107da34d2 Create tools for resizing and stopping a replication controller via kubectl. 2014-11-20 18:49:44 +00:00
bgrant0607 d6f3caeb94 Merge pull request #2488 from smarterclayton/remove_chatty_error
Do not log an error when file does not exist
2014-11-20 10:25:28 -08:00
Clayton Coleman 2afa12073c Do not log an error when file does not exist 2014-11-19 22:04:36 -05:00
Daniel Smith 4e29068a33 Merge pull request #2468 from hmrm/improve-kubectl-error-message
Improve kubectl "get" error message
2014-11-19 15:35:53 -08:00
Eric Tune 0975ab19d1 Merge pull request #2463 from liggitt/auth_plugin
Make master take authenticator.Request interface instead of tokenfile
2014-11-19 15:29:55 -08:00
Dawn Chen 6d3324c3fd Add image related events to kubelet. 2014-11-19 15:16:14 -08:00
Haney Maxwell bc29903146 Improve kubectl "get" error message
Previous behavior:
$ kubectl get hosts
F1119 11:47:44.787154   29017 resource.go:111] no resource "hosts" has been defined
2014-11-19 14:33:41 -08:00
Jordan Liggitt c895331277 Make master take authenticator.Request interface instead of tokenfile 2014-11-19 15:07:51 -05:00
Daniel Smith 298007b97e Merge pull request #2447 from smarterclayton/revert_bundling_of_version
Ensure that kubectl get works with downstream resources
2014-11-19 10:39:52 -08:00
Clayton Coleman 487e5cd061 Make GetPrinter take the necessary conversion arguments
This fully encapsulates decisions about conversion within GetPrinter,
which prevents users from accidentally not converting.
2014-11-18 21:14:39 -05:00
Clayton Coleman 811f77894c Not having Kind set in Decode(1) is an error 2014-11-18 20:22:05 -05:00
Clayton Coleman 9eb4ca43d8 Move FakeRESTClient to client/fake.go 2014-11-18 20:22:05 -05:00
Daniel Smith 885f2b5f48 Merge pull request #2452 from bgrant0607/docfix
Document v1beta2 fields
2014-11-18 14:48:13 -08:00
Clayton Coleman 1c524607d8 Merge pull request #2097 from markturansky/v1beta3_podrefactor
Refactor internal API for Pods to match v1beta3
2014-11-18 15:28:58 -05:00
Brian Grant 76daced96f Document v1beta2 fields 2014-11-18 19:40:43 +00:00
Daniel Smith e47887c79e Merge pull request #2444 from bgrant0607/docfix
Add descriptions to all v1beta1 API fields.
2014-11-18 10:54:11 -08:00
Daniel Smith 6ae208aea9 Merge pull request #2187 from eparis/go.net-rename
update code.goole.com/p/go.net to golang.org/x/net
2014-11-18 10:08:28 -08:00
Brian Grant 821c8542b6 Add descriptions to all v1beta1 API fields. 2014-11-18 17:53:57 +00: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
markturansky 8af4ccb111 v1beta3 Pod refactor 2014-11-18 09:25:42 -05:00
Brendan Burns cea52d7e4f Merge pull request #2409 from mattmoor/master
Implements a credentialprovider library for use by DockerPuller.
2014-11-17 21:53:25 -08:00
Matt Moore 0c5d9ed0d2 Implements a credentialprovider library for use by DockerPuller.
This change refactors the way Kubelet's DockerPuller handles the docker config credentials to utilize a new credentialprovider library.

The credentialprovider library is based on several of the files from the Kubelet's dockertools directory, but supports a new pluggable model for retrieving a .dockercfg-compatible JSON blob with credentials.

With this change, the Kubelet will lazily ask for the docker config from a set of DockerConfigProvider extensions each time it needs a credential.

This change provides common implementations of DockerConfigProvider for:
 - "Default": load .dockercfg from disk
 - "Caching": wraps another provider in a cache that expires after a pre-specified lifetime.

GCP-only:
 - "google-dockercfg": reads a .dockercfg from a GCE instance's metadata
 - "google-dockercfg-url": reads a .dockercfg from a URL specified in a GCE instance's metadata.
 - "google-container-registry": reads an access token from GCE metadata into a password field.
2014-11-17 21:46:54 -08:00
Deyuan Deng a07661dcea Add pod restart policy validation for replication controller. 2014-11-17 23:08:23 -05:00
Daniel Smith c91306c5bd Merge pull request #2429 from erictune/fix_birthcry
Fix namespace of minion birthcry event.
2014-11-17 17:20:25 -08:00
Eric Tune 0ca192889f Fix namespace of minion birthcry event. 2014-11-17 15:34:07 -08:00
Brendan Burns 4ab79ce40f Add the 0.5-dev tag. 2014-11-17 15:01:57 -08:00
Brendan Burns e2e1c87ae0 Add the 0.5 release. 2014-11-17 15:01:09 -08:00
Brendan Burns f385f4415d Merge pull request #2397 from ddysher/node-label
Support node label update
2014-11-17 14:57:55 -08:00
Haney Maxwell 5d69faa6d6 Allow proxy to run on systems with iptables <1.4.11 2014-11-17 13:37:46 -08:00
Daniel Smith eeb4547bec Merge pull request #2392 from dchen1107/upstream1
Generate container related events from kublet
2014-11-17 11:28:52 -08:00
Dawn Chen 736c4ffb0b more events from kublet 2014-11-17 11:00:46 -08:00
Deyuan Deng c20ceea170 Add more validation for updating node. 2014-11-17 13:42:31 -05:00
Deyuan Deng cc310e0e71 Support node label update. 2014-11-17 13:42:31 -05:00
Brendan Burns 88fa703b8e Merge pull request #2417 from thockin/ipalloc
Cleanups of ipv6 changes.
2014-11-17 09:54:16 -08:00
Brendan Burns f05c4a69e8 Merge pull request #2326 from marianitadn/read-json-directories-as-object-streams
Add directory as option for createall command
2014-11-17 09:50:57 -08:00
Brendan Burns 271ed1c21e Merge pull request #2394 from ddysher/random-fix
Exclude service itself when checking conflict.
2014-11-17 09:47:58 -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
Eric Paris 4e95104953 update code.goole.com/p/go.net to golang.org/x/net
https://groups.google.com/forum/#!topic/golang-nuts/eD8dh3T9yyA
2014-11-16 22:10:24 -05:00
Deyuan Deng 241f3d702b Exclude service itself when checking conflict. 2014-11-15 10:40:40 -05:00
Tim Hockin e987f11838 Merge pull request #2319 from brendandburns/external
Externalized services v2
2014-11-14 21:01:19 -08:00
Daniel Smith 29b73cc4b5 Merge pull request #2389 from satnam6502/kubectl
Make the output of kubectl.sh narrower
2014-11-14 17:33:20 -08:00
Dawn Chen eb14ba9396 Merge pull request #2390 from ddysher/random-fix
Use Service.Name for validation error.
2014-11-14 17:27:47 -08:00
Dawn Chen 8a508bcce3 Merge pull request #2391 from lavalamp/fix3
Remove confusing function; add TODO and explanation for (nonfatal) error...
2014-11-14 17:24:18 -08:00
Brendan Burns 4a8a2b5a9f Address comments. 2014-11-14 17:23:13 -08:00
Satnam Singh fa0cb9a25e Make the output kubectl.sh narrower 2014-11-14 17:20:01 -08:00
Daniel Smith c412540cf2 Remove confusing function; add TODO and explanation for (nonfatal) error message in integration test. 2014-11-14 17:16:05 -08:00
Deyuan Deng 29a56c4f18 Use Service.Name for validation error. 2014-11-14 19:36:34 -05:00
Dawn Chen ce145545b9 Add unittests to test PullPolicy. 2014-11-14 16:09:53 -08:00
Dawn Chen f729d748ac If the image with :latest tag specified in Spec, kubelet should try
to pull the latest one even the policy is PullIfNotPresent.
2014-11-14 16:09:53 -08:00
bgrant0607 cb8ca2d341 Merge pull request #2384 from lavalamp/fix3
Add events to kubectl describe
2014-11-14 13:29:40 -08:00
Daniel Smith 9430bb38b8 Merge pull request #2282 from bgrant0607/docgen
Automatic API generation via go-restful
2014-11-14 13:12:25 -08:00
Daniel Smith 6a5da9ee19 Add events to kubectl describe 2014-11-14 11:56:59 -08:00
Brendan Burns 2aa52d043b Add external services v2 support. 2014-11-14 11:32:54 -08:00