{"id":13839359,"url":"https://github.com/tkestack/cron-hpa","last_synced_at":"2026-03-12T05:35:30.227Z","repository":{"id":49987430,"uuid":"226057587","full_name":"tkestack/cron-hpa","owner":"tkestack","description":"Cron Horizontal Pod Autoscaler(CronHPA) ","archived":false,"fork":false,"pushed_at":"2023-05-11T20:38:43.000Z","size":7128,"stargazers_count":60,"open_issues_count":6,"forks_count":12,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-07-04T11:48:58.222Z","etag":null,"topics":["hpa","kubernetes"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tkestack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2019-12-05T08:53:03.000Z","updated_at":"2025-06-09T14:29:29.000Z","dependencies_parsed_at":"2024-01-20T22:00:32.239Z","dependency_job_id":null,"html_url":"https://github.com/tkestack/cron-hpa","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/tkestack/cron-hpa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkestack%2Fcron-hpa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkestack%2Fcron-hpa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkestack%2Fcron-hpa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkestack%2Fcron-hpa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tkestack","download_url":"https://codeload.github.com/tkestack/cron-hpa/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkestack%2Fcron-hpa/sbom","scorecard":{"id":888875,"data":{"date":"2025-08-11","repo":{"name":"github.com/tkestack/cron-hpa","commit":"16e15c02f191de6fbbcc675e5cd081a1248cb795"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.9,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":3,"reason":"Found 3/8 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: build/docker/Dockerfile_arch:17","Warn: containerImage not pinned by hash: build/docker/Dockerfile_arch:28: pin your Docker image by updating alpine:3.10 to alpine:3.10@sha256:451eee8bedcb2f029756dc3e9d73bab0e7943c1ac55cff3a4861c52a0fdd3e98","Warn: goCommand not pinned by hash: hack/build-image.sh:21","Info:   0 out of   2 containerImage dependencies pinned","Info:   0 out of   1 goCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 10 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"39 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2021-0072 / GHSA-h62f-wm92-2cmw","Warn: Project is vulnerable to: GO-2022-0379 / GHSA-qq97-vm5h-rrhg","Warn: Project is vulnerable to: GHSA-hqxw-f8mx-cpmw","Warn: Project is vulnerable to: GO-2022-0322 / GHSA-cg3q-j54f-5p7p","Warn: Project is vulnerable to: GO-2023-2153 / GHSA-m425-mq94-257g / GHSA-qppj-fm5r-hxr3","Warn: Project is vulnerable to: GO-2024-2631 / GHSA-c5q2-7r4c-mv6g","Warn: Project is vulnerable to: GO-2022-0965 / GHSA-74fp-r6jw-h4mp","Warn: Project is vulnerable to: GO-2024-2748 / GHSA-33c5-9fx5-fvjm","Warn: Project is vulnerable to: GHSA-82hx-w2r5-c2wq","Warn: Project is vulnerable to: GO-2021-0065 / GHSA-jmrx-5g74-6v2f","Warn: Project is vulnerable to: GO-2021-0064 / GHSA-8cfg-vx93-jvxw","Warn: Project is vulnerable to: GO-2022-0890 / GHSA-x6mj-w4jf-jmgw","Warn: Project is vulnerable to: GO-2022-0885 / GHSA-wqv3-8cm6-h6wg","Warn: Project is vulnerable to: GO-2021-0066 / GHSA-8mjg-8c8g-6h85","Warn: Project is vulnerable to: GO-2024-2753","Warn: Project is vulnerable to: GO-2022-0907 / GHSA-g42g-737j-qx6j","Warn: Project is vulnerable to: GO-2024-2754","Warn: Project is vulnerable to: GO-2024-2755","Warn: Project is vulnerable to: GO-2022-0910 / GHSA-f5f7-6478-qm6p","Warn: Project is vulnerable to: GO-2023-2159 / GHSA-35c7-w35f-xwgh","Warn: Project is vulnerable to: GO-2023-1864 / GHSA-xc8m-28vv-4pjc","Warn: Project is vulnerable to: GO-2023-1892 / GHSA-cgcv-5272-97pr","Warn: Project is vulnerable to: GO-2023-1891 / GHSA-qc2g-gmh6-95p4","Warn: Project is vulnerable to: GO-2023-2330 / GHSA-7fxm-f474-hf8w","Warn: Project is vulnerable to: GO-2023-2170 / GHSA-q78c-gwqw-jcmc","Warn: Project is vulnerable to: GO-2023-2341 / GHSA-hq6q-c2x6-hmch","Warn: Project is vulnerable to: GO-2022-0983 / GHSA-f9jg-8p32-2f55","Warn: Project is vulnerable to: GO-2024-3277 / GHSA-h7wq-jj8r-qm7p","Warn: Project is vulnerable to: GO-2024-2746 / GHSA-pxhw-596r-rwq5","Warn: Project is vulnerable to: GO-2024-2994 / GHSA-82m2-cv7p-4m75","Warn: Project is vulnerable to: GO-2024-3286 / GHSA-27wf-5967-98gx","Warn: Project is vulnerable to: GO-2025-3522 / GHSA-vv39-3w5q-974q","Warn: Project is vulnerable to: GO-2025-3465 / GHSA-jgfp-53c3-624w","Warn: Project is vulnerable to: GO-2025-3521 / GHSA-3wgm-2gw2-vh5m","Warn: Project is vulnerable to: GHSA-74j8-88mm-7496","Warn: Project is vulnerable to: GHSA-j9wf-vvm6-4r9w","Warn: Project is vulnerable to: GHSA-qh36-44jv-c8xj","Warn: Project is vulnerable to: GHSA-vw47-mr44-3jf9","Warn: Project is vulnerable to: GO-2025-3547"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T11:00:27.116Z","repository_id":49987430,"created_at":"2025-08-24T11:00:27.116Z","updated_at":"2025-08-24T11:00:27.116Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30416310,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T04:41:02.746Z","status":"ssl_error","status_checked_at":"2026-03-12T04:40:12.571Z","response_time":114,"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":["hpa","kubernetes"],"created_at":"2024-08-04T17:00:20.318Z","updated_at":"2026-03-12T05:35:30.195Z","avatar_url":"https://github.com/tkestack.png","language":"Go","funding_links":[],"categories":["Autoscaler"],"sub_categories":[],"readme":"# CronHPA\n\nCron Horizontal Pod Autoscaler(CronHPA) enables us to auto scale workloads(those support `scale` subresource, e.g. deployment, statefulset) periodically using [crontab](https://en.wikipedia.org/wiki/Cron) scheme.\n\n\n`CronHPA` example:\n\n```\napiVersion: extensions.tkestack.io/v1\nkind: CronHPA\nmetadata:\n  name: example-cron-hpa\nspec:\n  scaleTargetRef:\n    apiVersion: apps/v1\n    kind: Deployment\n    name: demo-deployment\n  crons:\n    - schedule: \"0 23 * * 5\"  // Set replicas to 60 every Friday 23:00\n      targetReplicas: 60\n    - schedule: \"0 23 * * 7\"  // Set replicas to 30 every Sunday 23:00\n      targetReplicas: 30\n```\n\nMore design ideas could be found at [design.md](./design.md).\n\n## Build\n\n``` sh\n$ make build\nor\n$ go build -o bin/cron-hpa-controller .\n```\n\n## Run\n\n```sh\n# assumes you have a working kubeconfig, not required if operating in-cluster\n# It will create CRD `CronHPA` by default.\n$ bin/cron-hpa-controller --master=127.0.0.1:8080 --v=5 --stderrthreshold=0   // Assume 127.0.0.1:8080 is k8s master ip:port\nor\n$ bin/cron-hpa-controller --kubeconfig=$HOME/.kube/config --v=5 --stderrthreshold=0\n\n# create a custom resource of type cron-hpa\n$ kubectl create -f artifacts/examples/example-cron-hpa.yaml\n\n# check pods created through the custom resource\n$ kubectl get cronhpa\n```\n\n## Cleanup\n\nYou can clean up the created CustomResourceDefinition with:\n\n    $ kubectl delete crd cronhpas.extensions.tkestack.io\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkestack%2Fcron-hpa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftkestack%2Fcron-hpa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkestack%2Fcron-hpa/lists"}