Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bin/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# bin package
File renamed without changes.
5 changes: 4 additions & 1 deletion commands/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
This module contains CLI command implementations for the itsup tool.
"""

__all__ = ["init"]
__all__ = ["init", "apply", "svc", "validate"]

from commands.init import init
from commands.apply import apply
from commands.svc import svc
from commands.validate import validate
29 changes: 29 additions & 0 deletions lib/proxy.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env python3

"""Proxy management for V2 - Stubs for compatibility"""

import logging

logger = logging.getLogger(__name__)


def write_proxies() -> None:
"""Generate proxy configuration files.

V2 Note: In V2, proxy configuration is managed differently.
This is a stub for compatibility with existing code.
"""
logger.info("write_proxies() called - V2 stub")
# TODO: Implement V2 proxy config generation if needed
pass


def update_proxy() -> None:
"""Update proxy with zero-downtime rollout.

V2 Note: In V2, proxy updates are managed differently.
This is a stub for compatibility with existing code.
"""
logger.info("update_proxy() called - V2 stub")
# TODO: Implement V2 proxy update logic if needed
pass
33 changes: 33 additions & 0 deletions lib/upstream.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/usr/bin/env python3

"""Upstream management for V2 - Stubs for compatibility"""

import logging

logger = logging.getLogger(__name__)


def write_upstreams() -> bool:
"""Generate all upstream configurations.

V2 Note: This functionality is now in bin.write_artifacts module.
This stub forwards to the V2 implementation.

Returns:
True if all projects succeeded, False if any failed
"""
logger.info("write_upstreams() called - forwarding to V2 implementation")
import bin.write_artifacts as write_artifacts_module

return write_artifacts_module.write_upstreams()
Copy link

Copilot AI Oct 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The import statement is executed every time write_upstreams() is called. Move the import to the module level to avoid repeated import overhead on each function call.

Copilot uses AI. Check for mistakes.


def update_upstreams() -> None:
"""Update upstreams with zero-downtime rollout.

V2 Note: In V2, upstream updates are handled via docker compose commands in the CLI.
This is a stub for compatibility with existing code.
"""
logger.info("update_upstreams() called - V2 stub")
# TODO: Implement V2 upstream update logic if needed
pass
Loading