| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -231,7 +231,7 @@ function launch_central { | |||
| 231 | 231 | { command -v oc >/dev/null && pkill -f oc'.*port-forward.*'; } || true # terminate stale port forwarding from earlier runs | |
| 232 | 232 | { command -v oc >/dev/null && pkill -9 -f oc'.*port-forward.*'; } || true | |
| 233 | 233 | ||
| 234 | - if [[ "${STORAGE_CLASS}" == "faster" ]]; then | ||
| 234 | + if [[ "${STORAGE_CLASS}" == "faster" || "${SCANNER_V4_DB_STORAGE_CLASS}" == "faster" ]]; then | ||
| 235 | 235 | kubectl apply -f "${common_dir}/ssd-storageclass.yaml" | |
| 236 | 236 | fi | |
| 237 | 237 | ||
@@ -464,6 +464,10 @@ function launch_central { | |||
| 464 | 464 | helm_args+=(-f "${COMMON_DIR}/ci-values.yaml") | |
| 465 | 465 | fi | |
| 466 | 466 | ||
| 467 | + if [[ -n "${SCANNER_V4_DB_STORAGE_CLASS}" ]]; then | ||
| 468 | + helm_args+=(--set "scannerV4.db.persistence.persistentVolumeClaim.storageClass=${SCANNER_V4_DB_STORAGE_CLASS}") | ||
| 469 | + fi | ||
| 470 | + | ||
| 467 | 471 | # Add a custom values file to Helm | |
| 468 | 472 | if [[ -n "$ROX_CENTRAL_EXTRA_HELM_VALUES_FILE" ]]; then | |
| 469 | 473 | helm_args+=( | |
@@ -523,6 +527,14 @@ function launch_central { | |||
| 523 | 527 | if [[ -x "${unzip_dir}/scanner-v4/scripts/setup.sh" ]]; then | |
| 524 | 528 | "${unzip_dir}/scanner-v4/scripts/setup.sh" | |
| 525 | 529 | fi | |
| 530 | + if [[ -n "${SCANNER_V4_DB_STORAGE_CLASS}" ]]; then | ||
| 531 | + pvc_file="${unzip_dir}/scanner-v4/02-scanner-v4-06-db-pvc.yaml" | ||
| 532 | + if [[ -f "${pvc_file}" ]]; then | ||
| 533 | + sed -i "s|^spec:$|spec:\n storageClassName: ${SCANNER_V4_DB_STORAGE_CLASS}|" "${pvc_file}" | ||
| 534 | + else | ||
| 535 | + echo >&2 "WARNING: SCANNER_V4_DB_STORAGE_CLASS is set but ${pvc_file} not found; storage class will not be applied." | ||
| 536 | + fi | ||
| 537 | + fi | ||
| 526 | 538 | launch_service "${unzip_dir}" scanner-v4 | |
| 527 | 539 | ||
| 528 | 540 | if [[ -n "$CI" ]]; then | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,6 +12,7 @@ | |||
| 12 | 12 | ||
| 13 | 13 | # set required test parameters | |
| 14 | 14 | os.environ["ORCHESTRATOR_FLAVOR"] = "k8s" | |
| 15 | + os.environ["SCANNER_V4_DB_STORAGE_CLASS"] = "stackrox-gke-ssd" | ||
| 15 | 16 | ||
| 16 | 17 | # Run supported central and sensor version tuples against QaE2eGoCompatibilityTest (nongroovy compatibility tests) | |
| 17 | 18 | run_compatibility_tests(QaE2eGoCompatibilityTest, "nongroovy-compat-test") | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,6 +12,7 @@ | |||
| 12 | 12 | ||
| 13 | 13 | # set required test parameters | |
| 14 | 14 | os.environ["ORCHESTRATOR_FLAVOR"] = "k8s" | |
| 15 | + os.environ["SCANNER_V4_DB_STORAGE_CLASS"] = "faster" | ||
| 15 | 16 | ||
| 16 | 17 | # delegated scanning support in the secured cluster | |
| 17 | 18 | os.environ["SENSOR_SCANNER_SUPPORT"] = "true" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,6 +12,8 @@ | |||
| 12 | 12 | os.environ["GCP_IMAGE_TYPE"] = "cos_containerd" | |
| 13 | 13 | os.environ["OUTPUT_FORMAT"] = "helm" | |
| 14 | 14 | ||
| 15 | + os.environ["SCANNER_V4_DB_STORAGE_CLASS"] = "stackrox-gke-ssd" | ||
| 16 | + | ||
| 15 | 17 | os.environ["ROX_RISK_REPROCESSING_INTERVAL"] = "15s" | |
| 16 | 18 | os.environ["ROX_SENSOR_CONNECTION_RETRY_MAX_INTERVAL"] = "30s" | |
| 17 | 19 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,6 +10,7 @@ | |||
| 10 | 10 | # set test parameters | |
| 11 | 11 | os.environ["ORCHESTRATOR_FLAVOR"] = "k8s" | |
| 12 | 12 | os.environ["GCP_IMAGE_TYPE"] = "cos_containerd" | |
| 13 | + os.environ["SCANNER_V4_DB_STORAGE_CLASS"] = "faster" | ||
| 13 | 14 | ||
| 14 | 15 | # use -rcd image for stackrox/main | |
| 15 | 16 | os.environ["MAIN_IMAGE_TAG"] = os.environ["STACKROX_BUILD_TAG"] + "-rcd" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,6 +15,7 @@ | |||
| 15 | 15 | os.environ["OUTPUT_FORMAT"] = "helm" | |
| 16 | 16 | os.environ["STORAGE"] = "pvc" | |
| 17 | 17 | os.environ["STORAGE_CLASS"] = "faster" | |
| 18 | + os.environ["SCANNER_V4_DB_STORAGE_CLASS"] = "stackrox-gke-ssd" | ||
| 18 | 19 | os.environ["STORAGE_SIZE"] = "100" | |
| 19 | 20 | os.environ["STORE_METRICS"] = os.environ["COMPARISON_METRICS"] | |
| 20 | 21 | os.environ["ROX_BASELINE_GENERATION_DURATION"] = "5m" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,6 +11,7 @@ | |||
| 11 | 11 | ||
| 12 | 12 | # set required test parameters | |
| 13 | 13 | os.environ["ORCHESTRATOR_FLAVOR"] = "k8s" | |
| 14 | + os.environ["SCANNER_V4_DB_STORAGE_CLASS"] = "faster" | ||
| 14 | 15 | ||
| 15 | 16 | ClusterTestRunner( | |
| 16 | 17 | pre_test=PreSystemTests(run_poll_for_system_test_images=False), | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,6 +16,7 @@ | |||
| 16 | 16 | # Override test env defaults here: | |
| 17 | 17 | # (for defaults see: tests/e2e/lib.sh export_test_environment()) | |
| 18 | 18 | os.environ["OUTPUT_FORMAT"] = "helm" | |
| 19 | + os.environ["SCANNER_V4_DB_STORAGE_CLASS"] = "stackrox-gke-ssd" | ||
| 19 | 20 | os.environ["SENSOR_SCANNER_SUPPORT"] = "true" | |
| 20 | 21 | ||
| 21 | 22 | ClusterTestRunner( | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,6 +11,7 @@ | |||
| 11 | 11 | from post_tests import PostClusterTest, FinalPost | |
| 12 | 12 | ||
| 13 | 13 | os.environ["ORCHESTRATOR_FLAVOR"] = "k8s" | |
| 14 | + os.environ["SCANNER_V4_DB_STORAGE_CLASS"] = "faster" | ||
| 14 | 15 | ||
| 15 | 16 | ClusterTestRunner( | |
| 16 | 17 | cluster=GKECluster("upgrade-test", machine_type="e2-standard-8"), | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,6 +12,7 @@ | |||
| 12 | 12 | ||
| 13 | 13 | # set required test parameters | |
| 14 | 14 | os.environ["ORCHESTRATOR_FLAVOR"] = "k8s" | |
| 15 | + os.environ["SCANNER_V4_DB_STORAGE_CLASS"] = "stackrox-gke-ssd" | ||
| 15 | 16 | ||
| 16 | 17 | # Run supported central and sensor version tuples against QaE2eTestCompatibility (groovy compatibility tests) | |
| 17 | 18 | run_compatibility_tests(QaE2eTestCompatibility, "compat-test") | |
| Back | FazBrowse Home | New Git URL |
0 commit comments