File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33
44"""Orchestrator class that interfaces with the agent and the environment."""
55
6- from aiopslab .service .helm import Helm
76from aiopslab .service .kubectl import KubeCtl
87from aiopslab .session import Session
98from aiopslab .orchestrator .problems .registry import ProblemRegistry
Original file line number Diff line number Diff line change 66from aiopslab .service .kubectl import KubeCtl
77from aiopslab .service .apps .base import Application
88from aiopslab .paths import ASTRONOMY_SHOP_METADATA
9- from aiopslab .paths import config
109
1110
1211class AstronomyShop (Application ):
@@ -29,7 +28,6 @@ def deploy(self):
2928 "open-telemetry" ,
3029 "https://open-telemetry.github.io/opentelemetry-helm-charts" ,
3130 )
32-
3331 Helm .install (** self .helm_configs )
3432 Helm .assert_if_deployed (self .helm_configs ["namespace" ])
3533
Original file line number Diff line number Diff line change 44from aiopslab .service .helm import Helm
55from aiopslab .service .kubectl import KubeCtl
66from aiopslab .service .apps .base import Application
7- from aiopslab .paths import TARGET_MICROSERVICES
87from aiopslab .paths import FLIGHT_TICKET_METADATA
9- from aiopslab .paths import config
108
119
1210class FlightTicket (Application ):
@@ -29,7 +27,6 @@ def deploy(self):
2927 "flight-ticket" ,
3028 "https://xlab-uiuc.github.io/flight-ticket" ,
3129 )
32-
3330 Helm .install (** self .helm_configs )
3431 Helm .assert_if_deployed (self .helm_configs ["namespace" ])
3532
Original file line number Diff line number Diff line change 88from aiopslab .service .apps .base import Application
99from aiopslab .paths import TARGET_MICROSERVICES
1010from aiopslab .paths import SOCIAL_NETWORK_METADATA
11- from aiopslab .paths import config
1211
1312
1413class SocialNetwork (Application ):
@@ -48,11 +47,11 @@ def deploy(self):
4847 node_architectures = self .kubectl .get_node_architectures ()
4948 is_arm = any (arch in ["arm64" , "aarch64" ] for arch in node_architectures )
5049
51- if "extra_args" not in self .helm_configs :
52- self .helm_configs ["extra_args" ] = []
53-
5450 if is_arm :
5551 # Use the ARM-compatible image for media-frontend
52+ if "extra_args" not in self .helm_configs :
53+ self .helm_configs ["extra_args" ] = []
54+
5655 self .helm_configs ["extra_args" ].append (
5756 "--set media-frontend.container.image=jacksonarthurclark/media-frontend"
5857 )
Original file line number Diff line number Diff line change 55from aiopslab .service .kubectl import KubeCtl
66from aiopslab .service .apps .base import Application
77from aiopslab .paths import TIDB_METADATA
8- from aiopslab .paths import config
98
109
1110class TiDBCluster (Application ):
Original file line number Diff line number Diff line change 44from aiopslab .service .helm import Helm
55from aiopslab .service .kubectl import KubeCtl
66from aiopslab .service .apps .base import Application
7- from aiopslab .paths import TARGET_MICROSERVICES
87from aiopslab .paths import TRAIN_TICKET_METADATA
9- from aiopslab .paths import config
108
119
1210class TrainTicket (Application ):
@@ -25,7 +23,6 @@ def load_app_json(self):
2523 def deploy (self ):
2624 """Deploy the Helm configurations."""
2725 self .kubectl .create_namespace_if_not_exist (self .namespace )
28-
2926 Helm .install (** self .helm_configs )
3027 Helm .assert_if_deployed (self .helm_configs ["namespace" ])
3128
Original file line number Diff line number Diff line change 44"""Interface for helm operations"""
55
66import subprocess
7- import time
87
98from aiopslab .service .kubectl import KubeCtl
9+ from aiopslab .paths import config
1010
1111
1212class Helm :
Original file line number Diff line number Diff line change 44import os
55import json
66import yaml
7- import time
87from subprocess import CalledProcessError
98from aiopslab .service .helm import Helm
109from aiopslab .service .kubectl import KubeCtl
1110from aiopslab .paths import PROMETHEUS_METADATA , BASE_DIR
12- from aiopslab .paths import config
1311
1412
1513class Prometheus :
You can’t perform that action at this time.
0 commit comments