Skip to content

Conversation

@d4rkstar
Copy link
Contributor

@d4rkstar d4rkstar commented Dec 9, 2025

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

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
@sciabarracom sciabarracom merged commit 4ad2230 into apache:main Dec 10, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants