fix: catch chaos version deployments

This commit is contained in:
2025-06-03 14:45:28 +02:00
parent e3c452b5be
commit 1d8ee5d6ec
2 changed files with 6 additions and 0 deletions

View File

@ -981,6 +981,11 @@ def upgrade(recipes: Tuple[str], execute_hooks: bool, dry_run: bool, redeploy: b
if deployed_version == 'unknown':
logging.warning(f"Cold not detect deployed version of {domain}")
continue
try:
version.parse(deployed_version)
except version.InvalidVersion:
logging.warning(f"Cold not detect deployed version of {domain}: {deployed_version}")
continue
upgrade_cmd.append(upgrade_version)
if version.parse(upgrade_version) <= version.parse(deployed_version):
logging.info(f"{domain} is already at version {upgrade_version}")

View File

@ -215,6 +215,7 @@ rallly:
env:
OIDC_NAME: "Authentik"
OIDC_DISCOVERY_URL: "https://authentik.example.com/application/o/rallly/.well-known/openid-configuration"
OIDC_ISSUER_URL: "https://authentik.example.com/application/o/rallly/"
OIDC_CLIENT_ID: rallly
uncomment:
- compose.oidc.yml