Skip to content

Commit

Permalink
Fix incorrect function call for security context constraints check
Browse files Browse the repository at this point in the history
Was initially using 'getSecurityContextConstraints' instead of
using 'getSecurityContextConstraintsConditions'
  • Loading branch information
courtneypacheco committed Aug 30, 2021
1 parent dc5f591 commit 7f75fcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/nodefeaturediscovery_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (r *NodeFeatureDiscoveryReconciler) Reconcile(ctx context.Context, req ctrl
}

// Check the status of the NFD Operator Worker SecurityContextConstraints
rstatus, err := r.getSecurityContextConstraints(ctx)
rstatus, err := r.getSecurityContextConstraintsConditions(ctx)
if rstatus.isDegraded {
return r.updateDegradedCondition(instance, err.Error(), err)

Expand Down

0 comments on commit 7f75fcb

Please sign in to comment.