diff --git a/service_test.go b/service_test.go index 5927c9e..474dbd2 100644 --- a/service_test.go +++ b/service_test.go @@ -1799,6 +1799,7 @@ func (suite *MainTestSuite) TestRuntimeIncidents() { mandatoryName: false, customGUID: true, skipPutTests: false, + renameAllowed: true, } cmpFilters := cmp.FilterPath(func(p cmp.Path) bool { // "RuntimeIncident.RuntimeAlert.RuntimeAlertK8sDetails.HostNetwork" diff --git a/types/types.go b/types/types.go index fb074db..2af2adc 100644 --- a/types/types.go +++ b/types/types.go @@ -413,7 +413,7 @@ type RuntimeIncident struct { ResolveDayDate *time.Time `json:"resolveDayDate,omitempty" bson:"resolveDayDate,omitempty"` } -var runtimeIncidentReadOnlyFields = append([]string{"creationTimestamp", "creationDayDate"}, commonReadOnlyFieldsV1...) +var runtimeIncidentReadOnlyFields = append([]string{"creationTimestamp", "creationDayDate"}, commonReadOnlyFieldsAllowRename...) func (r *RuntimeIncident) GetReadOnlyFields() []string { readOnlyFields := runtimeIncidentReadOnlyFields