diff --git a/.deploy/deploy-dev.yaml b/.deploy/deploy-dev.yaml index fae8a61..c61e5ea 100644 --- a/.deploy/deploy-dev.yaml +++ b/.deploy/deploy-dev.yaml @@ -26,9 +26,9 @@ services: MONGO_HOST: "mongo.develop.sprinthub.ru" MONGO_PASSWORD: $MONGO_PASSWORD_DEV STAGE: "development" - PLATFORM_SECURITY_TOKEN: $PLATFORM_SECURITY_TOKEN networks: - queues-development + - configurator deploy: mode: replicated restart_policy: diff --git a/.deploy/deploy-prod.yaml b/.deploy/deploy-prod.yaml index 4206805..7474fae 100644 --- a/.deploy/deploy-prod.yaml +++ b/.deploy/deploy-prod.yaml @@ -29,6 +29,7 @@ services: PLATFORM_SECURITY_TOKEN: $PLATFORM_SECURITY_TOKEN networks: - queues + - configurator deploy: mode: replicated restart_policy: diff --git a/sprint_platform.py b/sprint_platform.py index e723f18..af3b1c7 100644 --- a/sprint_platform.py +++ b/sprint_platform.py @@ -14,11 +14,8 @@ class PlatformClient: self.stage = stage self.configs = configs self.experiments = experiments - self.endpoint = 'https://platform.sprinthub.ru/' - self.configs_url = urllib.parse.urljoin(self.endpoint, 'configs/get') - self.experiments_url = urllib.parse.urljoin(self.endpoint, 'experiments/get') - self.staff_url = urllib.parse.urljoin(self.endpoint, 'is_staff') - self.fetch_url = urllib.parse.urljoin(self.endpoint, 'fetch') + self.endpoint = 'http://configurator/' + self.fetch_url = urllib.parse.urljoin(self.endpoint, '/api/v1/fetch') self.config_storage = {} self.experiment_storage = {} self.staff_storage = {} @@ -43,7 +40,6 @@ class PlatformClient: try: response = get( url, - headers={'X-Security-Token': self.platform_security_token}, params=params ) if response.status_code == 200: