9
9
from concurrent .futures import ProcessPoolExecutor
10
10
from copy import copy
11
11
from queue import Queue
12
- from typing import Callable , Dict , List , Optional , Tuple , Union
12
+ from typing import Dict , List , Optional , Tuple , Union
13
13
14
14
import requests
15
15
import semver
35
35
DEFAULT_NAMESPACE = "default"
36
36
37
37
38
- def make_list_of_str (value : Union [None , str , List [str ]]) -> List [str ]:
39
- if value is None :
40
- return []
41
38
42
- if isinstance (value , str ):
43
- return [e .strip () for e in value .split ("," )]
44
39
45
- return value
46
40
47
41
48
42
def get_tools_distro (tools_version : str ) -> Dict [str , str ]:
@@ -57,11 +51,6 @@ def is_running_in_evg_pipeline():
57
51
return os .getenv ("RUNNING_IN_EVG" , "" ) == "true"
58
52
59
53
60
- def is_running_in_patch ():
61
- is_patch = os .environ .get ("is_patch" )
62
- return is_patch is not None and is_patch .lower () == "true"
63
-
64
-
65
54
def load_release_file () -> Dict :
66
55
with open ("release.json" ) as release :
67
56
return json .load (release )
@@ -207,7 +196,6 @@ def build_operator_image(build_configuration: BuildConfiguration):
207
196
"version" : build_configuration .version ,
208
197
"log_automation_config_diff" : log_automation_config_diff ,
209
198
"test_suffix" : test_suffix ,
210
- "debug" : build_configuration .debug ,
211
199
}
212
200
213
201
logger .info (f"Building Operator args: { args } " )
@@ -230,7 +218,6 @@ def build_database_image(build_configuration: BuildConfiguration):
230
218
"""
231
219
Builds a new database image.
232
220
"""
233
- release = load_release_file ()
234
221
args = {"version" : build_configuration .version }
235
222
build_image_generic (
236
223
image_name = "mongodb-kubernetes-database" ,
@@ -262,14 +249,6 @@ def build_CLI_SBOM(build_configuration: BuildConfiguration):
262
249
generate_sbom_for_cli (version , platform )
263
250
264
251
265
- def should_skip_arm64 ():
266
- """
267
- Determines if arm64 builds should be skipped based on environment.
268
- Returns True if running in Evergreen pipeline as a patch.
269
- """
270
- return is_running_in_evg_pipeline () and is_running_in_patch ()
271
-
272
-
273
252
@TRACER .start_as_current_span ("sign_image_in_repositories" )
274
253
def sign_image_in_repositories (args : Dict [str , str ], arch : str = None ):
275
254
span = trace .get_current_span ()
0 commit comments