robusta-api 0.53.0__tar.gz → 0.54.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {robusta_api-0.53.0 → robusta_api-0.54.0}/PKG-INFO +9 -10
- {robusta_api-0.53.0 → robusta_api-0.54.0}/pyproject.toml +18 -15
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/_version.py +1 -1
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/api/__init__.py +0 -1
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/model/base_params.py +2 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/model/env_vars.py +4 -1
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/playbooks/prometheus_enrichment_utils.py +19 -1
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/robusta/dal/supabase_dal.py +48 -5
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/robusta/robusta_sink.py +3 -3
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/triggers/custom_triggers.py +6 -0
- robusta_api-0.54.0/src/robusta/core/triggers/deployment_rollout_trigger.py +159 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/prometheus/utils.py +24 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/LICENSE +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/clients/robusta_client.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/discovery/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/discovery/discovery.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/discovery/resource_names.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/discovery/top_service_resolver.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/discovery/utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/exceptions.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/model/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/model/cluster_status.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/model/events.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/model/helm_release.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/model/jobs.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/model/k8s_operation_type.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/model/namespaces.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/model/nodes.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/model/openshift_group.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/model/pods.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/model/runner_config.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/model/services.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/persistency/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/persistency/in_memory.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/persistency/scheduled_jobs_states_dal.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/playbooks/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/playbooks/actions_registry.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/playbooks/base_trigger.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/playbooks/common.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/playbooks/container_playbook_utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/playbooks/crash_reporter.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/playbooks/generation.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/playbooks/internal/CRD_API_DOCUMENTATION.md +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/playbooks/internal/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/playbooks/internal/ai_integration.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/playbooks/internal/crds.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/playbooks/internal/discovery_events.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/playbooks/job_utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/playbooks/node_enrichment_utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/playbooks/node_playbook_utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/playbooks/oom_killer_utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/playbooks/playbook_utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/playbooks/playbooks_event_handler.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/playbooks/playbooks_event_handler_impl.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/playbooks/pod_utils/crashloop_utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/playbooks/pod_utils/imagepull_utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/playbooks/pod_utils/pending_pod_utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/playbooks/trigger.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/pubsub/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/pubsub/event_emitter.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/pubsub/event_subscriber.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/pubsub/events_pubsub.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/reporting/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/reporting/action_requests.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/reporting/base.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/reporting/blocks.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/reporting/callbacks.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/reporting/charts.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/reporting/consts.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/reporting/custom_rendering.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/reporting/finding_subjects.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/reporting/holmes.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/reporting/url_helpers.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/reporting/utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/schedule/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/schedule/model.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/schedule/scheduler.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/common/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/common/channel_transformer.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/common/destination_override.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/common/html_tools.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/datadog/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/datadog/datadog_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/datadog/datadog_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/discord/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/discord/discord_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/discord/discord_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/file/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/file/file_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/file/file_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/file/object_traverser.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/google_chat/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/google_chat/google_chat.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/google_chat/google_chat_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/incidentio/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/incidentio/incidentio_api.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/incidentio/incidentio_client.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/incidentio/incidentio_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/incidentio/incidentio_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/jira/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/jira/jira_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/jira/jira_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/kafka/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/kafka/kafka_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/kafka/kafka_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/mail/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/mail/mail_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/mail/mail_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/mattermost/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/mattermost/mattermost_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/mattermost/mattermost_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/msteams/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/msteams/msteams_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/msteams/msteams_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/msteams/msteams_webhook_tranformer.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/msteams_graph/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/msteams_graph/msteams_graph_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/msteams_graph/msteams_graph_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/opsgenie/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/opsgenie/opsgenie_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/opsgenie/opsgenie_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/pagerduty/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/pagerduty/pagerduty_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/pagerduty/pagerduty_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/pushover/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/pushover/pushover_client.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/pushover/pushover_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/pushover/pushover_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/robusta/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/robusta/dal/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/robusta/dal/model_conversion.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/robusta/discovery_metrics.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/robusta/prometheus_discovery_utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/robusta/robusta_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/robusta/rrm/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/robusta/rrm/account_resource_fetcher.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/robusta/rrm/base_resource_manager.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/robusta/rrm/prometheus_alert_resource_manager.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/robusta/rrm/rrm.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/robusta/rrm/types.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/rocketchat/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/rocketchat/rocketchat_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/rocketchat/rocketchat_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/servicenow/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/servicenow/servicenow_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/servicenow/servicenow_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/sink_base.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/sink_base_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/sink_config.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/sink_factory.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/slack/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/slack/preview/slack_sink_preview.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/slack/preview/slack_sink_preview_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/slack/slack_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/slack/slack_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/slack/templates/header.j2 +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/slack/templates/template_loader.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/telegram/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/telegram/telegram_client.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/telegram/telegram_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/telegram/telegram_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/timing.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/transformer.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/victorops/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/victorops/victorops_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/victorops/victorops_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/webex/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/webex/webex_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/webex/webex_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/webhook/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/webhook/webhook_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/webhook/webhook_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/yamessenger/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/yamessenger/yamessenger_client.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/yamessenger/yamessenger_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/yamessenger/yamessenger_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/zulip/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/zulip/zulip_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/zulip/zulip_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/stream/utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/triggers/container_oom_killed_trigger.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/triggers/error_event_trigger.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/triggers/helm_releases_triggers.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/triggers/job_failed_trigger.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/triggers/multi_resources_trigger.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/triggers/oom_killed_trigger_base.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/triggers/pod_crash_loop_trigger.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/triggers/pod_evicted_trigger.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/triggers/pod_image_pull_backoff.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/triggers/pod_oom_killed_trigger.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/argocd/argocd_client.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/common/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/common/requests.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/discord/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/discord/sender.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/git/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/git/git_repo.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/git/well_known_hosts.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/google_chat/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/google_chat/sender.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/grafana.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/helper.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/jira/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/jira/client.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/jira/sender.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/kubernetes/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/kubernetes/api_client_utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/kubernetes/autogenerated/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/kubernetes/autogenerated/events.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/kubernetes/autogenerated/models.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/kubernetes/autogenerated/triggers.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/kubernetes/autogenerated/v1/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/kubernetes/autogenerated/v1/models.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/kubernetes/base_event.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/kubernetes/base_triggers.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/kubernetes/custom_crds.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/kubernetes/custom_models.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/kubernetes/model_not_found_exception.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/kubernetes/process_utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/kubernetes/templates.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/mail/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/mail/sender.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/mattermost/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/mattermost/client.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/mattermost/sender.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/msteams/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/msteams/graph/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/msteams/graph/graph_client.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/msteams/graph/graph_msg.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/msteams/graph/sender.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/msteams/msteams_adaptive_card_files.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/msteams/msteams_adaptive_card_files_image.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/msteams/msteams_adaptive_card_files_text.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/msteams/msteams_elements/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/msteams/msteams_elements/msteams_action.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/msteams/msteams_elements/msteams_base.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/msteams/msteams_elements/msteams_card.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/msteams/msteams_elements/msteams_column.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/msteams/msteams_elements/msteams_container.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/msteams/msteams_elements/msteams_images.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/msteams/msteams_elements/msteams_table.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/msteams/msteams_elements/msteams_text_block.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/msteams/msteams_mark_down_fix_url.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/msteams/msteams_msg.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/msteams/sender.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/openshift/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/openshift/token.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/prometheus/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/prometheus/models.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/prometheus/trigger.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/receiver.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/resource_analysis/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/resource_analysis/cpu_analyzer.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/resource_analysis/memory_analyzer.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/resource_analysis/node_cpu_analyzer.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/resource_analysis/prometheus_analyzer.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/rocketchat/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/rocketchat/sender.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/scheduled/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/scheduled/event.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/scheduled/models.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/scheduled/playbook_scheduler.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/scheduled/playbook_scheduler_manager.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/scheduled/playbook_scheduler_manager_impl.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/scheduled/trigger.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/servicenow/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/servicenow/sender.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/slack/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/slack/sender.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/webex/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/webex/sender.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/zulip/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/integrations/zulip/sender.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/model/alert_relabel_config.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/model/config.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/model/playbook_action.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/model/playbook_definition.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/patch/patch.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/runner/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/runner/config_loader.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/runner/log_init.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/runner/main.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/runner/not_found_exception.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/runner/object_updater.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/runner/process_setup.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/runner/ssl_utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/runner/telemetry.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/runner/telemetry_service.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/runner/web.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/runner/web_api.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/utils/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/utils/archive.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/utils/auth_provider.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/utils/base64_utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/utils/cluster_provider_discovery.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/utils/common.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/utils/decorators.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/utils/docs.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/utils/documented_pydantic.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/utils/error_codes.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/utils/file_system_watcher.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/utils/function_hashes.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/utils/json_schema.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/utils/parsing.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/utils/rate_limiter.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/utils/scope.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/utils/server_start.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/utils/service_discovery.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/utils/silence_utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/utils/stack_tracer.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/utils/task_queue.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/utils/time_utils.py +0 -0
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: robusta-api
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.54.0
|
|
4
4
|
Summary:
|
|
5
5
|
Author: Arik Alon
|
|
6
6
|
Author-email: arikalon1@users.noreply.github.com
|
|
7
|
-
Requires-Python: >=3.
|
|
7
|
+
Requires-Python: >=3.11,<3.12
|
|
8
8
|
Classifier: Programming Language :: Python :: 3
|
|
9
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
10
9
|
Classifier: Programming Language :: Python :: 3.11
|
|
11
10
|
Provides-Extra: all
|
|
12
11
|
Requires-Dist: Flask (>=3.1.3,<4.0.0) ; extra == "all"
|
|
@@ -17,7 +16,7 @@ Requires-Dist: better-exceptions (>=0.3.3,<0.4.0) ; extra == "all"
|
|
|
17
16
|
Requires-Dist: bitmath (>=1.3.3.1,<2.0.0.0)
|
|
18
17
|
Requires-Dist: boto3 (>=1.42.19,<2.0.0)
|
|
19
18
|
Requires-Dist: botocore (>=1.42.19,<2.0.0)
|
|
20
|
-
Requires-Dist: certifi (>=2026.
|
|
19
|
+
Requires-Dist: certifi (>=2026.10.18)
|
|
21
20
|
Requires-Dist: click (>=8.3.3)
|
|
22
21
|
Requires-Dist: colorlog (>=5.0.1,<6.0.0)
|
|
23
22
|
Requires-Dist: croniter (>=1.3.15,<2.0.0)
|
|
@@ -25,9 +24,9 @@ Requires-Dist: cryptography (>=50.0.0,<51.0.0)
|
|
|
25
24
|
Requires-Dist: datadog-api-client (>=1.2.0,<2.0.0) ; extra == "all"
|
|
26
25
|
Requires-Dist: docutils (==0.19)
|
|
27
26
|
Requires-Dist: dpath (>=2.0.5,<3.0.0)
|
|
28
|
-
Requires-Dist: filelock (>=
|
|
27
|
+
Requires-Dist: filelock (>=4.2.1)
|
|
29
28
|
Requires-Dist: grafana-api (>=1.0.3,<2.0.0) ; extra == "all"
|
|
30
|
-
Requires-Dist: h2 (>=4.
|
|
29
|
+
Requires-Dist: h2 (>=4.4.1,<5.0.0)
|
|
31
30
|
Requires-Dist: hikaru-model-26 (>=1.1.1,<2.0.0)
|
|
32
31
|
Requires-Dist: httpx (==0.27.2)
|
|
33
32
|
Requires-Dist: humanize (>=3.13.1,<4.0.0)
|
|
@@ -37,11 +36,11 @@ Requires-Dist: kafka-python (>=2.3.2,<3.0.0) ; extra == "all"
|
|
|
37
36
|
Requires-Dist: kubernetes (>=26.1.0,<27.0.0)
|
|
38
37
|
Requires-Dist: markdown2 (==2.4.13)
|
|
39
38
|
Requires-Dist: opsgenie-sdk (>=2.1.5,<3.0.0)
|
|
40
|
-
Requires-Dist: pillow (>=
|
|
39
|
+
Requires-Dist: pillow (>=13.0.0,<14.0.0)
|
|
41
40
|
Requires-Dist: poetry-core (==1.1.0a7) ; extra == "all"
|
|
42
|
-
Requires-Dist: prometheus-api-client (
|
|
41
|
+
Requires-Dist: prometheus-api-client (>=0.7.0,<0.8.0) ; extra == "all"
|
|
43
42
|
Requires-Dist: prometheus-client (>=0.12.0,<0.13.0)
|
|
44
|
-
Requires-Dist: prometrix (==0.2.
|
|
43
|
+
Requires-Dist: prometrix (==0.2.12)
|
|
45
44
|
Requires-Dist: pyasn1 (>=0.6.4)
|
|
46
45
|
Requires-Dist: pydantic (>=2.11.7,<3.0.0)
|
|
47
46
|
Requires-Dist: pydash (==8.0.0)
|
|
@@ -63,7 +62,7 @@ Requires-Dist: tabulate (>=0.8.10,<0.9.0) ; extra == "all"
|
|
|
63
62
|
Requires-Dist: tenacity (>=9.1.2,<10.0.0)
|
|
64
63
|
Requires-Dist: toml (>=0.10.2,<0.11.0)
|
|
65
64
|
Requires-Dist: urllib3 (>=2.8.0,<3.0.0)
|
|
66
|
-
Requires-Dist: virtualenv (>=21.
|
|
65
|
+
Requires-Dist: virtualenv (>=21.14.9,<22.0.0)
|
|
67
66
|
Requires-Dist: watchdog (>=2.1.0,<3.0.0) ; extra == "all"
|
|
68
67
|
Requires-Dist: watchgod (>=0.7,<0.8)
|
|
69
68
|
Requires-Dist: webexteamssdk (>=1.6.1,<2.0.0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "robusta-api"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.54.0"
|
|
4
4
|
description = ""
|
|
5
5
|
authors = ["Arik Alon <arikalon1@users.noreply.github.com>"]
|
|
6
6
|
packages = [
|
|
@@ -17,7 +17,7 @@ multi_line_output = 3
|
|
|
17
17
|
include_trailing_comma = true
|
|
18
18
|
|
|
19
19
|
[tool.poetry.dependencies]
|
|
20
|
-
python = ">=3.
|
|
20
|
+
python = ">=3.11, <3.12"
|
|
21
21
|
setuptools = "^83.0.0"
|
|
22
22
|
colorlog = "^5.0.1"
|
|
23
23
|
python-json-logger = "^3.0.0"
|
|
@@ -70,7 +70,8 @@ cryptography = "^50.0.0"
|
|
|
70
70
|
# PDF renderer for KRR/Popeye scan reports (BSD-3-Clause; replaced LGPL-licensed fpdf2)
|
|
71
71
|
reportlab = "^5.0.0"
|
|
72
72
|
attrs = "^23.1.0"
|
|
73
|
-
|
|
73
|
+
# 0.2.12 drops its pillow<13 cap, needed for the Pillow 13 CVE fixes; requires prometheus-api-client >=0.7
|
|
74
|
+
prometrix = "0.2.12"
|
|
74
75
|
hikaru-model-26 = "^1.1.1"
|
|
75
76
|
apprise = "1.6.0"
|
|
76
77
|
rocketchat-api = "^1.30.0"
|
|
@@ -78,10 +79,10 @@ pydash = "8.0.0"
|
|
|
78
79
|
# The following are added to speed up poetry dependency resolution
|
|
79
80
|
botocore = "^1.42.19"
|
|
80
81
|
boto3 = "^1.42.19"
|
|
81
|
-
prometheus-api-client = "0.
|
|
82
|
+
prometheus-api-client = "^0.7.0"
|
|
82
83
|
requests = "^2.33.0"
|
|
83
|
-
# Bump to fix certifi CVE flagged by customer scan; date-versioned, so use >= rather than caret
|
|
84
|
-
certifi = ">=2026.
|
|
84
|
+
# Bump to fix certifi CVE flagged by customer scan (GHSA-6q48-6c7w-9gw2); date-versioned, so use >= rather than caret
|
|
85
|
+
certifi = ">=2026.10.18"
|
|
85
86
|
regex = "2024.5.15"
|
|
86
87
|
# Pin to fix CVE-2026-102268 (Critical) + CVE-2026-102266/102267/102271-102273 (High): PyJWT
|
|
87
88
|
pyjwt = "^2.14.0"
|
|
@@ -89,22 +90,23 @@ urllib3 = "^2.8.0"
|
|
|
89
90
|
httpx = "0.27.2"
|
|
90
91
|
# realtime (supabase dependency) requires websockets.asyncio, added in websockets 13
|
|
91
92
|
websockets = ">=13"
|
|
92
|
-
# Pin to fix cve https://github.com/robusta-dev/robusta/security/dependabot/85
|
|
93
|
-
h2 = "^4.
|
|
93
|
+
# Pin to fix cve https://github.com/robusta-dev/robusta/security/dependabot/85 and CVE-2026-71554
|
|
94
|
+
h2 = "^4.4.1"
|
|
94
95
|
# Pin to fix CVE-2026-30922 (transitive via google-auth)
|
|
95
96
|
# Bump to fix CVE-2026-59885, CVE-2026-59886 (High)
|
|
96
97
|
pyasn1 = ">=0.6.4"
|
|
97
98
|
# Pin to fix CVE-2026-63374 (Critical) + CVE-2026-64847 (Medium) (transitive via httpx)
|
|
98
99
|
anyio = "^4.14.2"
|
|
99
|
-
# Pin to fix CVE-2026-22701 (transitive via virtualenv/pre-commit)
|
|
100
|
-
filelock = ">=
|
|
101
|
-
# Pin to fix CVE-2026-102925/102930/102937 (transitive via pre-commit)
|
|
102
|
-
virtualenv = "^21.
|
|
100
|
+
# Pin to fix CVE-2026-22701 and CVE-2026-112940 (transitive via virtualenv/pre-commit)
|
|
101
|
+
filelock = ">=4.2.1"
|
|
102
|
+
# Pin to fix CVE-2026-102925/102930/102937, CVE-2026-113718/113722/113723/113725 (transitive via pre-commit)
|
|
103
|
+
virtualenv = "^21.14.9"
|
|
103
104
|
# Pillow is used directly (MS Teams PNG->JPEG image conversion) and by reportlab.
|
|
104
105
|
# Pin to fix CVE-2026-54058,
|
|
105
106
|
# CVE-2026-54059, CVE-2026-54060, CVE-2026-55379, CVE-2026-55380, CVE-2026-59197,
|
|
106
|
-
# CVE-2026-59199, CVE-2026-59200, CVE-2026-59204, CVE-2026-59205 (High)
|
|
107
|
-
|
|
107
|
+
# CVE-2026-59199, CVE-2026-59200, CVE-2026-59204, CVE-2026-59205 (High) and the
|
|
108
|
+
# CVE-2026-112390..112406, 112892..112902, 96637..96778 batch fixed in 13.0.0
|
|
109
|
+
pillow = "^13.0.0"
|
|
108
110
|
# click is pulled in transitively (flask, typer). Pin to fix CVE-2026-7246 (High):
|
|
109
111
|
# command injection via unsanitized filename in click.edit()
|
|
110
112
|
click = ">=8.3.3"
|
|
@@ -137,7 +139,8 @@ sphinx-immaterial = { git = "https://github.com/robusta-dev/robusta-immaterial.g
|
|
|
137
139
|
# As it does not work witn sphynx-immaterial, we need to exclude it from the dev dependencies
|
|
138
140
|
# Please, install it manually if you need to run flake8
|
|
139
141
|
# flake8 = "5.0.4"
|
|
140
|
-
|
|
142
|
+
# CVE-2026-114134 (High)
|
|
143
|
+
black = "26.10.1"
|
|
141
144
|
mypy = "0.991"
|
|
142
145
|
isort = "5.10.1"
|
|
143
146
|
absolufy-imports = "^0.3.1"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
# this is updated by .github/workflows/release.yaml
|
|
2
|
-
__version__ = "0.
|
|
2
|
+
__version__ = "0.54.0"
|
|
@@ -321,6 +321,7 @@ class PrometheusParams(ActionParams):
|
|
|
321
321
|
:var prometheus_additional_headers: additional HTTP headers (if defined) to add to every prometheus query
|
|
322
322
|
:var prometheus_additional_labels: A dictionary of additional labels needed for multi-cluster prometheus
|
|
323
323
|
:var add_additional_labels: adds the additional labels (if defined) to the query
|
|
324
|
+
:var namespace: the namespace the queries are about. With PROMETHEUS_TENANT_LABEL set, its label picks the tenant
|
|
324
325
|
|
|
325
326
|
:example prometheus_url: "http://prometheus-k8s.monitoring.svc.cluster.local:9090"
|
|
326
327
|
:example prometheus_auth: Basic YWRtaW46cGFzc3dvcmQ=
|
|
@@ -337,6 +338,7 @@ class PrometheusParams(ActionParams):
|
|
|
337
338
|
prometheus_additional_headers: Optional[Dict[str, str]] = None
|
|
338
339
|
prometheus_additional_labels: Optional[Dict[str, str]] = None
|
|
339
340
|
add_additional_labels: bool = True
|
|
341
|
+
namespace: Optional[str] = None
|
|
340
342
|
prometheus_graphs_overrides: Optional[List[OverrideGraph]] = None
|
|
341
343
|
|
|
342
344
|
@validator("prometheus_url", allow_reuse=True)
|
|
@@ -36,7 +36,6 @@ SUPABASE_LOGIN_RETRY_MAX_BACKOFF_SEC = float(os.environ.get("SUPABASE_LOGIN_RETR
|
|
|
36
36
|
# separately from SUPABASE_TIMEOUT_SECONDS so an unreachable platform fails (and retries)
|
|
37
37
|
# promptly instead of parking every attempt on the full read budget.
|
|
38
38
|
SUPABASE_CONNECT_TIMEOUT_SECONDS = float(os.environ.get("SUPABASE_CONNECT_TIMEOUT_SECONDS", 10))
|
|
39
|
-
GRAFANA_RENDERER_URL = os.environ.get("GRAFANA_RENDERER_URL", "http://127.0.0.1:8281/render")
|
|
40
39
|
RESOURCE_UPDATES_CACHE_TTL_SEC = os.environ.get("RESOURCE_UPDATES_CACHE_TTL_SEC", 120)
|
|
41
40
|
INTERNAL_PLAYBOOKS_ROOT = os.environ.get("INTERNAL_PLAYBOOKS_ROOT", "/app/src/robusta/core/playbooks/internal")
|
|
42
41
|
DEFAULT_TIMEZONE = pytz.timezone(os.environ.get("DEFAULT_TIMEZONE", "UTC"))
|
|
@@ -49,6 +48,10 @@ PROMETHEUS_REQUEST_TIMEOUT_SECONDS = float(os.environ.get("PROMETHEUS_REQUEST_TI
|
|
|
49
48
|
PROMETHEUS_ENABLED = os.environ.get("PROMETHEUS_ENABLED", "false").lower() == "true"
|
|
50
49
|
MANAGED_CONFIGURATION_ENABLED = os.environ.get("MANAGED_CONFIGURATION_ENABLED", "false").lower() == "true"
|
|
51
50
|
PROMETHEUS_SSL_ENABLED = os.environ.get("PROMETHEUS_SSL_ENABLED", "false").lower() == "true"
|
|
51
|
+
# Multi-tenant Prometheus (e.g. Mimir): label on the action's namespace, sent as the tenant header.
|
|
52
|
+
# Env vars, not global_config, so a request from the UI can't override them.
|
|
53
|
+
PROMETHEUS_TENANT_LABEL = os.environ.get("PROMETHEUS_TENANT_LABEL")
|
|
54
|
+
PROMETHEUS_TENANT_HEADER = os.environ.get("PROMETHEUS_TENANT_HEADER", "X-Scope-OrgID")
|
|
52
55
|
|
|
53
56
|
INCOMING_REQUEST_TIME_WINDOW_SECONDS = int(os.environ.get("INCOMING_REQUEST_TIME_WINDOW_SECONDS", 3600))
|
|
54
57
|
|
{robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/playbooks/prometheus_enrichment_utils.py
RENAMED
|
@@ -16,7 +16,11 @@ from robusta.core.model.base_params import (
|
|
|
16
16
|
ResourceChartItemType,
|
|
17
17
|
ResourceChartResourceType,
|
|
18
18
|
)
|
|
19
|
-
from robusta.core.model.env_vars import
|
|
19
|
+
from robusta.core.model.env_vars import (
|
|
20
|
+
FLOAT_PRECISION_LIMIT,
|
|
21
|
+
PROMETHEUS_REQUEST_TIMEOUT_SECONDS,
|
|
22
|
+
PROMETHEUS_TENANT_LABEL,
|
|
23
|
+
)
|
|
20
24
|
from robusta.core.reporting.blocks import GraphBlock, PrometheusBlock, PrometheusBlockLineData
|
|
21
25
|
from robusta.core.reporting.charts import XYChart
|
|
22
26
|
from robusta.core.reporting.custom_rendering import charts_style
|
|
@@ -61,6 +65,16 @@ def __prepare_promql_query(provided_labels: Dict[Any, Any], promql_query_templat
|
|
|
61
65
|
return promql_query
|
|
62
66
|
|
|
63
67
|
|
|
68
|
+
def with_namespace_tenant(prometheus_params: PrometheusParams, namespace: Optional[str]) -> PrometheusParams:
|
|
69
|
+
"""
|
|
70
|
+
Multi-tenant Prometheus: params whose queries go to the tenant of `namespace`, unless they already name one.
|
|
71
|
+
Returns a copy, since an action reuses its params for several graphs.
|
|
72
|
+
"""
|
|
73
|
+
if not PROMETHEUS_TENANT_LABEL or prometheus_params.namespace or not namespace:
|
|
74
|
+
return prometheus_params
|
|
75
|
+
return prometheus_params.copy(update={"namespace": namespace})
|
|
76
|
+
|
|
77
|
+
|
|
64
78
|
def get_node_internal_ip(node: Node) -> str:
|
|
65
79
|
internal_ip = next(addr.address for addr in node.status.addresses if addr.type == "InternalIP")
|
|
66
80
|
return internal_ip
|
|
@@ -495,6 +509,10 @@ def create_graph_enrichment(
|
|
|
495
509
|
hide_legends: Optional[bool] = False,
|
|
496
510
|
metrics_legends_labels: Optional[List[str]] = None,
|
|
497
511
|
) -> GraphBlock:
|
|
512
|
+
# Only a query that fills in $namespace is about that namespace. Node queries aren't, even when the labels have
|
|
513
|
+
# one (e.g. the exporter's namespace on a node alert), so they keep the default tenant
|
|
514
|
+
if "namespace" in Template(promql_query).get_identifiers():
|
|
515
|
+
prometheus_params = with_namespace_tenant(prometheus_params, labels.get("namespace"))
|
|
498
516
|
promql_query = __prepare_promql_query(labels, promql_query)
|
|
499
517
|
chart, prom_block = create_chart_from_prometheus_query(
|
|
500
518
|
prometheus_params,
|
{robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/sinks/robusta/dal/supabase_dal.py
RENAMED
|
@@ -5,6 +5,7 @@ from datetime import datetime
|
|
|
5
5
|
import os
|
|
6
6
|
import threading
|
|
7
7
|
from typing import Any, Dict, List, Optional, Tuple
|
|
8
|
+
from urllib.parse import urlparse
|
|
8
9
|
from uuid import uuid4
|
|
9
10
|
from cachetools import TTLCache
|
|
10
11
|
import httpx
|
|
@@ -89,14 +90,55 @@ KEY_CACHE = TTLCache(maxsize=1, ttl=24 * 60 * 60)
|
|
|
89
90
|
retry=retry_if_exception_type((requests.ConnectionError, requests.Timeout)),
|
|
90
91
|
reraise=True,
|
|
91
92
|
)
|
|
92
|
-
def _request_supabase_api_key(params: dict) -> Optional[str]:
|
|
93
|
-
url = f"{
|
|
93
|
+
def _request_supabase_api_key(api_endpoint: str, params: dict) -> Optional[str]:
|
|
94
|
+
url = f"{api_endpoint}/api/config/supabase-keys"
|
|
94
95
|
response = requests.get(url, params=params, timeout=10)
|
|
95
96
|
response.raise_for_status()
|
|
96
97
|
return response.json().get("api_key")
|
|
97
98
|
|
|
98
99
|
|
|
99
|
-
def
|
|
100
|
+
def _hostname(url: str) -> str:
|
|
101
|
+
try:
|
|
102
|
+
return (urlparse(url).hostname or "").lower().rstrip(".")
|
|
103
|
+
except ValueError:
|
|
104
|
+
return ""
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
def _is_robusta_saas_url(url: str) -> bool:
|
|
108
|
+
host = _hostname(url)
|
|
109
|
+
return host == "robusta.dev" or host.endswith((".robusta.dev", ".supabase.co"))
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
# Each SaaS store's key is served by its own region's API. Helm values generated before 2026-05 leave
|
|
113
|
+
# ROBUSTA_API_ENDPOINT on the US default even for EU/AP accounts.
|
|
114
|
+
SAAS_STORE_KEY_ENDPOINTS = {
|
|
115
|
+
# each region's custom domain and the Supabase project domain it points to
|
|
116
|
+
"sp.robusta.dev": "https://api.robusta.dev",
|
|
117
|
+
"xvyhpoxfmtpuqqeyqkso.supabase.co": "https://api.robusta.dev",
|
|
118
|
+
"sp.eu.robusta.dev": "https://api.eu.robusta.dev",
|
|
119
|
+
"fdeazqbagpxzlaumbahw.supabase.co": "https://api.eu.robusta.dev",
|
|
120
|
+
"sp.ap.robusta.dev": "https://api.ap.robusta.dev",
|
|
121
|
+
"xvtsnzetsdaiyobgdlic.supabase.co": "https://api.ap.robusta.dev",
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
def should_fetch_keys_from_saas(store_url: str) -> bool:
|
|
126
|
+
"""Whether the relay at ROBUSTA_API_ENDPOINT can hand out an api key for this store.
|
|
127
|
+
|
|
128
|
+
Robusta's SaaS relay only holds keys for Robusta's SaaS stores. A self-hosted runner
|
|
129
|
+
whose ROBUSTA_API_ENDPOINT was left on the SaaS default would leave the cluster for a
|
|
130
|
+
key that cannot sign in to its own store, and egress policies alert on that (ROB-1743).
|
|
131
|
+
"""
|
|
132
|
+
return not _is_robusta_saas_url(ROBUSTA_API_ENDPOINT) or _is_robusta_saas_url(store_url)
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
def fetch_supabase_api_key(account_id: str, cluster: str, store_url: str) -> Optional[str]:
|
|
136
|
+
if not should_fetch_keys_from_saas(store_url):
|
|
137
|
+
logging.info(
|
|
138
|
+
f"Not fetching the api key from {ROBUSTA_API_ENDPOINT}: it is Robusta SaaS and the store "
|
|
139
|
+
f"host '{_hostname(store_url)}' is not. Using the api key from the Robusta token."
|
|
140
|
+
)
|
|
141
|
+
return None
|
|
100
142
|
params = {
|
|
101
143
|
"account_id": account_id,
|
|
102
144
|
"cluster": cluster,
|
|
@@ -104,7 +146,8 @@ def fetch_supabase_api_key(account_id: str, cluster: str) -> Optional[str]:
|
|
|
104
146
|
"component_version": RUNNER_VERSION,
|
|
105
147
|
}
|
|
106
148
|
try:
|
|
107
|
-
|
|
149
|
+
api_endpoint = SAAS_STORE_KEY_ENDPOINTS.get(_hostname(store_url), ROBUSTA_API_ENDPOINT)
|
|
150
|
+
return _request_supabase_api_key(api_endpoint, params)
|
|
108
151
|
except Exception as e:
|
|
109
152
|
logging.warning(f"Failed to fetch the api key from relay: {e}")
|
|
110
153
|
return None
|
|
@@ -157,7 +200,7 @@ class SupabaseDal(AccountResourceFetcher):
|
|
|
157
200
|
|
|
158
201
|
def __connect(self, options: ClientOptions):
|
|
159
202
|
self.options = options
|
|
160
|
-
relay_key = fetch_supabase_api_key(self.account_id, self.cluster)
|
|
203
|
+
relay_key = fetch_supabase_api_key(self.account_id, self.cluster, self.url)
|
|
161
204
|
for key in filter(None, (KEY_CACHE.pop("key", None), relay_key)):
|
|
162
205
|
try:
|
|
163
206
|
self.__login(key, options)
|
|
@@ -815,16 +815,16 @@ class RobustaSink(SinkBase, EventHandler):
|
|
|
815
815
|
def is_holmes_slackbot_connected(self) -> bool:
|
|
816
816
|
if 'status' in _holmes_slackbot_cache:
|
|
817
817
|
return _holmes_slackbot_cache['status']
|
|
818
|
-
session_token = self.dal.get_session_token()
|
|
819
818
|
try:
|
|
820
819
|
message_json = {
|
|
821
|
-
"session_token":
|
|
820
|
+
"session_token": self.dal.get_session_token(),
|
|
822
821
|
"account_id": self.account_id,
|
|
823
822
|
}
|
|
824
823
|
response = requests.post(
|
|
825
824
|
RUNNER_GET_HOLMES_SLACKBOT_INFO,
|
|
826
825
|
json=message_json,
|
|
827
|
-
headers={"Content-Type": "application/json"}
|
|
826
|
+
headers={"Content-Type": "application/json"},
|
|
827
|
+
timeout=10,
|
|
828
828
|
)
|
|
829
829
|
response.raise_for_status()
|
|
830
830
|
is_connected = bool(response.json().get("integrations"))
|
|
@@ -3,6 +3,10 @@ from typing import Optional
|
|
|
3
3
|
from pydantic.v1 import BaseModel
|
|
4
4
|
|
|
5
5
|
from robusta.core.triggers.container_oom_killed_trigger import ContainerOOMKilledTrigger
|
|
6
|
+
from robusta.core.triggers.deployment_rollout_trigger import (
|
|
7
|
+
DeploymentRolloutCompleteTrigger,
|
|
8
|
+
DeploymentRolloutFailureTrigger,
|
|
9
|
+
)
|
|
6
10
|
from robusta.core.triggers.error_event_trigger import (
|
|
7
11
|
WarningEventCreateTrigger,
|
|
8
12
|
WarningEventDeleteTrigger,
|
|
@@ -25,6 +29,8 @@ class CustomTriggers(BaseModel):
|
|
|
25
29
|
on_image_pull_backoff: Optional[PodImagePullBackoffTrigger]
|
|
26
30
|
on_pod_crash_loop: Optional[PodCrashLoopTrigger]
|
|
27
31
|
on_job_failure: Optional[JobFailedTrigger]
|
|
32
|
+
on_deployment_rollout_complete: Optional[DeploymentRolloutCompleteTrigger]
|
|
33
|
+
on_deployment_rollout_failure: Optional[DeploymentRolloutFailureTrigger]
|
|
28
34
|
on_pod_oom_killed: Optional[PodOOMKilledTrigger]
|
|
29
35
|
on_pod_evicted: Optional[PodEvictedTrigger]
|
|
30
36
|
on_container_oom_killed: Optional[ContainerOOMKilledTrigger]
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import re
|
|
2
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
3
|
+
|
|
4
|
+
from hikaru.model.rel_1_26 import Deployment, DeploymentCondition
|
|
5
|
+
|
|
6
|
+
from robusta.core.model.events import ExecutionBaseEvent
|
|
7
|
+
from robusta.core.playbooks.base_trigger import TriggerEvent
|
|
8
|
+
from robusta.core.reporting.base import Finding
|
|
9
|
+
from robusta.integrations.kubernetes.autogenerated.triggers import DeploymentChangeEvent, DeploymentUpdateTrigger
|
|
10
|
+
from robusta.integrations.kubernetes.base_triggers import K8sTriggerEvent
|
|
11
|
+
from robusta.utils.scope import ScopeParams
|
|
12
|
+
|
|
13
|
+
NEW_RS_AVAILABLE_REASON = "NewReplicaSetAvailable"
|
|
14
|
+
TIMED_OUT_REASON = "ProgressDeadlineExceeded"
|
|
15
|
+
PAUSE_REASONS = ("DeploymentPaused", "DeploymentResumed")
|
|
16
|
+
REVISION_ANNOTATION = "deployment.kubernetes.io/revision"
|
|
17
|
+
# Every Progressing message names the ReplicaSet:
|
|
18
|
+
# `ReplicaSet "x" has successfully progressed.`, `Created new replica set "x"`
|
|
19
|
+
REPLICASET_IN_MESSAGE = re.compile(r'replica ?set "([^"]+)"', re.IGNORECASE)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def get_progressing_condition(deployment: Optional[Deployment]) -> Optional[DeploymentCondition]:
|
|
23
|
+
if not deployment or not deployment.status or not deployment.status.conditions:
|
|
24
|
+
return None
|
|
25
|
+
return next((c for c in deployment.status.conditions if c.type == "Progressing"), None)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def get_rollout_revision(deployment: Deployment) -> Dict[str, Any]:
|
|
29
|
+
"""The revision a Deployment was on: its revision number, the ReplicaSet that runs it and its images.
|
|
30
|
+
|
|
31
|
+
Old ReplicaSets are kept (revisionHistoryLimit), so the ReplicaSet can still be inspected after the
|
|
32
|
+
Deployment rolls out a newer revision.
|
|
33
|
+
"""
|
|
34
|
+
pod_spec = deployment.spec.template.spec if deployment.spec and deployment.spec.template else None
|
|
35
|
+
rollout = {
|
|
36
|
+
"revision": None,
|
|
37
|
+
"replicaset": None,
|
|
38
|
+
"images": {c.name: c.image for c in pod_spec.containers} if pod_spec else {},
|
|
39
|
+
}
|
|
40
|
+
# Until the controller syncs a spec change, the revision and ReplicaSet still describe the previous template
|
|
41
|
+
if not deployment.status or not _is_spec_observed(deployment):
|
|
42
|
+
return rollout
|
|
43
|
+
|
|
44
|
+
annotations = (deployment.metadata.annotations if deployment.metadata else None) or {}
|
|
45
|
+
condition = get_progressing_condition(deployment)
|
|
46
|
+
match = REPLICASET_IN_MESSAGE.search(condition.message or "") if condition else None
|
|
47
|
+
rollout["revision"] = annotations.get(REVISION_ANNOTATION)
|
|
48
|
+
rollout["replicaset"] = match.group(1) if match else None
|
|
49
|
+
return rollout
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def _is_spec_observed(deployment: Deployment) -> bool:
|
|
53
|
+
return (deployment.status.observedGeneration or 0) >= (deployment.metadata.generation or 0)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def _has_only_updated_replicas(deployment: Deployment) -> bool:
|
|
57
|
+
status = deployment.status
|
|
58
|
+
desired = deployment.spec.replicas if deployment.spec.replicas is not None else 1
|
|
59
|
+
updated = status.updatedReplicas or 0
|
|
60
|
+
return updated == desired and (status.replicas or 0) == updated and (status.availableReplicas or 0) == updated
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def is_rollout_complete_transition(deployment: Deployment, old_deployment: Optional[Deployment]) -> bool:
|
|
64
|
+
"""True on the one update in which a rollout finishes.
|
|
65
|
+
|
|
66
|
+
The controller sets Progressing to NewReplicaSetAvailable, naming the new ReplicaSet in the
|
|
67
|
+
message, only when a rollout completes; scaling and informer resyncs leave it untouched.
|
|
68
|
+
Deployments with progressDeadlineSeconds disabled have no Progressing condition and never fire.
|
|
69
|
+
"""
|
|
70
|
+
condition = get_progressing_condition(deployment)
|
|
71
|
+
if condition is None or condition.reason != NEW_RS_AVAILABLE_REASON or not _is_spec_observed(deployment):
|
|
72
|
+
return False
|
|
73
|
+
old_condition = get_progressing_condition(old_deployment)
|
|
74
|
+
if old_condition is None:
|
|
75
|
+
return True
|
|
76
|
+
if old_condition.reason in PAUSE_REASONS:
|
|
77
|
+
# Resuming re-sets NewReplicaSetAvailable even when nothing was rolled out while paused
|
|
78
|
+
return not _has_only_updated_replicas(old_deployment)
|
|
79
|
+
return not (old_condition.reason == NEW_RS_AVAILABLE_REASON and old_condition.message == condition.message)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
def is_rollout_failure_transition(deployment: Deployment, old_deployment: Optional[Deployment]) -> bool:
|
|
83
|
+
"""True on the update in which a rollout exceeds its progressDeadlineSeconds."""
|
|
84
|
+
condition = get_progressing_condition(deployment)
|
|
85
|
+
if condition is None or condition.reason != TIMED_OUT_REASON:
|
|
86
|
+
return False
|
|
87
|
+
old_condition = get_progressing_condition(old_deployment)
|
|
88
|
+
return not (
|
|
89
|
+
old_condition and old_condition.reason == TIMED_OUT_REASON and old_condition.message == condition.message
|
|
90
|
+
)
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
class _DeploymentRolloutTrigger(DeploymentUpdateTrigger):
|
|
94
|
+
outcome: ClassVar[str] = ""
|
|
95
|
+
|
|
96
|
+
def __init__(
|
|
97
|
+
self,
|
|
98
|
+
name_prefix: str = None,
|
|
99
|
+
namespace_prefix: str = None,
|
|
100
|
+
labels_selector: str = None,
|
|
101
|
+
scope: ScopeParams = None,
|
|
102
|
+
):
|
|
103
|
+
super().__init__(
|
|
104
|
+
name_prefix=name_prefix,
|
|
105
|
+
namespace_prefix=namespace_prefix,
|
|
106
|
+
labels_selector=labels_selector,
|
|
107
|
+
scope=scope,
|
|
108
|
+
)
|
|
109
|
+
|
|
110
|
+
@staticmethod
|
|
111
|
+
def is_transition(deployment: Deployment, old_deployment: Optional[Deployment]) -> bool:
|
|
112
|
+
raise NotImplementedError
|
|
113
|
+
|
|
114
|
+
def should_fire(self, event: TriggerEvent, playbook_id: str, build_context: Dict[str, Any]):
|
|
115
|
+
if not super().should_fire(event, playbook_id, build_context):
|
|
116
|
+
return False
|
|
117
|
+
|
|
118
|
+
if not isinstance(event, K8sTriggerEvent):
|
|
119
|
+
return False
|
|
120
|
+
|
|
121
|
+
exec_event = self.build_execution_event(event, {}, build_context)
|
|
122
|
+
if not isinstance(exec_event, DeploymentChangeEvent):
|
|
123
|
+
return False
|
|
124
|
+
|
|
125
|
+
return self.is_transition(exec_event.obj, exec_event.old_obj)
|
|
126
|
+
|
|
127
|
+
def build_execution_event(
|
|
128
|
+
self, event: K8sTriggerEvent, sink_findings: Dict[str, List[Finding]], build_context: Dict[str, Any]
|
|
129
|
+
) -> Optional[ExecutionBaseEvent]:
|
|
130
|
+
exec_event = super().build_execution_event(event, sink_findings, build_context)
|
|
131
|
+
if isinstance(exec_event, DeploymentChangeEvent):
|
|
132
|
+
# Names the outcome only, so it is the same for every rollout of one Deployment
|
|
133
|
+
meta = exec_event.obj.metadata
|
|
134
|
+
exec_event.description = f"Rollout of Deployment `{meta.name}` in namespace `{meta.namespace}` {self.outcome}"
|
|
135
|
+
return exec_event
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
class DeploymentRolloutCompleteTrigger(_DeploymentRolloutTrigger):
|
|
139
|
+
"""
|
|
140
|
+
Fires once when a Deployment rollout completes: every replica runs the new pod template and is available.
|
|
141
|
+
"""
|
|
142
|
+
|
|
143
|
+
outcome: ClassVar[str] = "completed"
|
|
144
|
+
|
|
145
|
+
@staticmethod
|
|
146
|
+
def is_transition(deployment: Deployment, old_deployment: Optional[Deployment]) -> bool:
|
|
147
|
+
return is_rollout_complete_transition(deployment, old_deployment)
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
class DeploymentRolloutFailureTrigger(_DeploymentRolloutTrigger):
|
|
151
|
+
"""
|
|
152
|
+
Fires when a Deployment rollout fails to make progress within its progressDeadlineSeconds.
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
outcome: ClassVar[str] = "failed"
|
|
156
|
+
|
|
157
|
+
@staticmethod
|
|
158
|
+
def is_transition(deployment: Deployment, old_deployment: Optional[Deployment]) -> bool:
|
|
159
|
+
return is_rollout_failure_transition(deployment, old_deployment)
|
|
@@ -19,8 +19,11 @@ from robusta.core.model.env_vars import (
|
|
|
19
19
|
DISABLE_PROMETHEUS_DISCOVERY,
|
|
20
20
|
HOLMES_DISCOVERY_NAMESPACE,
|
|
21
21
|
PROMETHEUS_SSL_ENABLED,
|
|
22
|
+
PROMETHEUS_TENANT_HEADER,
|
|
23
|
+
PROMETHEUS_TENANT_LABEL,
|
|
22
24
|
SERVICE_CACHE_TTL_SEC,
|
|
23
25
|
)
|
|
26
|
+
from robusta.integrations.kubernetes.api_client_utils import get_namespace_labels
|
|
24
27
|
from robusta.utils.service_discovery import find_service_url
|
|
25
28
|
|
|
26
29
|
AZURE_RESOURCE = os.environ.get("AZURE_RESOURCE", "https://prometheus.monitor.azure.com")
|
|
@@ -39,6 +42,21 @@ AWS_ASSUME_ROLE = os.environ.get("AWS_ASSUME_ROLE")
|
|
|
39
42
|
VICTORIA_METRICS_CONFIGURED = os.environ.get("VICTORIA_METRICS_CONFIGURED", "false").lower() == "true"
|
|
40
43
|
|
|
41
44
|
|
|
45
|
+
def get_namespace_tenant(namespace: str) -> Optional[str]:
|
|
46
|
+
"""
|
|
47
|
+
Multi-tenant Prometheus (e.g. Mimir): the tenant of a namespace, which is the value of its PROMETHEUS_TENANT_LABEL
|
|
48
|
+
label, read from the cached namespace data (NAMESPACE_DATA_TTL). None when the namespace has no such label.
|
|
49
|
+
Call it only with PROMETHEUS_TENANT_LABEL set.
|
|
50
|
+
"""
|
|
51
|
+
try:
|
|
52
|
+
tenant = (get_namespace_labels(namespace) or {}).get(PROMETHEUS_TENANT_LABEL)
|
|
53
|
+
except KeyError: # a namespace created after the last reload, or deleted
|
|
54
|
+
tenant = None
|
|
55
|
+
if not tenant:
|
|
56
|
+
logging.debug(f"No '{PROMETHEUS_TENANT_LABEL}' label on namespace {namespace}, using the default tenant")
|
|
57
|
+
return tenant
|
|
58
|
+
|
|
59
|
+
|
|
42
60
|
def generate_prometheus_config(prometheus_params: PrometheusParams) -> PrometheusConfig:
|
|
43
61
|
is_victoria_metrics = VICTORIA_METRICS_CONFIGURED
|
|
44
62
|
url: Optional[str] = (
|
|
@@ -63,6 +81,12 @@ def generate_prometheus_config(prometheus_params: PrometheusParams) -> Prometheu
|
|
|
63
81
|
if prometheus_params.prometheus_additional_headers:
|
|
64
82
|
baseconfig["headers"] = prometheus_params.prometheus_additional_headers
|
|
65
83
|
|
|
84
|
+
if PROMETHEUS_TENANT_LABEL and prometheus_params.namespace:
|
|
85
|
+
tenant = get_namespace_tenant(prometheus_params.namespace)
|
|
86
|
+
if tenant:
|
|
87
|
+
# A new dict that replaces any tenant header from global_config or the request, leaving theirs unchanged
|
|
88
|
+
baseconfig["headers"] = {**baseconfig.get("headers", {}), PROMETHEUS_TENANT_HEADER: tenant}
|
|
89
|
+
|
|
66
90
|
# aws config
|
|
67
91
|
if AWS_REGION:
|
|
68
92
|
return AWSPrometheusConfig(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/discovery/top_service_resolver.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/persistency/scheduled_jobs_states_dal.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{robusta_api-0.53.0 → robusta_api-0.54.0}/src/robusta/core/playbooks/container_playbook_utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|