{"id":17150779,"url":"https://github.com/object88/churl","last_synced_at":"2026-05-04T05:39:29.915Z","repository":{"id":93496496,"uuid":"219235600","full_name":"object88/churl","owner":"object88","description":null,"archived":false,"fork":false,"pushed_at":"2019-12-06T03:58:42.000Z","size":5061,"stargazers_count":0,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T03:42:38.043Z","etag":null,"topics":["chartmuseum","kubernetes","port-forwarding"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/object88.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-11-03T01:20:28.000Z","updated_at":"2019-12-06T03:55:42.000Z","dependencies_parsed_at":"2023-07-25T20:00:32.422Z","dependency_job_id":null,"html_url":"https://github.com/object88/churl","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/object88/churl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/object88%2Fchurl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/object88%2Fchurl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/object88%2Fchurl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/object88%2Fchurl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/object88","download_url":"https://codeload.github.com/object88/churl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/object88%2Fchurl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32596533,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"online","status_checked_at":"2026-05-04T02:00:06.625Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["chartmuseum","kubernetes","port-forwarding"],"created_at":"2024-10-14T21:36:29.408Z","updated_at":"2026-05-04T05:39:29.884Z","avatar_url":"https://github.com/object88.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# churl\n\n`churl` (**ch**art museum c**url**) is a utility for interacting with a [Helm](https://helm.sh) [chart museum](https://chartmuseum.com/).  \n\nThe default chart museum deployment does not include a kubernetes ingress, meaning that it's only accessible from within the kubernetes cluster, perhaps using it's service address (i.e., http://cm-chartmuseum.chartmuseum:8080/index.yaml).  `churl` will create a kubernetes port-forwarding tunnel from a local machine and issue HTTP requests to retrieve charts and chart archives.\n\n## Helm\n\nThe Chart Museum is installed as a helm package, and the version of helm used makes no difference, however, the tests assume the usage of version 3.\n\n## Limits\n\n`churl` is _not_ meant to add, remove, or alter charts or chart archives.  It's recommended to use helm commands for that purpose.\n\n## Goals\n\nThis project has several goals.  First and foremost is to create a tool that helps me access a protected chart museum.  There are several secondary goals:\n\n### Branching strategy\n\nIn order to better understand the OneFlow branching stragey, it will be applied here.  Reading about it does not impart the same level of undestanding as using it.\n\n### Github tooling\n\nGithub has made a number of CI/CD tools available to open source developers.\n\n### Over-engineering\n\n`churl` started as a bash script.  The following is a much simplified version of the script.\n\n``` sh\n#!/usr/bin/env bash\n\nQUERY=$1\nshift 1\n\n# Set up the port forward to run in the background, but grab the PID so that we\n# can terminate the forwarding when we're done.\nkubectl port-forward svc/cm-chartmuseum 9000:8080 --address localhost --context \"minikube\" --namespace chartmuseum \u003e /dev/null 2\u003e\u00261 \u0026\nKUBEPID=$!\n\n# Ensure that the port-forwarding process dies with this script.\nclosePortForward() {\n  kill $KUBEPID\n}\n\ntrap closePortForward EXIT\n\nsleep 10\n\ncurl -sL \"http://localhost:9000/$QUERY\"\n```\n\n## Future\n\nThe port forward currently lives as long as the `churl` executable, however it is probably common to perform multiple requests.  An improvement might be to spawn a long-lived background process that manages the port-forward, and closes after a period of inactivity.  In this arrangement, the user's request is routed to the background process, which performs the actual request.\n\n## Testing\n\n`churl` is tested with a local kubernetes \u0026 helm installation:\n\n``` sh\nhelm repo add stable https://kubernetes-charts.storage.googleapis.com\nhelm install stable/chartmuseum --name cm\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobject88%2Fchurl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobject88%2Fchurl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobject88%2Fchurl/lists"}