{"id":37176952,"url":"https://github.com/jklaw90/k8surl","last_synced_at":"2026-02-26T16:54:11.739Z","repository":{"id":183359024,"uuid":"669394847","full_name":"jklaw90/k8surl","owner":"jklaw90","description":"Quickly open links from from kubernetes resources using jsonpath templates.","archived":false,"fork":false,"pushed_at":"2024-04-03T18:30:21.000Z","size":44,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-14T23:12:23.766Z","etag":null,"topics":["cli","golang","kubectl","kubernetes"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jklaw90.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-22T06:18:03.000Z","updated_at":"2024-04-28T13:21:26.000Z","dependencies_parsed_at":"2025-03-12T02:01:13.680Z","dependency_job_id":"de04ed34-54d7-4d2c-afd3-bd69d2ba6224","html_url":"https://github.com/jklaw90/k8surl","commit_stats":null,"previous_names":["jklaw90/k8url","jklaw90/k8surl"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/jklaw90/k8surl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jklaw90%2Fk8surl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jklaw90%2Fk8surl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jklaw90%2Fk8surl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jklaw90%2Fk8surl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jklaw90","download_url":"https://codeload.github.com/jklaw90/k8surl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jklaw90%2Fk8surl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29865404,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T16:38:37.846Z","status":"ssl_error","status_checked_at":"2026-02-26T16:37:58.932Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","golang","kubectl","kubernetes"],"created_at":"2026-01-14T20:38:31.592Z","updated_at":"2026-02-26T16:54:11.731Z","avatar_url":"https://github.com/jklaw90.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# k8surl\n\nk8surl is a simple application to parse Kubernetes manifests and render templates and/or open links\nit uses kubectls jsonpath lib but just adds some extra sugar to help you save those json templates somewhere with commands you can remember.\n\n\n## Install\n\n### Krew\n```\nkubectl krew install --manifest-url https://raw.githubusercontent.com/jklaw90/k8surl/main/plugins/k8surl.yaml\n```\n\n### From Source\nMake sure to add a config file at `~/.k8surl.yaml`\n\n```\ngo install github.com/jklaw90/k8surl@latest\n```\n\n\n## Examples\n\nexample `~/.k8surl.yaml` config file:\n\n```yaml\npod:\n  urls:\n    - \"https://example.com/dashboards/xyz?name={.metadata.name}\u0026namespace={.metadata.namespace}\"\n  templates:\n    - |\n      Other Cool Dashboards:\n      - \"https://example.com/dashboards/xyz1?name={.metadata.name}\u0026namespace={.metadata.namespace}\"\ncommands:\n  meta:\n    short: open dashboards for namespaced things\n    example: |\n      kubectl k8surl meta get pods\n      kubectl get pods -ojson | k8surl meta\n    kinds: [\"*\"]\n    urls:\n      - \"{range .items[*]}https://example.com/dashboards/xyz?name={.metadata.name}\u0026namespace={.metadata.namespace}{end}\"\n    templates:\n      - |\n        {range .items[*]}\n        Kind: {.kind}{\"\\t\"}StartedTime:{.status.startTime}\n        Name: {.metadata.name}\n        {end}\n  topology:\n    kinds: [pod]\n    templates:\n      - |\n        Topology Details:\n          {.spec.topologySpreadConstraints[*].topologyKey}\n```\n\nexample commands you can run from this file are\n`k8surl meta` will open a dashboard and print out the template listed.\n\n```\n❯ kubectl get pod -ojson | k8surl meta\nKind: Pod\tStartedTime:2023-05-11T17:33:28Z\nName: argocd-redis-845dd66445-676pn\n\nKind: Pod\tStartedTime:2023-05-11T17:33:28Z\nName: argocd-notifications-controller-5bc5c7c44c-x4ll8\n\nKind: Pod\tStartedTime:2023-05-11T17:33:27Z\nName: argocd-dex-server-76fb9b8c94-8cmww\n\nKind: Pod\tStartedTime:2023-05-11T17:33:28Z\nName: argocd-applicationset-controller-596589bbc5-29wpf\n\nKind: Pod\tStartedTime:2023-05-11T17:33:28Z\nName: argocd-server-577b775f6-2bxlx\n\nKind: Pod\tStartedTime:2023-05-11T17:33:27Z\nName: argocd-repo-server-75bf74846d-tstlg\n\nKind: Pod\tStartedTime:2023-05-11T17:34:23Z\nName: argocd-application-controller-0\n```\n\nIf you define a type at the root like we did with `pod` it'll be your default configuration and you don't need more subcommands.\n\n```\n❯ kubectl get pod argocd-application-controller-0 -oyaml | k8surl\nOther Cool Dashboards:\n- \"https://example.com/dashboards/xyz1?name=argocd-application-controller-0\u0026namespace=argocd\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjklaw90%2Fk8surl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjklaw90%2Fk8surl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjklaw90%2Fk8surl/lists"}