{"id":23757566,"url":"https://github.com/scientanl/k8s-test","last_synced_at":"2026-01-24T08:31:40.360Z","repository":{"id":45147131,"uuid":"292871769","full_name":"ScientaNL/k8s-test","owner":"ScientaNL","description":"k8s-test","archived":false,"fork":false,"pushed_at":"2023-05-16T08:39:12.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-01T12:32:54.408Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ScientaNL.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,"zenodo":null}},"created_at":"2020-09-04T14:41:52.000Z","updated_at":"2022-01-05T09:09:30.000Z","dependencies_parsed_at":"2025-05-26T12:32:56.260Z","dependency_job_id":null,"html_url":"https://github.com/ScientaNL/k8s-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ScientaNL/k8s-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScientaNL%2Fk8s-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScientaNL%2Fk8s-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScientaNL%2Fk8s-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScientaNL%2Fk8s-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ScientaNL","download_url":"https://codeload.github.com/ScientaNL/k8s-test/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScientaNL%2Fk8s-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28720755,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T08:27:05.734Z","status":"ssl_error","status_checked_at":"2026-01-24T08:27:01.197Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2024-12-31T19:49:04.351Z","updated_at":"2026-01-24T08:31:40.341Z","avatar_url":"https://github.com/ScientaNL.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# k8s-test\nK8s-test is een container om scienta helm-files op syntax te testen (dus zonder k8s test-deploy).\nHiervoor wordt [helm v2](https://v2.helm.sh/docs/) en [kubeval](https://www.kubeval.com/) gebruikt.\n\n## toolset\nIn deze container zitten de volgende tools:\n- [helm v2](https://v2.helm.sh/docs/)\n- [kubeval](https://www.kubeval.com/)\n- [scienta-helm-versioning](https://github.com/ScientaNL/scienta-helm-versioning) (php-code)\n- [kube-score](https://github.com/zegl/kube-score) (nu nog ongebruikt)\n\n## gebruik van helm\nHelm kan zonder k8s-cluster gebruikt worden om de yaml-files in combinatie met de values te renderen.\nDit doe je met het [`helm template`](https://v2.helm.sh/docs/helm/#helm-template) commando.\nDe output wordt dan naar `stdout` geschreven waarna het gepiped kan worden naar een andere tool.\n\nAangezien de scienta repo helm templates heeft die geprepareerd moeten worden \nmet `scienta-helm-versioning` (Harmens obscure tooltje) voor ze door helm geparsed kunnen worden \nis deze parse-stap eerst nodig.\n\nHet idee is dat de ongeparste scienta helm-files in `/helmsource` gemount worden en dan naar \nde WORKDIR `/helmfiles` ge-output worden waar de door helm gerenderd kunnen worden.\n\nOm het parsen met php en `helm template` gecombineerd te draaien \nis een shell-script: `./parse-helm-template` gemaakt. \n\nDit maakt o.a. de volgende commando's beschikbaar vanuit `/helmfiles` (de workdir):\n- `./parse-helm-template` \n    - Parse en run `helm template` (output hemlfiles naar stdout)\n- `./parse-helm-template | kubeval -v $K8S_VERSION --strict -`\n    - Pipe helm-files naar kubeval en test ze\n- `./parse-helm-template -x templates/configmap/nginx.cm.yaml --debug`\n    - Parse en output 1 gegenereerde helm-file naar stdout (in debug mode)\n\n`./parse-helm-template` is een alias voor:\n```shell script\nphp /scienta-helm-versioning/bin/convert-versions.php convert -s$CHART_SUFFIX -c$COMMIT_SHA -- /helmsource /helmfiles $CHART_VERSION $SCIENTA_VERSION 1\u003e/dev/null \\\n\u0026\u0026 helm template /helmfiles/scienta$CHART_SUFFIX/v$CHART_VERSION\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscientanl%2Fk8s-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscientanl%2Fk8s-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscientanl%2Fk8s-test/lists"}