k3s/pkg
Clayton Coleman e46adc4cd0 kubectl should error when namespace doesn't match file for update
A user who runs `kubectl update -f foo.json` where foo.json is a
resource in a namespace that does not match $(kubectl namespace)
may not intend to update the resource in that other namespace.

For now, return an error when the user does not explicitly set
the namespace via the CLI:

    # foo.json in 'one', current is 'two'
    $ kubectl update -f foo.json # FAILS

    $ kubectl update --namespace=one -f foo.json # SUCCEEDS
2014-11-04 10:44:56 -05:00
..
api Add runtime.ObjectConvertor to RESTMapper 2014-11-04 10:38:00 -05:00
apiserver Get user from request and put in authz attribs. 2014-11-03 16:38:56 -08:00
auth Get user from request and put in authz attribs. 2014-11-03 16:38:56 -08:00
capabilities Refactor to clean up names. 2014-09-16 15:19:02 -07:00
client Refactor Get and Describe to allow extension of types 2014-11-04 10:44:56 -05:00
cloudprovider Separate minion controller from master. 2014-10-30 20:24:15 -04:00
config Fixed wrong godoc for pkg/config methods 2014-11-04 15:51:47 +01:00
constraint Write BoundPods to etcd instead of ContainerManifestList 2014-10-16 19:29:08 -04:00
controller Stop httptest server. 2014-10-30 21:37:08 -04:00
conversion Introduce ObjectConvertor for conversion to known API versions 2014-11-04 10:34:15 -05:00
health Stop httptest server. 2014-10-30 21:37:08 -04:00
healthz Fix healthz test error handling 2014-11-02 22:26:45 -08:00
httplog Implementing Flush method to httplog 2014-10-21 09:33:00 +02:00
kubecfg Further fixes. 2014-10-27 14:48:42 -07:00
kubectl kubectl should error when namespace doesn't match file for update 2014-11-04 10:44:56 -05:00
kubelet Change a spammy log to V(3) 2014-11-03 08:38:02 -08:00
labels Fix format specifiers in Printf-type functions. 2014-10-09 17:06:32 -07:00
master Get user from request and put in authz attribs. 2014-11-03 16:38:56 -08:00
proxy Fixup unit tests 2014-10-24 11:49:04 -04:00
registry Merge pull request #2120 from brendandburns/uuid 2014-11-03 15:32:56 -08:00
resources Use conversion.EnforcePtr() where appropriate 2014-10-28 16:36:09 +01:00
runtime Allow Create/Update/Delete kubectl commands to handle arbitrary objects 2014-11-04 10:44:56 -05:00
scheduler Add requirements based scheduling. 2014-10-25 22:08:00 -07:00
service Implement kubernetes & kubernetes-ro services 2014-10-29 11:29:28 -07:00
tools Fix a missing lock in the fake etcd client. 2014-10-31 21:36:03 -07:00
ui Update the ux. 2014-10-08 20:16:59 -07:00
util Add some blocking so that we don't generate identical UUIDs for API objects. 2014-11-03 13:27:59 -08:00
version Serve API version list, test with an integration test. 2014-10-28 17:35:56 -07:00
volume Add support for git volumes. 2014-10-27 16:35:52 -07:00
watch Refactor tests to split ObjectMeta from TypeMeta 2014-10-24 11:22:21 -04:00