From 2bf12b6a33812b535c83b3207d15209787f85953 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Moser?= Date: Tue, 15 Oct 2024 19:26:53 +0200 Subject: [PATCH] remove exoscale v1 --- .gitignore | 1 + chaotic/__init__.py | 2 -- chaotic/cloud/exoscale.py | 20 -------------------- examples/config_exoscale.yaml | 7 ------- requirements.in | 1 - requirements.txt | 14 ++++++-------- 6 files changed, 7 insertions(+), 38 deletions(-) delete mode 100644 chaotic/cloud/exoscale.py delete mode 100644 examples/config_exoscale.yaml diff --git a/.gitignore b/.gitignore index 4314a9c..cd3490a 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ __pycache__ build dist .env +.venv diff --git a/chaotic/__init__.py b/chaotic/__init__.py index 62f867d..833359a 100644 --- a/chaotic/__init__.py +++ b/chaotic/__init__.py @@ -2,7 +2,6 @@ from chaotic.cloud.cloudscale_ch import CloudscaleChChaotic from chaotic.cloud.cloudstack import CloudStackChaotic from chaotic.cloud.digitalocean import DigitaloceanChaotic -from chaotic.cloud.exoscale import ExoscaleChaotic from chaotic.cloud.hcloud import HcloudChaotic from chaotic.cloud.nomad import NomadChaotic from chaotic.cloud.proxmox_kvm import ProxmoxKvmChaotic @@ -16,7 +15,6 @@ class ChaoticFactory: "cloudscale_ch": CloudscaleChChaotic, "cloudstack": CloudStackChaotic, "digitalocean": DigitaloceanChaotic, - "exoscale": ExoscaleChaotic, "hcloud": HcloudChaotic, "nomad": NomadChaotic, "proxmox_kvm": ProxmoxKvmChaotic, diff --git a/chaotic/cloud/exoscale.py b/chaotic/cloud/exoscale.py deleted file mode 100644 index cd4cc4d..0000000 --- a/chaotic/cloud/exoscale.py +++ /dev/null @@ -1,20 +0,0 @@ -import os - -from cs import CloudStack - -from chaotic.cloud.cloudstack import CloudStackChaotic -from chaotic.log import log - -EXOSCALE_API_ENDPOINT: str = "https://api.exoscale.com/compute" -EXOSCALE_API_KEY: str = os.getenv('EXOSCALE_API_KEY', "") -EXOSCALE_API_SECRET: str = os.getenv('EXOSCALE_API_SECRET', "") - - -class ExoscaleChaotic(CloudStackChaotic): - - def __init__(self) -> None: - self.cs = CloudStack( - endpoint=EXOSCALE_API_ENDPOINT, - key=EXOSCALE_API_KEY, - secret=EXOSCALE_API_SECRET, - ) diff --git a/examples/config_exoscale.yaml b/examples/config_exoscale.yaml deleted file mode 100644 index 3724585..0000000 --- a/examples/config_exoscale.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -kind: exoscale -dry_run: false -configs: - tag: - key: chaos - value: enabled diff --git a/requirements.in b/requirements.in index e196d48..7e8b9f5 100644 --- a/requirements.in +++ b/requirements.in @@ -1,5 +1,4 @@ cloudscale-sdk -cs hcloud proxmoxer<3.0 python-digitalocean diff --git a/requirements.txt b/requirements.txt index a295705..a87e32e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,19 +1,17 @@ -certifi==2024.7.4 -charset-normalizer==3.3.2 +certifi==2024.8.30 +charset-normalizer==3.4.0 cloudscale-sdk==0.7.0 -cs==3.2.0 hcloud==2.3.0 -idna==3.7 -jsonpickle==3.0.2 +idna==3.10 +jsonpickle==3.3.0 proxmoxer==2.1.0 -python-dateutil==2.8.2 +python-dateutil==2.9.0.post0 python-digitalocean==1.17.0 python-dotenv==1.0.1 python-json-logger==2.0.7 -pytz==2024.1 pyyaml==6.0.2 requests==2.32.3 schedule==1.2.2 six==1.16.0 -urllib3==2.2.2 +urllib3==2.2.3 xdg==6.0.0