{"id":16766371,"url":"https://github.com/joyrex2001/envinit-operator","last_synced_at":"2026-05-22T14:14:53.333Z","repository":{"id":147690598,"uuid":"233062062","full_name":"joyrex2001/envinit-operator","owner":"joyrex2001","description":"This is an example operator that watches creation of namespaces, and runs an additional kustomize run for given type of environment.","archived":false,"fork":false,"pushed_at":"2020-06-20T14:57:41.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-23T00:28:49.137Z","etag":null,"topics":["kubernetes","kustomize","operator"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/joyrex2001.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":"2020-01-10T14:18:02.000Z","updated_at":"2022-07-29T06:01:06.000Z","dependencies_parsed_at":"2023-06-27T16:20:38.415Z","dependency_job_id":null,"html_url":"https://github.com/joyrex2001/envinit-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/joyrex2001%2Fenvinit-operator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joyrex2001%2Fenvinit-operator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joyrex2001%2Fenvinit-operator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joyrex2001%2Fenvinit-operator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joyrex2001","download_url":"https://codeload.github.com/joyrex2001/envinit-operator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243871652,"owners_count":20361378,"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":["kubernetes","kustomize","operator"],"created_at":"2024-10-13T06:06:09.396Z","updated_at":"2026-05-22T14:14:48.288Z","avatar_url":"https://github.com/joyrex2001.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# envinit-operator\n\nThis operator will watch namespace add events. If the namespace contains the annotation ```envinit.joyrex2001.com/type``` it will run the ```run.sh``` shell script in the environment folder for that type. In this example it will do an additional kustomize run.\n\nTo install this operator;\n```bash\nkubectl create namespace operator-envinit\nkustomize build kustomize | kubectl apply -f -\n```\n\n## Create a new namespace\n\nTo trigger the operator to provision the environment with the annotation as below. This will trigger the ```environment/dev/run.sh``` script to be executed.\n\n```yaml\napiVersion: v1\nkind: Namespace\nmetadata:\n  name: example-environment\n  annotations:\n    \"envinit.joyrex2001.com/type\": \"dev\"\n```\n\n## See also\n\n* https://github.com/flant/shell-operator\n* https://www.hcs-company.com/blog/operator-automatiseren-namespace-openshift\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoyrex2001%2Fenvinit-operator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoyrex2001%2Fenvinit-operator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoyrex2001%2Fenvinit-operator/lists"}