PortForwarding work

Added workload id to portforward object
Updated streamlit to show workload name
This commit is contained in:
2025-07-25 15:38:52 +09:30
parent 8c3b922e7a
commit ff989be202
6 changed files with 119 additions and 49 deletions
+2 -1
View File
@@ -145,10 +145,11 @@ def render_list():
st.markdown("🔁 **Port Forwarding:**")
for pf in pod['port_forwardings']:
dns_status = "🌐 DNS" if pf.get('dns_record_id') else "🚫 No DNS"
cols = st.columns([1, 3, 2])
cols = st.columns([1, 2, 2,1])
with cols[0]: st.markdown(f"**{pf['protocol'].upper()}**")
with cols[1]: st.text(f"{pf['external_port']} → {pf['internal_port']}")
with cols[2]: st.text(dns_status)
with cols[3]: st.text(pf['container_name'])
link = pf.get('dns_record_hostname') or f"{pf['ip_address']}:{pf['external_port']}"
st.page_link(f"http://{link}", label=f"http://{link}")
st.markdown("---")