juanvallejo
a872657371
Allow empty annotation values
...
Annotations with empty values can be used, for example, in diagnostics
logging. This patch removes the client-side check for empty values in
an annotation key-value pair.
**Before**
```
$ kubectl annotate pod zookeeper-1 node-selector="" --overwrite
error: invalid annotation format: node-selector=
```
**After**
```
$ kubectl annotate pod zookeeper-1 node-selector="" --overwrite
pod "zookeper-1" annotated
```
```
$ kubectl get po/zookeeper-1 --template='{{.metadata.annotations}}'
map[... node-selector: test-label:test]
```
2016-10-05 13:17:08 -04:00
..
2016-09-27 23:17:47 +08:00
2016-09-26 16:01:17 -07:00
2016-09-26 16:01:17 -07:00
2016-08-20 08:03:39 +08:00
2016-10-05 13:17:08 -04:00
2016-10-05 13:17:08 -04:00
2016-09-26 16:01:17 -07:00
2016-09-12 07:38:34 -04:00
2016-09-26 18:02:49 -07:00
2016-09-30 00:42:35 -07:00
2016-09-12 07:38:34 -04:00
2016-09-07 09:44:01 -04:00
2016-09-26 16:01:17 -07:00
2016-07-08 13:53:09 +02:00
2016-09-12 07:38:34 -04:00
2016-09-16 16:05:52 -04:00
2016-09-28 10:53:30 -07:00
2016-09-28 18:02:33 -04:00
2016-08-23 01:42:05 +08:00
2016-09-19 21:11:04 -07:00
2016-07-08 13:53:09 +02:00
2016-09-27 19:21:46 +08:00
2016-08-08 13:24:30 +10:00
2016-09-06 11:00:50 +08:00
2016-07-08 13:53:09 +02:00
2016-07-07 00:12:22 -07:00
2016-07-26 14:12:35 +02:00
2016-09-07 09:09:12 +08:00
2016-07-08 13:53:09 +02:00
2016-07-07 00:12:22 -07:00
2016-08-08 12:31:21 +10:00
2016-09-11 12:25:33 -07:00
2016-07-08 13:53:09 +02:00
2016-07-07 00:12:22 -07:00
2016-08-15 22:07:54 -07:00
2016-09-26 16:01:17 -07:00
2016-09-12 11:01:37 -07:00
2016-09-26 16:01:17 -07:00
2016-08-23 14:51:56 +08:00
2016-09-28 10:53:30 -07:00
2016-09-12 07:38:34 -04:00
2016-09-28 04:55:09 -07:00
2016-09-26 16:01:17 -07:00
2016-09-12 07:38:34 -04:00
2016-09-28 18:02:33 -04:00
2016-09-16 16:05:52 -04:00
2016-09-15 10:11:21 -04:00
2016-09-26 16:01:17 -07:00
2016-08-17 14:48:56 -07:00
2016-09-28 23:13:07 -07:00
2016-07-28 17:47:03 +03:00
2016-10-05 13:17:08 -04:00
2016-10-05 13:17:08 -04:00
2016-07-08 13:53:09 +02:00
2016-09-16 16:05:52 -04:00
2016-08-20 08:03:39 +08:00
2016-07-08 13:53:09 +02:00
2016-09-26 16:01:17 -07:00
2016-09-12 07:38:34 -04:00
2016-09-12 07:38:34 -04:00
2016-06-29 17:47:36 -07:00
2016-09-14 06:51:36 -07:00
2016-09-26 16:01:17 -07:00
2016-07-08 13:53:09 +02:00
2016-09-26 16:01:17 -07:00
2016-07-15 11:24:05 -04:00
2016-09-26 17:25:30 -07:00
2016-09-26 16:01:17 -07:00
2016-09-19 21:11:04 -07:00
2016-08-20 15:58:10 +02:00
2016-09-26 16:01:17 -07:00
2016-09-12 08:22:34 -04:00
2016-09-14 05:35:42 -07:00
2016-09-12 08:22:34 -04:00
2016-09-14 05:35:42 -07:00
2016-09-12 08:22:34 -04:00
2016-08-11 17:25:18 +02:00
2016-09-12 07:38:34 -04:00