{"id":19186527,"url":"https://github.com/dexterposh/myplatform-operator","last_synced_at":"2026-04-21T10:02:28.948Z","repository":{"id":45990880,"uuid":"430374573","full_name":"DexterPOSH/myplatform-operator","owner":"DexterPOSH","description":"An attempt at creating an operator for an internal application hosting platform. It defines a Custom Resource called InhouseApp which takes simplified input and deploys the app to the cluster.","archived":false,"fork":false,"pushed_at":"2021-11-22T13:31:34.000Z","size":9534,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-04T05:36:39.013Z","etag":null,"topics":["k8s","k8s-operator-example"],"latest_commit_sha":null,"homepage":"","language":"Go","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/DexterPOSH.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}},"created_at":"2021-11-21T13:29:12.000Z","updated_at":"2023-05-29T07:52:57.000Z","dependencies_parsed_at":"2022-07-20T05:00:17.116Z","dependency_job_id":null,"html_url":"https://github.com/DexterPOSH/myplatform-operator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DexterPOSH%2Fmyplatform-operator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DexterPOSH%2Fmyplatform-operator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DexterPOSH%2Fmyplatform-operator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DexterPOSH%2Fmyplatform-operator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DexterPOSH","download_url":"https://codeload.github.com/DexterPOSH/myplatform-operator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240263005,"owners_count":19773721,"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":["k8s","k8s-operator-example"],"created_at":"2024-11-09T11:15:26.327Z","updated_at":"2026-04-21T10:02:28.843Z","avatar_url":"https://github.com/DexterPOSH.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MyPlatform Operator\n\nEventual goal is to build the MyPlatform operator in Go which abstracts an internal platform for hosting opnioniated applications.\n\n## Get Started\n\nInstall the Operator SDK, it has two components:\n- `operator-sdk` - CLI tool and SDK facilitates development of operators\n- `operator lifecycle manager` - Facilitates installation, upgrade \u0026 RBAC of operators on a cluster\n\nInstallation:\n- https://sdk.operatorframework.io/docs/installation/\n\n### Creating a project\n\nRun below to use the operator-skd cli to scaffold a project for developing the operator.\n\n```bash\n# Create a directory to store the operator\nmkdir -p $HOME/projects/myplatform-operator\n\n# switch to the directory created\ncd $HOME/projects/myplatform-operator\n\n# Force using Go modules\nexport GO111MODULE=on\n\n# Run the operator-sdk CLI to scaffold the project structure\noperator-sdk init --domain=dexterposh.github.io --repo=github.com/DexterPOSH/myplatform-operator --skip-go-version-check\n```\n\n\u003e The operator-sdk init command generates a go.mod file to be used with Go modules. The --repo flag is required when creating a project outside of $GOPATH/src/, because generated files require a valid module path.\n\n### PROJECT file\n\nOne important file of note is the PROJECT file. All the next commands we run use the information in this file.\n\n### Manager\n\nQuick look of the `main.go` file shows the code that initializes and runs the Manager. The manager is responsible for registering the scheme for all custom resource API definitions along with running controllers and webhooks.\n\n\n### Create an API \u0026 Controller\n\n```bash\n# Use the cli to boostrap the api and controller\noperator-sdk create api --group=myplatform --version=v1alpha1 --kind=InhouseApp\n```\n\nRun below to update the generated code whenever the *_types.go files are modified.\n\nUnder the hood below command runs the controller-gen utility to implement `runtime.Object` interface automatically for our type.\n\n\n```bash\nmake generate\n```\n\nBelow would generate the CRDs automatically\n\n```bash\nmake manifests\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdexterposh%2Fmyplatform-operator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdexterposh%2Fmyplatform-operator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdexterposh%2Fmyplatform-operator/lists"}