{"id":20098904,"url":"https://github.com/jagedn/swagger-operator","last_synced_at":"2026-05-13T03:05:47.232Z","repository":{"id":186299159,"uuid":"634653459","full_name":"jagedn/swagger-operator","owner":"jagedn","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-30T20:20:07.000Z","size":128,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-13T04:08:09.187Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Groovy","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/jagedn.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}},"created_at":"2023-04-30T20:18:38.000Z","updated_at":"2023-04-30T20:20:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"b491dcb0-b146-49d6-bfc6-64b98990bd0a","html_url":"https://github.com/jagedn/swagger-operator","commit_stats":null,"previous_names":["jagedn/swagger-operator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jagedn%2Fswagger-operator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jagedn%2Fswagger-operator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jagedn%2Fswagger-operator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jagedn%2Fswagger-operator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jagedn","download_url":"https://codeload.github.com/jagedn/swagger-operator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241541360,"owners_count":19979117,"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-13T17:07:09.036Z","updated_at":"2026-05-13T03:05:42.210Z","avatar_url":"https://github.com/jagedn.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Swagger-Operator\n\n## Cluster local\n\n`docker run -d --name registry.localhost --restart=always -v $HOME/registry:/var/lib/registry -p 5000:5000 registry`\n\n./etc/docker/daemon.json\n```\n{\n    \"debug\": true,\n    \"experimental\": false,\n    \"insecure-registries\": [\n        \"registry.localhost:5000\"\n    ],\n    \"registry-mirrors\": [\n        \"https://registry-1.docker.io\"\n    ]\n}\n```\n\n`k3d cluster create my-local --port 9999:80@loadbalancer -v $HOME/k3d-registries.yaml:/etc/rancher/k3s/registries.yaml`\n\n`docker network connect k3d-my-local registry.localhost`\n\n## Build\n\nDesde service-example:\n\n`./gradlew jib`\n\nDesde swagger-operator:\n\n`./gradlew jib`\n\n\n## Deploy examples\n\n`kubectl apply -f service-example/service-1.yml`\n\n`kubectl apply -f service-example/service-2.yml`\n\n## Deploy swagger (para validar)\n\n`kubectl apply -f service-example/swagger-ui.yml  -f service-example/swagger-ui-service.yml`\n\nValidar swagger en `http://localhost:9999/swagger-ui/` se ven service1 y service2\n\nUna vez validado borrar swagger-ui\n\n`kubectl delete -f service-example/swagger-ui.yml`\n\n## Deploy operator\n\n`kubectl apply -f swagger-operator/src/k8s/crd.yml`\n\n`kubectl apply -f swagger-operator/src/k8s/operator-roles.yml`\n\n`kubectl apply -f swagger-operator/src/k8s/deployment.yml`\n\n`kubectl apply -f swagger-operator/src/k8s/operator-example.yml`\n\nValidar swagger en `http://localhost:9999/swagger-ui/` se ven service1 y service2\n\nEliminar un servicio:\n\n`kubectl delete -f service-example/service-2.yml`\n\nEsperar 10 segundos y refrescar navegador, debería aparecer solo service1\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjagedn%2Fswagger-operator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjagedn%2Fswagger-operator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjagedn%2Fswagger-operator/lists"}