{"id":21006249,"url":"https://github.com/derlin/josdk-operator-dependent-crs","last_synced_at":"2026-05-01T05:36:51.532Z","repository":{"id":61234427,"uuid":"533225942","full_name":"derlin/josdk-operator-dependent-crs","owner":"derlin","description":"Little example of a java operator with three layers of dependent CRs","archived":false,"fork":false,"pushed_at":"2023-01-13T06:24:51.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-20T10:31:05.023Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/derlin.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}},"created_at":"2022-09-06T08:15:03.000Z","updated_at":"2024-06-22T02:43:48.000Z","dependencies_parsed_at":"2023-02-09T14:46:20.952Z","dependency_job_id":null,"html_url":"https://github.com/derlin/josdk-operator-dependent-crs","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/derlin%2Fjosdk-operator-dependent-crs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derlin%2Fjosdk-operator-dependent-crs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derlin%2Fjosdk-operator-dependent-crs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derlin%2Fjosdk-operator-dependent-crs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/derlin","download_url":"https://codeload.github.com/derlin/josdk-operator-dependent-crs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243428421,"owners_count":20289315,"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-19T08:50:04.814Z","updated_at":"2025-12-29T05:49:27.730Z","avatar_url":"https://github.com/derlin.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JoSDK Operator Example with three layers dependent resources\n\nThis is a reproducible example of https://github.com/java-operator-sdk/java-operator-sdk/issues/1437.\n\nCheck the branches, as there may be multiple tests / proposed implementations:\n* `config-cacher` branch: first try, using two reconcilers (one for config and one for db). The config is put in an application\n  cache. Problem: the cache is not always up-to-date, as db can be reconciled before configs.\n* `primary-indexer`: a test based on the primary-indexer examples on JOSDK, but this doesn't work.\n* `main`: previously called `primary-to-secondary`, the implementation that is for now working the best.\n\nComments may be added as issues to this repo.\n\n## Samples\n\nYou can find example of CRs / secrets in `samples/` directory.\nThere is also some helm charts that can be used to create many CRs.\n\nCreate a default config (**IMPORTANT** you need to change the namespace on the samples first !!!):\n```bash\n# create a credentials secret and a default config once\nkubectl apply -f samples/credentials-secret.yaml\nkubectl apply -f samples/config.v1.yaml\n```\n\nDeploy or scale db CRs:\n```bash\n# create one db\nhelm install dbs helm-test/dbs --set num=1\n# scale it to 10\nhelm upgrade dbs helm-test/dbs --set num=10\n# scale it down to 3\nhelm upgrade dbs helm-test/dbs --set num=3\n# ...\n# delete\nhelm uninstall dbs helm-test/dbs\n```\n\nThe same can be done with the `helm-test/configs` helm Chart (which uses the `credentials-secret`) by default.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderlin%2Fjosdk-operator-dependent-crs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderlin%2Fjosdk-operator-dependent-crs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderlin%2Fjosdk-operator-dependent-crs/lists"}