{"id":18363427,"url":"https://github.com/stuttgart-things/stagetime-creator","last_synced_at":"2026-04-29T20:34:45.865Z","repository":{"id":177564624,"uuid":"660544187","full_name":"stuttgart-things/stageTime-creator","owner":"stuttgart-things","description":"dynamic rendering and creation of k8s manifests/resources polled from redis streams/json","archived":false,"fork":false,"pushed_at":"2025-01-07T21:46:40.000Z","size":18738,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-01T00:25:53.541Z","etag":null,"topics":["golang","kubernetes","message-queue","redis","redis-streams","stagetime","stuttgart-things","template-engine","yaml"],"latest_commit_sha":null,"homepage":"","language":"Go","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/stuttgart-things.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-06-30T08:44:49.000Z","updated_at":"2023-09-03T03:55:26.000Z","dependencies_parsed_at":"2023-11-12T19:22:43.510Z","dependency_job_id":"f741c91f-0fb6-44ab-a030-53b32da1af32","html_url":"https://github.com/stuttgart-things/stageTime-creator","commit_stats":null,"previous_names":["stuttgart-things/sweatshop-creator","stuttgart-things/stagetime-creator"],"tags_count":101,"template":false,"template_full_name":null,"purl":"pkg:github/stuttgart-things/stageTime-creator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2FstageTime-creator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2FstageTime-creator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2FstageTime-creator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2FstageTime-creator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stuttgart-things","download_url":"https://codeload.github.com/stuttgart-things/stageTime-creator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2FstageTime-creator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32443563,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T20:22:27.477Z","status":"ssl_error","status_checked_at":"2026-04-29T20:22:26.507Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["golang","kubernetes","message-queue","redis","redis-streams","stagetime","stuttgart-things","template-engine","yaml"],"created_at":"2024-11-05T23:06:29.007Z","updated_at":"2026-04-29T20:34:45.848Z","avatar_url":"https://github.com/stuttgart-things.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stuttgart-things/stageTime-creator\n\ndynamic rendering and creation of k8s manifests/resources polled from redis streams/json\n\n## DEV-TASKS\n\n```bash\ntask --list: Available tasks for this project:\n* build:               Build the app\n* build-image:         Build image\n* git-push:            Commit \u0026 push the module\n* lint:                Lint code\n* package:             Update Chart.yaml and package archive\n* push:                Push to registry\n* release:             Build amd release to github w/ goreleaser\n* run:                 Run app\n* run-container:       Run container\n* run-test:            Run test-producer\n* tag:                 Commit, push \u0026 tag the module\n* test:                Test code\n```\n\n## HELMFILE-DEPLOYMENTS\n\n\u003cdetails\u003e\u003csummary\u003eSET VAULT CONNECTION\u003c/summary\u003e\n\n```bash\nexport VAULT_ADDR=https://${VAULT_FQDN}}\nexport VAULT_NAMESPACE=root\n\n# APPROLE AUTH\nexport VAULT_AUTH_METHOD=approle\nexport VAULT_ROLE_ID=${VAULT_ROLE_ID}\nexport VAULT_SECRET_ID=${VAULT_SECRET_ID}\n\n# TOKEN AUTH\nexport VAULT_AUTH_METHOD=token #default\nexport VAULT_TOKEN=${VAULT_TOKEN}\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eRENDER/APPLY\u003c/summary\u003e\n\n```bash\nhelmfile template --environment labul-pve-dev\nhelmfile sync --environment labul-pve-dev\n```\n\n\u003c/details\u003e\n\n## DEPLOY DEV CODE TO CLUSTER\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eDEPLOYMENT\u003c/b\u003e\u003c/summary\u003e\n\n```bash\nhelm pull oci://eu.gcr.io/stuttgart-things/stagetime-creator --version v0.1.44\n```\n\n```yaml\ncat \u003c\u003cEOF \u003e stageTime-creator.yaml\n---\nsecrets:\n  redis-connection:\n    name: redis-connection\n    labels:\n      app: stagetime-server\n    dataType: stringData\n    secretKVs:\n      REDIS_SERVER: redis-stack-deployment-headless.redis-stack.svc.cluster.local\n      REDIS_PORT: 6379\n      REDIS_PASSWORD: \u003cPASSWORD\u003e\nEOF\n```\n\n```bash\nhelm upgrade --install stagetime-creator oci://eu.gcr.io/stuttgart-things/stagetime-creator --version v0.1.44 --values stageTime-creator.yaml -n stagetime-creator --create-namespace\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eCHECK REDIS DATA w/ CLI\u003c/b\u003e\u003c/summary\u003e\n\n```bash\n# INSTALL REDIS-CLI\nsudo apt-get update\nsudo apt-get install redis\n```\n\n```bash\n# SHELL #1\nkubectl -n stagetime port-forward redis-stack-node-0 28015:6379 -n stagetime-redis\n```\n\n```bash\n# SHELL #2\nredis-cli -h 127.0.0.1 -p 28015 -a ${PASSWORD}\n\n# CHECK ALL REDIS KEYS\nKEYS *\n\n# READ STREAM\nXREAD COUNT 2 STREAMS stagetime-revisionruns writers 0-0 0-0\n\n# DELETE STREAM\nDEL stagetime-revisionruns\n```\n\n\u003c/details\u003e\n\n\n## TEST SERVICE LOCALLY (OUTSIDE CLUSTER)\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eSTART CONSUMER\u003c/b\u003e\u003c/summary\u003e\n\n```\nexport KUBECONFIG=~/.kube/dev11\nexport TEMPLATE_PATH=~/projects/go/src/github/stageTime-creator/tests\nexport TEMPLATE_NAME=job-template.yaml\nexport REDIS_STREAM=stagetime:test\nexport REDIS_PASSWORD=\u003cSET-ME\u003e\nexport REDIS_SERVER=redis-pve.labul.sva.de\nexport REDIS_PORT=6379\ntask run\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eSTART TEST PRODUCING (EXTERNAL REDIS)\u003c/b\u003e\u003c/summary\u003e\n\n\n```\n# kubectl -n stagetime-redis port-forward redis-stagetime-deployment-node-0 28015:6379\ntask run-test\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eSTART TEST PRODUCING (REDIS INSIDE CLUSTER)\u003c/b\u003e\u003c/summary\u003e\n\n```\nkubectl -n \u003cREDIS-NS\u003e port-forward redis-stagetime-deployment-node-0 \u003cHOST-PORT\u003e:\u003cCONTAINER-PORT\u003e\n\n# kubectl -n stagetime-redis port-forward redis-stagetime-deployment-node-0 28015:6379\n\nexport REDIS_STREAM=stagetime-revisionruns\nexport REDIS_PASSWORD=\u003cSETME\u003e\nexport REDIS_SERVER=127.0.0.1\nexport REDIS_PORT=28015 # HOST-PORT\ngo run tests/test-json-set.go\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eVERIFY REDIS\u003c/b\u003e\u003c/summary\u003e\n\n```\nredis-cli -h \u003cREDIS_SERVER\u003e-p \u003cHOST-PORT\u003e -a \u003cSETME\u003e\n\n# redis-cli -h 127.0.0.1 -p 28015 -a test\n\nKEYS *\n# GET VALUE\nGET \u003cKEYNAME\u003e\n# GET STREAM\nXREAD COUNT 2 STREAMS \u003cSTREAM-NAME\u003e writers 0-0 0-0\n```\n\n\u003c/details\u003e\n\n\n## LICENSE\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eAPACHE 2.0\u003c/b\u003e\u003c/summary\u003e\n\nCopyright 2023 patrick hermann.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n\u003c/details\u003e\n\nAuthor Information\n------------------\nPatrick Hermann, stuttgart-things 06/2023\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuttgart-things%2Fstagetime-creator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstuttgart-things%2Fstagetime-creator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuttgart-things%2Fstagetime-creator/lists"}