{"id":18463868,"url":"https://github.com/smartive/hosted-database-operator","last_synced_at":"2025-04-08T07:32:49.984Z","repository":{"id":40307548,"uuid":"262285336","full_name":"smartive/hosted-database-operator","owner":"smartive","description":"Kubernetes operator that provides and orchestrates databases on database servers","archived":true,"fork":false,"pushed_at":"2024-01-19T03:59:36.000Z","size":136,"stargazers_count":2,"open_issues_count":12,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-05T18:12:35.540Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/smartive.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}},"created_at":"2020-05-08T09:45:59.000Z","updated_at":"2024-01-22T15:12:59.000Z","dependencies_parsed_at":"2023-09-25T01:47:52.464Z","dependency_job_id":"942952bb-e905-41d0-96a8-8f7504e4f750","html_url":"https://github.com/smartive/hosted-database-operator","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartive%2Fhosted-database-operator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartive%2Fhosted-database-operator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartive%2Fhosted-database-operator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartive%2Fhosted-database-operator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smartive","download_url":"https://codeload.github.com/smartive/hosted-database-operator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247796349,"owners_count":20997553,"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":[],"created_at":"2024-11-06T09:08:11.878Z","updated_at":"2025-04-08T07:32:49.700Z","avatar_url":"https://github.com/smartive.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hosted Database Operator\n\nThis is a Kubernetes Operator that manages databases on DB-Servers.\n\nThere are three CRDs that get installed:\n\n- `ClusterDatabaseHost`: Defines access (with a secret) to a\n  database server (currently MySql and Postgres supported)\n- `HostedDatabase`: Defines an instance of a database\n  on a host\n- `DanglingDatabase`: When a hosted database gets deleted\n  and the \"OnDelete\" action is to create a dangling database,\n  this element gets created by the operator. When the dangling DB\n  is deleted, the real database gets deleted as well.\n\nThis Operator can create users with passwords with a database\non MySql and PostgreSQL servers. It creates a secret with\nthe access data to the specific database.\n\n## Example\n\n1. Create the database host.\n\n```yaml\napiVersion: v1\nkind: Secret\nmetadata:\n  name: mysql-host-credentials\n  namespace: default\nstringData:\n  username: root\n  password: MySuperSecretPassword\n---\napiVersion: hdo.smartive.ch/v2\nkind: ClusterDatabaseHost\nmetadata:\n  name: test-mysql-host\nspec:\n  type: MySql\n  host: 127.0.0.1\n  port: 3306\n  credentialsSecret:\n    name: mysql-host-credentials\n    namespace: default\n```\n\nAfter the host is created, a database can be instantiated:\n\n```yaml\napiVersion: hdo.smartive.ch/v2\nkind: HostedDatabase\nmetadata:\n  name: test-mysql-db\n  namespace: default\nspec:\n  host: test-mysql-host\n```\n\nWhen the HostedDatabase is deleted, the default operation of the\nOperator is to create a dangling database. With a recreate of\nthe hosted database, the db remains the same. If the dangling database\nis deleted as well, the data is lost.\n\nIt works on MySql \u003e 5.7 and PostgreSQL \u003e 9.2 (tested).\n\n## Installation\n\nTo install the operator, you may use the Kustomize files in\n`./src/HostedDatabaseOperator/config`. The simplest way is\nto use the `kustomization.yaml` in the `install` subdirectory.\n\nAn example file that installs the operator into the\npredefined namespace (`hosted-database-operator-system`)\nwould be:\n\n```yaml\napiVersion: kustomize.config.k8s.io/v1beta1\nkind: Kustomization\n\nnamespace: hosted-database-operator-system\n\nresources:\n  - github.com/smartive/hosted-database-operator/src/HostedDatabaseOperator/config/install?ref=v2.0.0\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartive%2Fhosted-database-operator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmartive%2Fhosted-database-operator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartive%2Fhosted-database-operator/lists"}