Need a better way to specify plugin/extender specific arguments in the pod spec #18670
Labels
priority/backlog
Higher priority than priority/awaiting-more-evidence.
sig/api-machinery
Categorizes an issue or PR as relevant to SIG API Machinery.
Annotations are map[string]string. Its difficult to encode arbitrary structure in to a string.
[root@tb1-01 ~]# kubectl create -f pod.json
unable to load "pod.json": json: cannot unmarshal object into Go value of type string
This works but its painful to escape every quote and fit all of it in a single line.
map[string]interface{} makes it easier. The structure gets parsed as a map. The plugin would encode this map and then decode in to the structure. This scheme allows multiple plugins to define their own custom arguments.
There are two options to implement this:
If there is a different way to handle this, please let me know.
cc @bgrant0607 @smarterclayton @davidopp @thockin
The text was updated successfully, but these errors were encountered: