{"id":22398869,"url":"https://github.com/schubergphilis/cue-kube-tenant","last_synced_at":"2025-06-28T00:02:55.998Z","repository":{"id":187217050,"uuid":"676489887","full_name":"schubergphilis/cue-kube-tenant","owner":"schubergphilis","description":"Timoni/CUE backed module for Tenant K8s object generation.","archived":false,"fork":false,"pushed_at":"2023-08-09T16:21:10.000Z","size":249,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-06-13T22:41:23.154Z","etag":null,"topics":["cue","kubernetes"],"latest_commit_sha":null,"homepage":"","language":"CUE","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/schubergphilis.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-09T10:12:11.000Z","updated_at":"2023-09-14T08:43:49.000Z","dependencies_parsed_at":"2025-02-01T05:32:44.470Z","dependency_job_id":null,"html_url":"https://github.com/schubergphilis/cue-kube-tenant","commit_stats":null,"previous_names":["schubergphilis/cue-kube-tenant"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/schubergphilis/cue-kube-tenant","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schubergphilis%2Fcue-kube-tenant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schubergphilis%2Fcue-kube-tenant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schubergphilis%2Fcue-kube-tenant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schubergphilis%2Fcue-kube-tenant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schubergphilis","download_url":"https://codeload.github.com/schubergphilis/cue-kube-tenant/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schubergphilis%2Fcue-kube-tenant/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262352484,"owners_count":23297680,"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":["cue","kubernetes"],"created_at":"2024-12-05T07:12:33.738Z","updated_at":"2025-06-28T00:02:55.969Z","avatar_url":"https://github.com/schubergphilis.png","language":"CUE","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tenant\n\nModule used to quickly generate K8s Tenants using [CUE](https://cuelang.org/) and [Timoni](https://timoni.sh/).\n\n## Values\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| name | `string` | n/a | yes |\n| annotations | Annotations to be added to the K8s objects | `{[string]: string}` | `{}` | yes |\n| role | Currently only admin and namespace-admin are supported | `string` | `namespace-admin` | no |\n| gitopsAgent | Create objects for gitops agent, currently only fluxV2(GitSource + Kustomization) is supported. | `string` | `\"\"` | no\u003cbr\u003eSupported: [flux](https://fluxcd.io/) |\n| git | Needs to be configured with gitopsAgent | `{[string]: string}`| \u003cpre\u003egit: {\u003cbr\u003eurl: \"\"\u003cbr\u003e branch: \"\"\u003cbr\u003epath: \"\"\u003cbr\u003einterval: \"5m\"\u003cbr\u003etimeout: \"1m\"\u003cbr\u003eprune: true\u003cbr\u003e}\u003c/pre\u003e | Only with gitopsAgent\u003cbr\u003e For flux see [here](https://fluxcd.io/flux/components/kustomize/kustomization/) and [here](https://fluxcd.io/flux/components/source/gitrepositories/#working-with-gitrepositories) |\n| slack |  Needs to be configured with gitopsAgent |`{[string]: string}` | \u003cpre\u003eslack: {\u003cbr\u003eenabled: false\u003cbr\u003echannel: \"\"\u003cbr\u003esecretName: \"\"\u003cbr\u003esummary: \"\"\u003cbr\u003e}\u003c/pre\u003e | Only with gitopsAgent\u003cbr\u003eFor Flux [see](https://fluxcd.io/flux/guides/notifications/) |\n| metadata: labels | Overwrite labels | `\"app.kubernetes.io/tenant\": metadata.name` | `{} ` | no |\n\n\n## Example usage\n\n```cue\n// tenants.cue\n_module: {\n\turl:     \"oci://ghcr.io/schubergphilis/cue-modules/tenant\"\n\tversion: \"0.0.1\"\n}\n\n_common_values: {// set common_values\n\tgitopsAgent: \"flux\"\n\tgit: {\n\t\turl:      \"ssh://git@testgit.com/test-repo.git\"\n\t\tbranch:   \"main\"\n\t\tinterval: \"5m\"\n\t}\n}\n\nbundle: {\n\tapiVersion: \"v1alpha1\"\n\tname:       \"tenants\"\n\tinstances: {// each instances can present a tenant\n\t\tfrontend: {\n\t\t\tmodule:    _module\n\t\t\tnamespace: \"frontend\"\n\t\t\tvalues:    _common_values\n\t\t\tvalues: role: \"admin\"\n\t\t\tvalues: name: \"frontend-team\"\n\t\t\tvalues: git: path: \"./frontend\"\n\t\t}\n\t\tbackend: {\n\t\t\tmodule:    _module\n\t\t\tnamespace: \"backend\"\n\t\t\tvalues:    _common_values // reuse common values\n\t\t\tvalues: {\n\t\t\t\tname: \"backend-team\"\n\t\t\t\trole: \"cluster-admin\"\n\t\t\t\tgit: path: \"./backend\"\n\t\t\t}\n\t\t}\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschubergphilis%2Fcue-kube-tenant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschubergphilis%2Fcue-kube-tenant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschubergphilis%2Fcue-kube-tenant/lists"}