Skip to content

Commit 1efd0f6

Browse files
Merge pull request openstack-k8s-operators#637 from mumesan/OSPRH-18888
Remove TODO in validateDelete function <JIRA: OSPRH-18888>
2 parents 9955aeb + 3251b4e commit 1efd0f6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

api/v1beta1/ironic_webhook.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,10 @@ func (spec *IronicSpecCore) ValidateUpdate(old IronicSpecCore, basePath *field.P
204204
return allErrs
205205
}
206206

207-
// ValidateDelete implements webhook.Validator so a webhook will be registered for the type
207+
// NOTE: webhook.Validator requires this function to exist even as a no-op
208208
func (r *Ironic) ValidateDelete() (admission.Warnings, error) {
209209
ironiclog.Info("validate delete", "name", r.Name)
210210

211-
// TODO(user): fill in your validation logic upon object deletion.
212211
return nil, nil
213212
}
214213

0 commit comments

Comments
 (0)