diff --git a/helm/robusta/Chart.lock b/helm/robusta/Chart.lock index 49754e449..1a4cc12be 100644 --- a/helm/robusta/Chart.lock +++ b/helm/robusta/Chart.lock @@ -4,6 +4,6 @@ dependencies: version: 55.7.0 - name: holmes repository: https://robusta-charts.storage.googleapis.com - version: 0.5.2 -digest: sha256:a9a93e67c924281234b7e73bae9c54024efa44af3f76e27ba08f53ca12f3588e -generated: "2024-10-09T19:32:24.192483+03:00" + version: 0.6.0 +digest: sha256:d7e8b836b8c7a1fcf012b6d7964c81e3a572a02709a79105ad7e1abf44546dc5 +generated: "2024-11-06T21:26:25.985524+02:00" diff --git a/helm/robusta/Chart.yaml b/helm/robusta/Chart.yaml index 753ee075f..539604b4b 100644 --- a/helm/robusta/Chart.yaml +++ b/helm/robusta/Chart.yaml @@ -15,6 +15,6 @@ dependencies: condition: enablePrometheusStack repository: "https://prometheus-community.github.io/helm-charts" - name: holmes - version: 0.5.2 + version: 0.6.0 condition: enableHolmesGPT repository: "https://robusta-charts.storage.googleapis.com" diff --git a/helm/robusta/charts/holmes-0.5.2.tgz b/helm/robusta/charts/holmes-0.5.2.tgz deleted file mode 100644 index 3ab6a269c..000000000 Binary files a/helm/robusta/charts/holmes-0.5.2.tgz and /dev/null differ diff --git a/helm/robusta/charts/holmes-0.6.0.tgz b/helm/robusta/charts/holmes-0.6.0.tgz new file mode 100644 index 000000000..fd7044149 Binary files /dev/null and b/helm/robusta/charts/holmes-0.6.0.tgz differ diff --git a/playbooks/robusta_playbooks/krr.py b/playbooks/robusta_playbooks/krr.py index f47169eb7..dfbedd780 100644 --- a/playbooks/robusta_playbooks/krr.py +++ b/playbooks/robusta_playbooks/krr.py @@ -10,6 +10,7 @@ from hikaru.model.rel_1_26 import Container, EnvVar, EnvVarSource, PodSpec, ResourceRequirements, SecretKeySelector from prometrix import AWSPrometheusConfig, CoralogixPrometheusConfig, PrometheusAuthorization, PrometheusConfig from pydantic import BaseModel, ValidationError, validator + from robusta.api import ( IMAGE_REGISTRY, RUNNER_SERVICE_ACCOUNT, @@ -32,7 +33,7 @@ from robusta.integrations.openshift import IS_OPENSHIFT from robusta.integrations.prometheus.utils import generate_prometheus_config -IMAGE: str = os.getenv("KRR_IMAGE_OVERRIDE", f"{IMAGE_REGISTRY}/krr:v1.16.0") +IMAGE: str = os.getenv("KRR_IMAGE_OVERRIDE", f"{IMAGE_REGISTRY}/krr:v1.17.0") KRR_MEMORY_LIMIT: str = os.getenv("KRR_MEMORY_LIMIT", "2Gi") KRR_MEMORY_REQUEST: str = os.getenv("KRR_MEMORY_REQUEST", "2Gi") @@ -52,9 +53,9 @@ class KRRObject(BaseModel): current_pod_count: Optional[int] def __init__(self, **data): - pods = data.pop('pods', []) + pods = data.pop("pods", []) super().__init__(**data) - self.current_pod_count = len([pod for pod in pods if not pod.get('deleted', False)]) + self.current_pod_count = len([pod for pod in pods if not pod.get("deleted", False)]) class KRRRecommendedInfo(BaseModel): @@ -363,7 +364,7 @@ def update_state(state: ScanState) -> None: delete_job_post_execution=False, process_name=False, finalizers=["robusta.dev/krr-job-output"], - custom_pod_labels=krr_pod_labels + custom_pod_labels=krr_pod_labels, ) # NOTE: We need to remove the logs before the json result @@ -437,7 +438,7 @@ def update_state(state: ScanState) -> None: "description": krr_scan.description, "strategy": krr_scan.strategy.dict() if krr_scan.strategy else None, "warnings": scan.object.warnings, - "current_pod_count": scan.object.current_pod_count + "current_pod_count": scan.object.current_pod_count, } for resource in krr_scan.resources ],