Skip to content

Commit

Permalink
Fix tensorboard image parsing (#3356)
Browse files Browse the repository at this point in the history
I introduced a bug when parsing the image for Tensorboard in
#3235. This fixes it.
  • Loading branch information
rafbarr authored Mar 25, 2020
1 parent fe78e1e commit c33150f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/server/k8s-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export async function getTensorboardInstance(
viewer.body.spec.type === 'tensorboard'
) {
const address = `http://${viewer.body.metadata.name}-service.${namespace}.svc.cluster.local:80/tensorboard/${viewer.body.metadata.name}/`;
const tfImageParts = viewer.body.spec.tensorboardSpec.tensorflowImage.split(':', 1);
const tfImageParts = viewer.body.spec.tensorboardSpec.tensorflowImage.split(':', 2);
const tfVersion = tfImageParts.length == 2 ? tfImageParts[1] : '';
return { podAddress: address, tfVersion: tfVersion };
} else {
Expand Down

0 comments on commit c33150f

Please sign in to comment.