PortForwarding work
Added workload id to portforward object Updated streamlit to show workload name
This commit is contained in:
@@ -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("---")
|
||||
|
||||
Reference in New Issue
Block a user