Skip to content

Commit 9dd01cd

Browse files
authored
Provide version to RESTMapper in WorkloadIdentityBinding controller (#3666)
1 parent 353766e commit 9dd01cd

File tree

1 file changed

+1
-1
lines changed
  • porch/controllers/workloadidentitybindings/pkg/controllers/workloadidentitybinding

1 file changed

+1
-1
lines changed

porch/controllers/workloadidentitybindings/pkg/controllers/workloadidentitybinding/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ func (r *WorkloadIdentityBindingReconciler) updateServiceAccount(ctx context.Con
350350
return err
351351
}
352352

353-
mapping, err := r.restMapper.RESTMapping(corev1.SchemeGroupVersion.WithKind("ServiceAccount").GroupKind())
353+
mapping, err := r.restMapper.RESTMapping(corev1.SchemeGroupVersion.WithKind("ServiceAccount").GroupKind(), corev1.SchemeGroupVersion.Version)
354354
if err != nil {
355355
return err
356356
}

0 commit comments

Comments
 (0)