Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
maystery committed Dec 14, 2018
2 parents 8268cf4 + f475519 commit ca3ab4f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM python:2.7-slim

ENV MICADO_FRONTEND_IP 127.0.0.1

ARG GIT_BRANCH=master
ARG GIT_BRANCH=k8s
ARG GIT_USER=micado-scale
ARG GIT_REPO=component-dashboard
ARG GIT_EXPORT_DIR=/srv/micado-dashboard
Expand Down
12 changes: 0 additions & 12 deletions dashboard/templates/docker-visualizer.html

This file was deleted.

12 changes: 12 additions & 0 deletions dashboard/templates/kubernetes-dashboard.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{% extends "layout.html" %}

{% block page_header %}
Kubernetes Dashboard
<small>(<a href="https://{{ request.host }}/kubernetes/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/" target="_blank">pop out</a>)</small>
{% endblock %}

{% block content %}
<div class="intrinsic-container">
<iframe src="https://{{ request.host }}/kubernetes/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/" allowfullscreen></iframe>
</div>
{% endblock %}
8 changes: 4 additions & 4 deletions dashboard/views/home.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ def home_grafana():
frontend_ip=current_app.config["FRONTEND_IP"])


@home.route("/docker-visualizer")
@home.route("/dashboard/docker-visualizer")
@register_menu(home, '.docker-visualizer', "Docker Visualizer", order=0)
@home.route("/kubernetes")
@home.route("/dashboard/kubernetes")
@register_menu(home, '.kubernetes-dashboard', "Kubernetes Dashboard", order=0)
def home_docker_visualizer():
return render_template("docker-visualizer.html",
return render_template("kubernetes-dashboard.html",
frontend_ip=current_app.config["FRONTEND_IP"])


Expand Down

0 comments on commit ca3ab4f

Please sign in to comment.