Skip to content

Commit dea975f

Browse files
committed
Fix ValidateUpdate for telemetrySpecCore webhook
Part of https://issues.redhat.com/browse/OSPRH-20362
1 parent fb90e2d commit dea975f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/v1beta1/telemetry_webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func (r TelemetrySpec) ValidateUpdate(old TelemetrySpec, basePath *field.Path, n
181181
return r.ValidateCreate(basePath, namespace)
182182
}
183183

184-
func (r TelemetrySpecCore) ValidateUpdate(old TelemetrySpec, basePath *field.Path, namespace string) field.ErrorList {
184+
func (r TelemetrySpecCore) ValidateUpdate(old TelemetrySpecCore, basePath *field.Path, namespace string) field.ErrorList {
185185
var allErrs field.ErrorList
186186
allErrs = append(allErrs, r.ValidateTelemetryTopology(basePath, namespace)...)
187187
return allErrs

0 commit comments

Comments
 (0)