robusta-api 0.53.0__tar.gz → 0.54.0a0__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.0a0}/PKG-INFO +1 -1
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/pyproject.toml +1 -1
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/_version.py +1 -1
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/triggers/custom_triggers.py +6 -0
- robusta_api-0.54.0a0/src/robusta/core/triggers/deployment_rollout_trigger.py +159 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/LICENSE +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/api/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/clients/robusta_client.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/discovery/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/discovery/discovery.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/discovery/resource_names.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/discovery/top_service_resolver.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/discovery/utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/exceptions.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/model/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/model/base_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/model/cluster_status.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/model/env_vars.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/model/events.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/model/helm_release.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/model/jobs.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/model/k8s_operation_type.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/model/namespaces.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/model/nodes.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/model/openshift_group.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/model/pods.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/model/runner_config.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/model/services.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/persistency/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/persistency/in_memory.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/persistency/scheduled_jobs_states_dal.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/playbooks/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/playbooks/actions_registry.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/playbooks/base_trigger.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/playbooks/common.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/playbooks/container_playbook_utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/playbooks/crash_reporter.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/playbooks/generation.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/playbooks/internal/CRD_API_DOCUMENTATION.md +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/playbooks/internal/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/playbooks/internal/ai_integration.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/playbooks/internal/crds.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/playbooks/internal/discovery_events.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/playbooks/job_utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/playbooks/node_enrichment_utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/playbooks/node_playbook_utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/playbooks/oom_killer_utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/playbooks/playbook_utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/playbooks/playbooks_event_handler.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/playbooks/playbooks_event_handler_impl.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/playbooks/pod_utils/crashloop_utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/playbooks/pod_utils/imagepull_utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/playbooks/pod_utils/pending_pod_utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/playbooks/prometheus_enrichment_utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/playbooks/trigger.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/pubsub/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/pubsub/event_emitter.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/pubsub/event_subscriber.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/pubsub/events_pubsub.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/reporting/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/reporting/action_requests.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/reporting/base.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/reporting/blocks.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/reporting/callbacks.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/reporting/charts.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/reporting/consts.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/reporting/custom_rendering.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/reporting/finding_subjects.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/reporting/holmes.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/reporting/url_helpers.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/reporting/utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/schedule/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/schedule/model.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/schedule/scheduler.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/common/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/common/channel_transformer.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/common/destination_override.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/common/html_tools.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/datadog/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/datadog/datadog_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/datadog/datadog_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/discord/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/discord/discord_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/discord/discord_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/file/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/file/file_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/file/file_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/file/object_traverser.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/google_chat/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/google_chat/google_chat.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/google_chat/google_chat_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/incidentio/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/incidentio/incidentio_api.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/incidentio/incidentio_client.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/incidentio/incidentio_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/incidentio/incidentio_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/jira/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/jira/jira_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/jira/jira_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/kafka/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/kafka/kafka_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/kafka/kafka_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/mail/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/mail/mail_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/mail/mail_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/mattermost/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/mattermost/mattermost_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/mattermost/mattermost_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/msteams/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/msteams/msteams_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/msteams/msteams_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/msteams/msteams_webhook_tranformer.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/msteams_graph/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/msteams_graph/msteams_graph_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/msteams_graph/msteams_graph_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/opsgenie/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/opsgenie/opsgenie_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/opsgenie/opsgenie_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/pagerduty/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/pagerduty/pagerduty_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/pagerduty/pagerduty_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/pushover/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/pushover/pushover_client.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/pushover/pushover_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/pushover/pushover_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/robusta/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/robusta/dal/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/robusta/dal/model_conversion.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/robusta/dal/supabase_dal.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/robusta/discovery_metrics.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/robusta/prometheus_discovery_utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/robusta/robusta_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/robusta/robusta_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/robusta/rrm/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/robusta/rrm/account_resource_fetcher.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/robusta/rrm/base_resource_manager.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/robusta/rrm/prometheus_alert_resource_manager.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/robusta/rrm/rrm.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/robusta/rrm/types.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/rocketchat/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/rocketchat/rocketchat_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/rocketchat/rocketchat_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/servicenow/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/servicenow/servicenow_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/servicenow/servicenow_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/sink_base.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/sink_base_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/sink_config.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/sink_factory.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/slack/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/slack/preview/slack_sink_preview.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/slack/preview/slack_sink_preview_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/slack/slack_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/slack/slack_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/slack/templates/header.j2 +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/slack/templates/template_loader.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/telegram/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/telegram/telegram_client.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/telegram/telegram_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/telegram/telegram_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/timing.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/transformer.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/victorops/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/victorops/victorops_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/victorops/victorops_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/webex/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/webex/webex_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/webex/webex_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/webhook/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/webhook/webhook_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/webhook/webhook_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/yamessenger/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/yamessenger/yamessenger_client.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/yamessenger/yamessenger_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/yamessenger/yamessenger_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/zulip/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/zulip/zulip_sink.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/zulip/zulip_sink_params.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/stream/utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/triggers/container_oom_killed_trigger.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/triggers/error_event_trigger.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/triggers/helm_releases_triggers.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/triggers/job_failed_trigger.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/triggers/multi_resources_trigger.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/triggers/oom_killed_trigger_base.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/triggers/pod_crash_loop_trigger.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/triggers/pod_evicted_trigger.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/triggers/pod_image_pull_backoff.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/triggers/pod_oom_killed_trigger.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/argocd/argocd_client.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/common/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/common/requests.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/discord/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/discord/sender.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/git/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/git/git_repo.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/git/well_known_hosts.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/google_chat/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/google_chat/sender.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/grafana.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/helper.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/jira/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/jira/client.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/jira/sender.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/kubernetes/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/kubernetes/api_client_utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/kubernetes/autogenerated/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/kubernetes/autogenerated/events.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/kubernetes/autogenerated/models.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/kubernetes/autogenerated/triggers.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/kubernetes/autogenerated/v1/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/kubernetes/autogenerated/v1/models.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/kubernetes/base_event.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/kubernetes/base_triggers.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/kubernetes/custom_crds.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/kubernetes/custom_models.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/kubernetes/model_not_found_exception.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/kubernetes/process_utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/kubernetes/templates.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/mail/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/mail/sender.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/mattermost/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/mattermost/client.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/mattermost/sender.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/msteams/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/msteams/graph/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/msteams/graph/graph_client.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/msteams/graph/graph_msg.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/msteams/graph/sender.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/msteams/msteams_adaptive_card_files.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/msteams/msteams_adaptive_card_files_image.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/msteams/msteams_adaptive_card_files_text.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/msteams/msteams_elements/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/msteams/msteams_elements/msteams_action.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/msteams/msteams_elements/msteams_base.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/msteams/msteams_elements/msteams_card.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/msteams/msteams_elements/msteams_column.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/msteams/msteams_elements/msteams_container.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/msteams/msteams_elements/msteams_images.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/msteams/msteams_elements/msteams_table.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/msteams/msteams_elements/msteams_text_block.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/msteams/msteams_mark_down_fix_url.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/msteams/msteams_msg.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/msteams/sender.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/openshift/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/openshift/token.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/prometheus/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/prometheus/models.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/prometheus/trigger.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/prometheus/utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/receiver.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/resource_analysis/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/resource_analysis/cpu_analyzer.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/resource_analysis/memory_analyzer.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/resource_analysis/node_cpu_analyzer.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/resource_analysis/prometheus_analyzer.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/rocketchat/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/rocketchat/sender.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/scheduled/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/scheduled/event.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/scheduled/models.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/scheduled/playbook_scheduler.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/scheduled/playbook_scheduler_manager.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/scheduled/playbook_scheduler_manager_impl.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/scheduled/trigger.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/servicenow/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/servicenow/sender.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/slack/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/slack/sender.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/webex/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/webex/sender.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/zulip/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/integrations/zulip/sender.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/model/alert_relabel_config.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/model/config.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/model/playbook_action.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/model/playbook_definition.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/patch/patch.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/runner/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/runner/config_loader.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/runner/log_init.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/runner/main.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/runner/not_found_exception.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/runner/object_updater.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/runner/process_setup.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/runner/ssl_utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/runner/telemetry.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/runner/telemetry_service.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/runner/web.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/runner/web_api.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/utils/__init__.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/utils/archive.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/utils/auth_provider.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/utils/base64_utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/utils/cluster_provider_discovery.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/utils/common.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/utils/decorators.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/utils/docs.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/utils/documented_pydantic.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/utils/error_codes.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/utils/file_system_watcher.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/utils/function_hashes.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/utils/json_schema.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/utils/parsing.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/utils/rate_limiter.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/utils/scope.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/utils/server_start.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/utils/service_discovery.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/utils/silence_utils.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/utils/stack_tracer.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/utils/task_queue.py +0 -0
- {robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/utils/time_utils.py +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
# this is updated by .github/workflows/release.yaml
|
|
2
|
-
__version__ = "0.
|
|
2
|
+
__version__ = "0.54.0-alpha"
|
|
@@ -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)
|
|
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.0a0}/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
|
|
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.0a0}/src/robusta/core/playbooks/container_playbook_utils.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.0a0}/src/robusta/core/playbooks/internal/ai_integration.py
RENAMED
|
File without changes
|
|
File without changes
|
{robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/playbooks/internal/discovery_events.py
RENAMED
|
File without changes
|
|
File without changes
|
{robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/playbooks/node_enrichment_utils.py
RENAMED
|
File without changes
|
{robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/playbooks/node_playbook_utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/playbooks/playbooks_event_handler.py
RENAMED
|
File without changes
|
|
File without changes
|
{robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/playbooks/pod_utils/crashloop_utils.py
RENAMED
|
File without changes
|
{robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/playbooks/pod_utils/imagepull_utils.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
|
|
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.0a0}/src/robusta/core/sinks/common/channel_transformer.py
RENAMED
|
File without changes
|
{robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/common/destination_override.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/datadog/datadog_sink_params.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/discord/discord_sink_params.py
RENAMED
|
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.0a0}/src/robusta/core/sinks/google_chat/google_chat.py
RENAMED
|
File without changes
|
{robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/google_chat/google_chat_params.py
RENAMED
|
File without changes
|
|
File without changes
|
{robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/incidentio/incidentio_api.py
RENAMED
|
File without changes
|
{robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/incidentio/incidentio_client.py
RENAMED
|
File without changes
|
{robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/incidentio/incidentio_sink.py
RENAMED
|
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.0a0}/src/robusta/core/sinks/kafka/kafka_sink_params.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.0a0}/src/robusta/core/sinks/mattermost/mattermost_sink.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/msteams/msteams_sink_params.py
RENAMED
|
File without changes
|
|
File without changes
|
{robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/msteams_graph/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/opsgenie/opsgenie_sink.py
RENAMED
|
File without changes
|
{robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/opsgenie/opsgenie_sink_params.py
RENAMED
|
File without changes
|
|
File without changes
|
{robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/pagerduty/pagerduty_sink.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/pushover/pushover_client.py
RENAMED
|
File without changes
|
{robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/pushover/pushover_sink.py
RENAMED
|
File without changes
|
{robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/pushover/pushover_sink_params.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/robusta/dal/model_conversion.py
RENAMED
|
File without changes
|
{robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/robusta/dal/supabase_dal.py
RENAMED
|
File without changes
|
{robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/robusta/discovery_metrics.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/robusta/robusta_sink_params.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
|
{robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/rocketchat/rocketchat_sink.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/servicenow/servicenow_sink.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
|
{robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/slack/slack_sink_params.py
RENAMED
|
File without changes
|
{robusta_api-0.53.0 → robusta_api-0.54.0a0}/src/robusta/core/sinks/slack/templates/header.j2
RENAMED
|
File without changes
|
|
File without changes
|