feat: improve build service with init container cleanup and dev tooling#11
Merged
sciabarracom merged 2 commits intoapache:mainfrom Dec 10, 2025
Merged
feat: improve build service with init container cleanup and dev tooling#11sciabarracom merged 2 commits intoapache:mainfrom
sciabarracom merged 2 commits intoapache:mainfrom
Conversation
Major improvements to the build service and development environment: Build Service Enhancements: - Add wait logic for init container completion before resource cleanup - Prevent race condition where ConfigMaps/Secrets deleted before pod reads them - Add new KubeApiClient methods: get_pod() and wait_for_init_container_completion() - Refactor cleanup into _cleanup_build_resources() helper method - Add null check for jobs list to prevent iteration errors - Fix Pylance type errors with proper type annotations (str | None) Kubernetes API Client: - Fix time module import (was importing datetime.time instead of time module) - Add pod status monitoring and init container state tracking - Add detailed logging for container lifecycle events - Support timeout-based waiting with configurable durations Development Environment: - Add VSCode debug configuration with automatic port-forwarding - Create start-port-forwards.sh script for registry and CouchDB - Add tasks.json with Start/Stop Port Forwards tasks - Update TaskfileDev.yml with setup-secret task for dev credentials - Auto-setup registry-pull-secret-dev and REGISTRY_SECRET env var Response Builder & Security: - Improve response formatting and error handling - Minor fixes to authorization decorators
- **build.py**: Added missing `file` parameter, fixed response schemas, added enum for kind, better examples
- **api.py**: Fixed securityDefinitions syntax, improved config endpoint documentation
- **auth.py**: Fixed incorrect summary, removed duplicate definitions, fixed path parameter syntax (from `schema: {type: string}` to `type: string`), added 400 responses
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Major improvements to the build service and development environment:
Build Service Enhancements:
Kubernetes API Client:
Development Environment:
Response Builder & Security: