|
1 | 1 | """SBOM manipulation library
|
2 | 2 |
|
3 |
| -This file contains all necessary functions for manipulating SBOMs for MCO and MEKO. The intention is to run |
| 3 | +This file contains all necessary functions for manipulating SBOMs for MCK. The intention is to run |
4 | 4 | generate_sbom and generate_sbom_for_cli on a daily basis per each shipped image and the CLI.
|
5 | 5 |
|
6 | 6 | The SSDLC reporting doesn't strictly require to follow the daily rebuild flow. However, triggering it is part of the
|
@@ -229,15 +229,17 @@ def generate_sbom_for_cli(cli_version: str = "1.25.0", platform: str = "linux/am
|
229 | 229 | with tempfile.TemporaryDirectory() as directory:
|
230 | 230 | sbom_lite_file_name = f"kubectl-mongodb-{cli_version}-{platform_sanitized}.json"
|
231 | 231 | sbom_augmented_file_name = f"kubectl-mongodb-{cli_version}-{platform_sanitized}-augmented.json"
|
232 |
| - product_name = "mongodb-enterprise-cli" |
233 |
| - kondukto_project_repo = "mongodb/mongodb-enterprise-kubernetes" |
| 232 | + product_name = "mongodb-kubernetes-cli" |
| 233 | + kondukto_project_repo = "mongodb/mongodb-kubernetes" |
234 | 234 | kondukto_branch_id = f"{product_name}-release-{cli_version}-{platform_sanitized}"
|
235 | 235 | s3_release_sbom_lite_path = f"sboms/release/lite/{product_name}/{cli_version}/{platform_sanitized}"
|
236 | 236 | s3_release_sbom_augmented_path = (
|
237 | 237 | f"sboms/release/augmented/{product_name}/{cli_version}/{platform_sanitized}"
|
238 | 238 | )
|
239 | 239 | binary_file_name = f"kubectl-mongodb_{cli_version}_{platform_sanitized_with_underscores}.tar.gz"
|
240 |
| - download_binary_url = f"https://github.com/mongodb/mongodb-enterprise-kubernetes/releases/download/{cli_version}/{binary_file_name}" |
| 240 | + download_binary_url = ( |
| 241 | + f"https://github.com/mongodb/mongodb-kubernetes/releases/download/{cli_version}/{binary_file_name}" |
| 242 | + ) |
241 | 243 | unpacked_binary_file_name = "kubectl-mongodb"
|
242 | 244 |
|
243 | 245 | if not s3_path_exists(s3_release_sbom_augmented_path):
|
@@ -266,9 +268,7 @@ def generate_sbom_for_cli(cli_version: str = "1.25.0", platform: str = "linux/am
|
266 | 268 | def get_kondukto_sbom_data(image_name: str, tag: str, platform_sanitized: str):
|
267 | 269 | daily_project_branch_id = f"{image_name}-daily-{tag}-{platform_sanitized}"
|
268 | 270 | release_project_branch_id = f"{image_name}-release-{tag}-{platform_sanitized}"
|
269 |
| - if image_name.startswith("mongodb-enterprise"): |
270 |
| - return daily_project_branch_id, release_project_branch_id, "mongodb/mongodb-kubernetes" |
271 |
| - return daily_project_branch_id, release_project_branch_id, "mongodb/mongodb-kubernetes-operator" |
| 271 | + return daily_project_branch_id, release_project_branch_id, "mongodb/mongodb-kubernetes" |
272 | 272 |
|
273 | 273 |
|
274 | 274 | def s3_path_exists(s3_path):
|
|
0 commit comments