Skip to content

Commit a171761

Browse files
committed
Clean CR status message when necessary
1 parent 078acbe commit a171761

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/splunk/enterprise/util.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2145,6 +2145,7 @@ func fetchCurrentCRWithStatusUpdate(ctx context.Context, client splcommon.Contro
21452145
}
21462146

21472147
// CSPL-2626 - Update error
2148+
origCR.(*enterpriseApi.Standalone).Status.Message = ""
21482149
if (crError != nil) && ((*crError) != nil) {
21492150
origCR.(*enterpriseApi.Standalone).Status.Message = (*crError).Error()
21502151
}
@@ -2168,6 +2169,7 @@ func fetchCurrentCRWithStatusUpdate(ctx context.Context, client splcommon.Contro
21682169
}
21692170

21702171
// CSPL-2626 - Update error
2172+
origCR.(*enterpriseApi.LicenseManager).Status.Message = ""
21712173
if (crError != nil) && ((*crError) != nil) {
21722174
origCR.(*enterpriseApi.LicenseManager).Status.Message = (*crError).Error()
21732175
}
@@ -2182,6 +2184,7 @@ func fetchCurrentCRWithStatusUpdate(ctx context.Context, client splcommon.Contro
21822184
}
21832185

21842186
// CSPL-2626 - Update error
2187+
origCR.(*enterpriseApi.SearchHeadCluster).Status.Message = ""
21852188
if (crError != nil) && ((*crError) != nil) {
21862189
origCR.(*enterpriseApi.SearchHeadCluster).Status.Message = (*crError).Error()
21872190
}
@@ -2196,6 +2199,7 @@ func fetchCurrentCRWithStatusUpdate(ctx context.Context, client splcommon.Contro
21962199
}
21972200

21982201
// CSPL-2626 - Update error
2202+
origCR.(*enterpriseApi.IndexerCluster).Status.Message = ""
21992203
if (crError != nil) && ((*crError) != nil) {
22002204
origCR.(*enterpriseApi.IndexerCluster).Status.Message = (*crError).Error()
22012205
}
@@ -2219,6 +2223,7 @@ func fetchCurrentCRWithStatusUpdate(ctx context.Context, client splcommon.Contro
22192223
}
22202224

22212225
// CSPL-2626 - Update error
2226+
origCR.(*enterpriseApi.ClusterManager).Status.Message = ""
22222227
if (crError != nil) && ((*crError) != nil) {
22232228
origCR.(*enterpriseApi.ClusterManager).Status.Message = (*crError).Error()
22242229
}
@@ -2233,6 +2238,7 @@ func fetchCurrentCRWithStatusUpdate(ctx context.Context, client splcommon.Contro
22332238
}
22342239

22352240
// CSPL-2626 - Update error
2241+
origCR.(*enterpriseApi.MonitoringConsole).Status.Message = ""
22362242
if (crError != nil) && ((*crError) != nil) {
22372243
origCR.(*enterpriseApi.MonitoringConsole).Status.Message = (*crError).Error()
22382244
}

0 commit comments

Comments
 (0)