From 6fae3edd679ab0bbab2dd3996bbb6e51701e1fab Mon Sep 17 00:00:00 2001 From: jenkins Date: Wed, 20 May 2026 17:43:39 -0300 Subject: [PATCH] quality: allow sonar to spill onto rpi4 workers --- services/quality/oauth2-proxy-sonarqube.yaml | 13 ++++++++++++- services/quality/sonarqube-deployment.yaml | 13 ++++++++++++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/services/quality/oauth2-proxy-sonarqube.yaml b/services/quality/oauth2-proxy-sonarqube.yaml index 70daa916..36e45a90 100644 --- a/services/quality/oauth2-proxy-sonarqube.yaml +++ b/services/quality/oauth2-proxy-sonarqube.yaml @@ -56,14 +56,25 @@ spec: values: ["arm64"] - key: hardware operator: In - values: ["rpi5"] + values: ["rpi5", "rpi4"] preferredDuringSchedulingIgnoredDuringExecution: + - weight: 120 + preference: + matchExpressions: + - key: atlas.bstein.dev/spillover + operator: DoesNotExist - weight: 100 preference: matchExpressions: - key: hardware operator: In values: ["rpi5"] + - weight: 60 + preference: + matchExpressions: + - key: hardware + operator: In + values: ["rpi4"] podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - weight: 100 diff --git a/services/quality/sonarqube-deployment.yaml b/services/quality/sonarqube-deployment.yaml index 9297d1e7..6efca7de 100644 --- a/services/quality/sonarqube-deployment.yaml +++ b/services/quality/sonarqube-deployment.yaml @@ -44,14 +44,25 @@ spec: values: ["arm64"] - key: hardware operator: In - values: ["rpi5"] + values: ["rpi5", "rpi4"] preferredDuringSchedulingIgnoredDuringExecution: + - weight: 120 + preference: + matchExpressions: + - key: atlas.bstein.dev/spillover + operator: DoesNotExist - weight: 100 preference: matchExpressions: - key: hardware operator: In values: ["rpi5"] + - weight: 60 + preference: + matchExpressions: + - key: hardware + operator: In + values: ["rpi4"] - weight: 95 preference: matchExpressions: