Kubernetes Web View to list and view all Kubernetes resources https://kube-web-view.readthedocs.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
637 B

"""Define example hook functions for Kubernetes Web View."""
async def resource_view_prerender(cluster, namespace, resource, context):
Example hook function for the resource view page. Adds a link (icon button) for deployments.
Usage: --resource-view-prerender-hook=kube_web.example_hooks.resource_view_prerender
if resource.kind == "Deployment":
link = {
"href": f"#this-is-a-custom-link;name={resource.name}",
"class": "is-link",
"title": "Some example link to nowhere",
"icon": "external-link-alt",