Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.79 KB | None | 0 0
  1. kind: Template
  2. apiVersion: v1
  3. parameters:
  4. - name: IKE_DOCKER_REGISTRY
  5. required: true
  6. value: docker.io
  7. - name: IKE_DOCKER_REPOSITORY
  8. required: true
  9. value: aslakknusten
  10. - name: IKE_IMAGE_NAME
  11. required: true
  12. value: istio-workspace
  13. - name: IKE_IMAGE_TAG
  14. required: true
  15. value: latest
  16. - name: TELEPRESENCE_VERSION
  17. required: true
  18. value: "0.99"
  19. objects:
  20. - kind: Deployment
  21. apiVersion: apps/v1
  22. metadata:
  23. name: istio-workspace
  24. spec:
  25. replicas: 1
  26. selector:
  27. matchLabels:
  28. name: istio-workspace
  29. template:
  30. metadata:
  31. labels:
  32. name: istio-workspace
  33. spec:
  34. serviceAccountName: istio-workspace
  35. containers:
  36. - name: istio-workspace
  37. image: localhost/ikey/istio-operator:b1f1faf1
  38. command:
  39. - ike
  40. args:
  41. - serve
  42. imagePullPolicy: Always
  43. env:
  44. - name: WATCH_NAMESPACE
  45. value: ""
  46. - name: POD_NAME
  47. valueFrom:
  48. fieldRef:
  49. fieldPath: metadata.name
  50. - name: OPERATOR_NAME
  51. value: "istio-workspace"
  52. - name: TELEPRESENCE_VERSION
  53. value: 0.99
  54.  
  55.  
  56. •! Panic [0.001 seconds]
  57. template processing
  58. /home/bartek/code/golang/src/github.com/maistra/istio-workspace/cmd/ike/cmd/install_test.go:19
  59. with env variables
  60. /home/bartek/code/golang/src/github.com/maistra/istio-workspace/cmd/ike/cmd/install_test.go:21
  61. should process template and make Deployment object with values take from env variables if defined [It]
  62. /home/bartek/code/golang/src/github.com/maistra/istio-workspace/cmd/ike/cmd/install_test.go:23
  63.  
  64. Test Panicked
  65. reflect.Set: value of type map[interface {}]interface {} is not assignable to type runtime.Object
  66. /home/bartek/code/golang/src/github.com/maistra/istio-workspace/vendor/gopkg.in/yaml.v2/yaml.go:249
  67.  
  68. Full Stack Trace
  69. /home/bartek/.gvm/gos/go1.12/src/runtime/panic.go:522 +0x1b5
  70. github.com/maistra/istio-workspace/vendor/gopkg.in/yaml%2ev2.handleErr(0xc0003df418)
  71. /home/bartek/code/golang/src/github.com/maistra/istio-workspace/vendor/gopkg.in/yaml.v2/yaml.go:249 +0x9a
  72. panic(0x136f2e0, 0xc000338670)
  73. /home/bartek/.gvm/gos/go1.12/src/runtime/panic.go:522 +0x1b5
  74. reflect.Value.assignTo(0x13b4f40, 0xc000182780, 0x15, 0x1564518, 0xb, 0x13f6360, 0xc000338660, 0x13b4f40, 0x0, 0xc000182780)
  75. /home/bartek/.gvm/gos/go1.12/src/reflect/value.go:2339 +0x42b
  76. reflect.Value.Set(0x13f6360, 0xc000338660, 0x194, 0x13b4f40, 0xc000182780, 0x15)
  77. /home/bartek/.gvm/gos/go1.12/src/reflect/value.go:1473 +0xa8
  78. github.com/maistra/istio-workspace/vendor/gopkg.in/yaml%2ev2.(*decoder).mapping(0xc000068680, 0xc000312310, 0x13f6360, 0xc000338660, 0x194, 0x13f6360)
  79. /home/bartek/code/golang/src/github.com/maistra/istio-workspace/vendor/gopkg.in/yaml.v2/decode.go:593 +0xa74
  80. github.com/maistra/istio-workspace/vendor/gopkg.in/yaml%2ev2.(*decoder).unmarshal(0xc000068680, 0xc000312310, 0x13f6360, 0xc000338660, 0x194, 0x194)
  81. /home/bartek/code/golang/src/github.com/maistra/istio-workspace/vendor/gopkg.in/yaml.v2/decode.go:332 +0x12e
  82. github.com/maistra/istio-workspace/vendor/gopkg.in/yaml%2ev2.(*decoder).sequence(0xc000068680, 0xc0003122a0, 0x1340c60, 0xc0002d6130, 0x197, 0x1340c60)
  83. /home/bartek/code/golang/src/github.com/maistra/istio-workspace/vendor/gopkg.in/yaml.v2/decode.go:567 +0x25a
  84. github.com/maistra/istio-workspace/vendor/gopkg.in/yaml%2ev2.(*decoder).unmarshal(0xc000068680, 0xc0003122a0, 0x1340c60, 0xc0002d6130, 0x197, 0xc0002d6130)
  85. /home/bartek/code/golang/src/github.com/maistra/istio-workspace/vendor/gopkg.in/yaml.v2/decode.go:334 +0x105
  86. github.com/maistra/istio-workspace/vendor/gopkg.in/yaml%2ev2.(*decoder).mappingStruct(0xc000068680, 0xc000354770, 0x14a72c0, 0xc0002d6000, 0x199, 0x13edc40)
  87. /home/bartek/code/golang/src/github.com/maistra/istio-workspace/vendor/gopkg.in/yaml.v2/decode.go:725 +0xa66
  88. github.com/maistra/istio-workspace/vendor/gopkg.in/yaml%2ev2.(*decoder).mapping(0xc000068680, 0xc000354770, 0x14a72c0, 0xc0002d6000, 0x199, 0x14a72c0)
  89. /home/bartek/code/golang/src/github.com/maistra/istio-workspace/vendor/gopkg.in/yaml.v2/decode.go:584 +0xbfb
  90. github.com/maistra/istio-workspace/vendor/gopkg.in/yaml%2ev2.(*decoder).unmarshal(0xc000068680, 0xc000354770, 0x14a72c0, 0xc0002d6000, 0x199, 0xc000354770)
  91. /home/bartek/code/golang/src/github.com/maistra/istio-workspace/vendor/gopkg.in/yaml.v2/decode.go:332 +0x12e
  92. github.com/maistra/istio-workspace/vendor/gopkg.in/yaml%2ev2.(*decoder).document(0xc000068680, 0xc000354700, 0x14a72c0, 0xc0002d6000, 0x199, 0x8)
  93. /home/bartek/code/golang/src/github.com/maistra/istio-workspace/vendor/gopkg.in/yaml.v2/decode.go:344 +0x7a
  94. github.com/maistra/istio-workspace/vendor/gopkg.in/yaml%2ev2.(*decoder).unmarshal(0xc000068680, 0xc000354700, 0x14a72c0, 0xc0002d6000, 0x199, 0x199)
  95. /home/bartek/code/golang/src/github.com/maistra/istio-workspace/vendor/gopkg.in/yaml.v2/decode.go:320 +0x1be
  96. github.com/maistra/istio-workspace/vendor/gopkg.in/yaml%2ev2.unmarshal(0xc000548700, 0x549, 0x653, 0x152dc40, 0xc0002d6000, 0x500, 0x0, 0x0)
  97. /home/bartek/code/golang/src/github.com/maistra/istio-workspace/vendor/gopkg.in/yaml.v2/yaml.go:148 +0x33e
  98. github.com/maistra/istio-workspace/vendor/gopkg.in/yaml%2ev2.Unmarshal(...)
  99. /home/bartek/code/golang/src/github.com/maistra/istio-workspace/vendor/gopkg.in/yaml.v2/yaml.go:81
  100. github.com/maistra/istio-workspace/cmd/ike/cmd_test.glob..func4.1.1()
  101. /home/bartek/code/golang/src/github.com/maistra/istio-workspace/cmd/ike/cmd/install_test.go:39 +0x544
  102. github.com/maistra/istio-workspace/vendor/github.com/onsi/ginkgo/internal/leafnodes.(*runner).runSync(0xc000496b40, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
  103. /home/bartek/code/golang/src/github.com/maistra/istio-workspace/test/ginkgo_custom_reporter.go:13
  104. github.com/maistra/istio-workspace/cmd/ike/cmd_test.TestCmd(0xc000163200)
  105. /home/bartek/code/golang/src/github.com/maistra/istio-workspace/cmd/ike/cmd/cmd_suite_test.go:28 +0x110
  106. testing.tRunner(0xc000163200, 0x15f9740)
  107. /home/bartek/.gvm/gos/go1.12/src/testing/testing.go:865 +0xc0
  108. created by testing.(*T).Run
  109. /home/bartek/.gvm/gos/go1.12/src/testing/testing.go:916 +0x357
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement