{"id":15192037,"url":"https://github.com/kamiazya/kubebuilder-playground","last_synced_at":"2026-02-12T10:06:13.303Z","repository":{"id":52415924,"uuid":"218055227","full_name":"kamiazya/kubebuilder-playground","owner":"kamiazya","description":"Playground that develops custom resource definition of k8s with kubebuilder.","archived":false,"fork":false,"pushed_at":"2023-02-25T00:10:31.000Z","size":94,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-20T06:30:49.909Z","etag":null,"topics":["golang","k8s","k8s-crd","kubebuilder","playground"],"latest_commit_sha":null,"homepage":"","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/kamiazya.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},"funding":{"github":"kamiazya","patreon":null,"open_collective":"kamiazya","ko_fi":"kamiazya","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2019-10-28T13:39:13.000Z","updated_at":"2022-02-16T14:54:21.000Z","dependencies_parsed_at":"2024-06-19T16:12:32.386Z","dependency_job_id":"4a2d4719-a0f4-4b56-b7cf-f407854312b8","html_url":"https://github.com/kamiazya/kubebuilder-playground","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kamiazya/kubebuilder-playground","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamiazya%2Fkubebuilder-playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamiazya%2Fkubebuilder-playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamiazya%2Fkubebuilder-playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamiazya%2Fkubebuilder-playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kamiazya","download_url":"https://codeload.github.com/kamiazya/kubebuilder-playground/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamiazya%2Fkubebuilder-playground/sbom","scorecard":{"id":548733,"data":{"date":"2025-08-11","repo":{"name":"github.com/kamiazya/kubebuilder-playground","commit":"971aa6ffec1eb0e17085910ada3981bfa936ac0f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.2,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/9 approved changesets -- score normalized to 0","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":"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":"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":"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: Dockerfile:2","Warn: containerImage not pinned by hash: Dockerfile:22: pin your Docker image by updating gcr.io/distroless/static:nonroot to gcr.io/distroless/static:nonroot@sha256:cdf4daaf154e3e27cfffc799c16f343a384228f38646928a1513d925f473cb46","Info:   0 out of   2 containerImage 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":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"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":"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":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0965 / GHSA-74fp-r6jw-h4mp","Warn: Project is vulnerable to: GO-2024-2748 / GHSA-33c5-9fx5-fvjm"],"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-20T10:13:08.725Z","repository_id":52415924,"created_at":"2025-08-20T10:13:08.725Z","updated_at":"2025-08-20T10:13:08.725Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29363010,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"last_error":"SSL_read: 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":["golang","k8s","k8s-crd","kubebuilder","playground"],"created_at":"2024-09-27T21:02:42.897Z","updated_at":"2026-02-12T10:06:13.287Z","avatar_url":"https://github.com/kamiazya.png","language":"Go","funding_links":["https://github.com/sponsors/kamiazya","https://opencollective.com/kamiazya","https://ko-fi.com/kamiazya"],"categories":[],"sub_categories":[],"readme":"# kubebuilder-playground\n\nPlayground that develops custom resource definition of k8s with [kubebuilder](https://book.kubebuilder.io).\n\n## Commands\n\n### Install CRD\n\nInstall k8s CRD by using [kustomize](https://kustomize.io).\n\n```bash\n$ make install\n${GOPATH}/bin//controller-gen \"crd:trivialVersions=true\" rbac:roleName=manager-role webhook paths=\"./...\" output:crd:artifacts:config=config/crd/bases\nkustomize build config/crd | kubectl apply -f -\ncustomresourcedefinition.apiextensions.k8s.io/guestbooks.webapp.kubebuilder.kamiazya.tech created\n```\n\n### Create project\n\n```bash\nkubebuilder init --domain  kubebuilder.kamiazya.tech\n```\n\n### Create API\n\n```bash\nkubebuilder create api --group webapp --version v1 --kind Guestbook\n```\n\n### Apply Sample Resource\n\n```bash\n# apply\n$ kubectl apply -f config/samples/webapp_v1_guestbook.yaml\nguestbook.webapp.kubebuilder.kamiazya.tech/guestbook-sample created\n```\n\n### Start Development\n\n```bash\n$ make run\n${GOPATH}/bin/controller-gen object:headerFile=./hack/boilerplate.go.txt paths=\"./...\"\ngo fmt ./...\ngo vet ./...\n${GOPATH}/bin//controller-gen \"crd:trivialVersions=true\" rbac:roleName=manager-role webhook paths=\"./...\" output:crd:artifacts:config=config/crd/bases\ngo run ./main.go\n2019-10-29T20:57:32.772+0900    INFO    controller-runtime.metrics      metrics server is starting to listen    {\"addr\": \":8080\"}\n2019-10-29T20:57:32.772+0900    INFO    controller-runtime.controller   Starting EventSource    {\"controller\": \"guestbook\", \"source\": \"kind source: /, Kind=\"}\n2019-10-29T20:57:32.772+0900    INFO    setup   starting manager\n2019-10-29T20:57:32.772+0900    INFO    controller-runtime.manager      starting metrics server {\"path\": \"/metrics\"}\n2019-10-29T20:57:32.874+0900    INFO    controller-runtime.controller   Starting Controller     {\"controller\": \"guestbook\"}\n2019-10-29T20:57:32.974+0900    INFO    controller-runtime.controller   Starting workers        {\"controller\": \"guestbook\", \"worker count\": 1}\n2019-10-29T20:58:55.574+0900    DEBUG   controller-runtime.controller   Successfully Reconciled {\"controller\": \"guestbook\", \"request\": \"default/guestbook-sample\"}\n...\n```\n\n`Ctrl + C` to stop.\n\n### Get and Describe Resource\n\n```bash\n# get\n$ kubectl get guestbook\nNAME               AGE\nguestbook-sample   2m47s\n$ kubectl describe guestbook guestbook-sample\nName:         guestbook-sample\nNamespace:    default\nLabels:       \u003cnone\u003e\nAnnotations:  kubectl.kubernetes.io/last-applied-configuration:\n                {\"apiVersion\":\"webapp.kubebuilder.kamiazya.tech/v1\",\"kind\":\"Guestbook\",\"metadata\":{\"annotations\":{},\"name\":\"guestbook-sample\",\"namespace\":...\nAPI Version:  webapp.kubebuilder.kamiazya.tech/v1\nKind:         Guestbook\nMetadata:\n  Creation Timestamp:  2019-10-29T11:58:55Z\n  Generation:          1\n  Resource Version:    100219\n  Self Link:           /apis/webapp.kubebuilder.kamiazya.tech/v1/namespaces/default/guestbooks/guestbook-sample\n  UID:                 57d25e09-2a8f-40ad-9bd5-5444a610f23c\nSpec:\n  Foo:   bar\nEvents:  \u003cnone\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamiazya%2Fkubebuilder-playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkamiazya%2Fkubebuilder-playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamiazya%2Fkubebuilder-playground/lists"}