Guest User

Untitled

a guest
May 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. [mfojtik@dev ~]$ cat /tmp/t.yaml
  2. {
  3. "kind": "List",
  4. "apiVersion": "v1",
  5. "metadata": {},
  6. "items": [
  7. {
  8. "apiVersion": "image.openshift.io/v1",
  9. "kind": "ImageStream",
  10. "metadata": {
  11. "labels": {
  12. "foo": "bar"
  13. },
  14. "name": "test"
  15. }
  16. }
  17. ]
  18. }
  19.  
  20. [mfojtik@dev origin]$ oc apply -l foo=bar -f /tmp/t.yaml --loglevel=5
  21. I0517 13:33:13.110125 27191 decoder.go:220] decoding stream as JSON
  22. obj=&{Object:map[apiVersion:v1 metadata:map[] kind:List] Items:[{Object:map[metadata:map[labels:map[foo:bar] name:test] apiVersion:image.openshift.io/v1 kind:ImageStream]}]}
  23. F0517 13:33:13.184645 27191 helpers.go:119] error: object does not implement the Object interfaces
Add Comment
Please, Sign In to add comment