Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pkg/controllers/runtime_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,11 @@ func (r *RuntimeReconciler) AddOwnerAndRequeue(ctx cruntime.ReconcileRequestCont

// GetRuntimeObjectMeta gets runtime object meta
func (r *RuntimeReconciler) GetRuntimeObjectMeta(ctx cruntime.ReconcileRequestContext) (objectMeta metav1.Object, err error) {
if ctx.Runtime == nil || reflect.ValueOf(ctx.Runtime).IsNil() {
err = fmt.Errorf("runtime is nil")
return
}

objectMetaAccessor, isOM := ctx.Runtime.(metav1.ObjectMetaAccessor)
if !isOM {
// return utils.RequeueIfError(fmt.Errorf("object is not ObjectMetaAccessor"))
Expand Down
Loading
Loading