fix animation and de-register pods

This commit is contained in:
Henning Jacobs
2016-12-22 17:24:52 +01:00
parent 964cadc3b3
commit 64da03a423
5 changed files with 41 additions and 15 deletions

View File

@@ -83,7 +83,7 @@ export default class Node extends PIXI.Graphics {
var py = 20
for (const pod of this.node.pods) {
if (pod.namespace != 'kube-system') {
const podBox = Pod.getOrCreate(pod, this.cluster, this.tooltip) //new Pod(pod, this.tooltip)
const podBox = Pod.getOrCreate(pod, this.cluster, this.tooltip)
podBox.x = px
podBox.y = py
nodeBox.addChild(podBox.draw())
@@ -99,7 +99,7 @@ export default class Node extends PIXI.Graphics {
py = 100
for (const pod of this.node.pods) {
if (pod.namespace == 'kube-system') {
const podBox = Pod.getOrCreate(pod, this.cluster, this.tooltip) //new Pod(pod, this.tooltip)
const podBox = Pod.getOrCreate(pod, this.cluster, this.tooltip)
podBox.x = px
podBox.y = py
nodeBox.addChild(podBox.draw())