Skip to content

whazor/k8s-at-home-search

Repository files navigation

kubesearch.dev

Search Flux HelmReleases through awesome k8s-at-home projects, check it out at https://kubesearch.dev/. We index Flux HelmReleases from Github and Gitlab repositories with the k8s-at-home topic and kubesearch topic. To include your repository in this search it must be public and then add the topic k8s-at-home or kubesearch to your GitHub Repository topics.

Thanks to Toboshii and Hajimari for regulating icons to helm charts.

And also thanks to k8s@home community for great charts and configurations.

image

image

development

Overview:

graph LR
    I[interesting.py]
    I-->|repos.json|Init[init-db.py]
    Init-->|repos.db: repos|download[download.py]
    Init-->|repos.db: repos|search
    download-->|repos/ submodules|search[search.py]
    search-->|repos.db: repos,charts|frontend
Loading

To build repos.db (optional for frontend, check step below)

Python requirements: pip install -r requirements.txt

Updating repos.json (can be skipped, already included in source):

python3 interesting.py

Setting up repos.db repos table (requires repos.json):

python3 init-db.py

Download repos into repos/ (requires repo.db):

python3 download.py

Setting up repos.db charts table:

python3 search.py

Setting up the frontend

wget https://github.com/Whazor/k8s-at-home-search/releases/latest/download/repos.db.zz -P frontend/public/
wget https://github.com/Whazor/k8s-at-home-search/releases/latest/download/repos-extended.db.zz -P frontend/public/

cd frontend/
yarn install
yarn run dev

tables

repo

column name repo_name url branch stars
value text primary key text text integer
example user-reponame "https://github.com/user/reponame" main/master/... 42

flux_helm_release

column name chart_name repo_name url hajimari_icon timestamp
value text text text text null integer
example plex user-reponame "https://github.com/user/reponame/.../../traefik/helm-release.yaml" tv 1644404532