{"id":16573362,"url":"https://github.com/zoomoid/kubeconfig-operator","last_synced_at":"2025-10-29T04:30:46.650Z","repository":{"id":58588749,"uuid":"532307381","full_name":"zoomoid/kubeconfig-operator","owner":"zoomoid","description":"A Kubernetes Operator made with operator-sdk for automatically creating Kubeconfigs for additional users","archived":false,"fork":false,"pushed_at":"2024-08-16T07:31:00.000Z","size":7539,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-16T08:43:43.235Z","etag":null,"topics":["go","hacktoberfest"],"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/zoomoid.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":"2022-09-03T16:00:33.000Z","updated_at":"2024-08-16T07:30:57.000Z","dependencies_parsed_at":"2024-04-22T03:44:01.093Z","dependency_job_id":"c4951832-704e-4f87-a253-2b91136ee487","html_url":"https://github.com/zoomoid/kubeconfig-operator","commit_stats":{"total_commits":70,"total_committers":2,"mean_commits":35.0,"dds":"0.41428571428571426","last_synced_commit":"ad07da7dba01439633ad7265ae222c220d77fa51"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoomoid%2Fkubeconfig-operator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoomoid%2Fkubeconfig-operator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoomoid%2Fkubeconfig-operator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoomoid%2Fkubeconfig-operator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zoomoid","download_url":"https://codeload.github.com/zoomoid/kubeconfig-operator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219858508,"owners_count":16556043,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["go","hacktoberfest"],"created_at":"2024-10-11T21:41:59.296Z","updated_at":"2025-10-29T04:30:41.339Z","avatar_url":"https://github.com/zoomoid.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kubeconfig-operator\n\nThe Kubeconfig operator is meant to ease generation of Kubeconfig files for users of the cluster. Cluster-admins can create a\ncustom resource `Kubeconfig`, and the operator will handle the steps required to create a fully-signed and bound kubeconfig\nYAML to be delivered to the new cluster user (because some of the steps can get a bit tedious, like handling OpenSSL certificate signing\nrequests by hand).\n\n## Description\n\nThe operator consists of a Custom Resource Definition for the Kubeconfig request, and two controllers.\n\nThe custom resource serves as a request for a new Kubeconfig, which on top of all includes a username.\nYou can also add further configuration, such as toggling auto-approval and selecting other parameters for the certificate\nrequest. Have a look at `./config/samples` for some example Kubeconfigs.\n\nThe first controller reconciles all Kubeconfig custom resources, and acts as the manager of the workflow. It creates secrets, certificate signing\nrequests and cluster role bindings for the Kubeconfig object and is the owner of all created resources such that garbage collection works as expected. The second controller reconciles all certificate signing requests and auto-approves requests\nthat where annotated to be automatically approved.\n\n## Getting Started\n\nYou’ll need a Kubernetes cluster to run against. You can use [KIND](https://sigs.k8s.io/kind) to get a local cluster for testing, or run against a remote cluster.\n**Note:** Your controller will automatically use the current context in your kubeconfig file (i.e. whatever cluster `kubectl cluster-info` shows).\n\n### Running on the cluster\n\n1. Install Instances of Custom Resources:\n\n```sh\nkubectl apply -f config/samples/\n```\n\n2. Build and push your image to the location specified by `IMG`:\n\n```sh\nmake docker-build docker-push IMG=\u003csome-registry\u003e/kubeconfig-operator:tag\n```\n\n3. Deploy the controller to the cluster with the image specified by `IMG`:\n\n```sh\nmake deploy IMG=\u003csome-registry\u003e/kubeconfig-operator:tag\n```\n\n### Uninstall CRDs\n\nTo delete the CRDs from the cluster:\n\n```sh\nmake uninstall\n```\n\n### Undeploy controller\n\nUnDeploy the controller to the cluster:\n\n```sh\nmake undeploy\n```\n\n## Contributing\n\nContribution is welcome, and I'm up for any feature requests. Just fork the project and open a pull request with an accompanying issue\nmarked accordingly.\n\n### How it works\n\nThis project aims to follow the Kubernetes [Operator pattern](https://kubernetes.io/docs/concepts/extend-kubernetes/operator/)\n\nIt uses [Controllers](https://kubernetes.io/docs/concepts/architecture/controller/)\nwhich provides a reconcile function responsible for synchronizing resources untile the desired state is reached on the cluster\n\n### Test It Out\n\n1. Install the CRDs into the cluster:\n\n```sh\nmake install\n```\n\n2. Run your controller (this will run in the foreground, so switch to a new terminal if you want to leave it running):\n\n```sh\nmake run\n```\n\n**NOTE:** You can also run this in one step by running: `make install run`\n\n### Modifying the API definitions\n\nIf you are editing the API definitions, generate the manifests such as CRs or CRDs using:\n\n```sh\nmake manifests\n```\n\n**NOTE:** Run `make --help` for more information on all potential `make` targets\n\nMore information can be found via the [Kubebuilder Documentation](https://book.kubebuilder.io/introduction.html)\n\n## License\n\nCopyright 2022 zoomoid.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoomoid%2Fkubeconfig-operator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzoomoid%2Fkubeconfig-operator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoomoid%2Fkubeconfig-operator/lists"}