Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Brandstedt committed May 23, 2024
1 parent 31ca9ba commit 22b4c44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/object/object.go
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ func (c *external) resolveReferencesOnObserverLookup(ctx context.Context, obj *v

// skip of secret type to not leak in to MR. secret lookup is done in Create/Update/Delete functions
// applied by resolveReferencesSecret from the functions.
if ref.PatchesFrom.DependsOn.Kind == secretKind {
if ref.PatchesFrom != nil && ref.PatchesFrom.DependsOn.Kind == secretKind {
continue
}

Expand Down

0 comments on commit 22b4c44

Please sign in to comment.