Skip to content

Commit 31f61a2

Browse files
committed
Initial implementation for CannotRetrieveUpdatesSRE
1 parent 53d07dc commit 31f61a2

File tree

4 files changed

+5
-14
lines changed

4 files changed

+5
-14
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ require (
2727
gopkg.in/yaml.v2 v2.4.0
2828
k8s.io/api v0.30.3
2929
k8s.io/apimachinery v0.30.3
30+
k8s.io/client-go v0.30.3
3031
sigs.k8s.io/controller-runtime v0.12.1
3132
)
3233

@@ -147,7 +148,6 @@ require (
147148
gopkg.in/ini.v1 v1.67.0 // indirect
148149
gopkg.in/yaml.v3 v3.0.1 // indirect
149150
k8s.io/cli-runtime v0.30.3 // indirect
150-
k8s.io/client-go v0.30.3 // indirect
151151
k8s.io/klog/v2 v2.120.1 // indirect
152152
k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 // indirect
153153
k8s.io/utils v0.0.0-20230726121419-3b25d923346b // indirect

pkg/investigations/CannotRetrieveUpdatesSRE/metadata.yaml

-12
This file was deleted.

pkg/investigations/registry.go

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package investigations
22

33
import (
4+
cannotretrieveupdatessre "github.com/openshift/configuration-anomaly-detection/pkg/investigations/cannotretrieveupdatessre"
45
"github.com/openshift/configuration-anomaly-detection/pkg/investigations/ccam"
56
"github.com/openshift/configuration-anomaly-detection/pkg/investigations/chgm"
67
"github.com/openshift/configuration-anomaly-detection/pkg/investigations/clustermonitoringerrorbudgetburn"
@@ -16,6 +17,7 @@ var availableInvestigations = []investigation.Investigation{
1617
&clustermonitoringerrorbudgetburn.Investigation{},
1718
&cpd.Investigation{},
1819
&insightsoperatordown.Investigation{},
20+
&cannotretrieveupdatessre.Investigation{},
1921
}
2022

2123
// GetInvestigation returns the first Investigation that applies to the given alert title.

test/generate_incident.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -e
33

44
# Define the mapping of alert names to titles
@@ -8,6 +8,7 @@ declare -A alert_mapping=(
88
["ClusterProvisioningDelay"]="ClusterProvisioningDelay -"
99
["ClusterMonitoringErrorBudgetBurnSRE"]="ClusterMonitoringErrorBudgetBurnSRE Critical (1)"
1010
["InsightsOperatorDown"]="InsightsOperatorDown"
11+
["CannotRetrieveUpdatesSRE"]="CannotRetrieveUpdatesSRE"
1112
)
1213

1314
# Function to print help message

0 commit comments

Comments
 (0)