Skip to content

Commit

Permalink
update krr and holmes dependencies (#1623)
Browse files Browse the repository at this point in the history
* update krr and holmes dependencies

* update krr and holmes dependencies
  • Loading branch information
arikalon1 authored Nov 6, 2024
1 parent 78eb589 commit 47f540f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
6 changes: 3 additions & 3 deletions helm/robusta/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion helm/robusta/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Binary file removed helm/robusta/charts/holmes-0.5.2.tgz
Binary file not shown.
Binary file added helm/robusta/charts/holmes-0.6.0.tgz
Binary file not shown.
11 changes: 6 additions & 5 deletions playbooks/robusta_playbooks/krr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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")

Expand All @@ -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):
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
],
Expand Down

0 comments on commit 47f540f

Please sign in to comment.