Skip to content

Commit

Permalink
Provide version to RESTMapper in WorkloadIdentityBinding controller (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mortent committed Nov 28, 2022
1 parent 353766e commit 9dd01cd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ func (r *WorkloadIdentityBindingReconciler) updateServiceAccount(ctx context.Con
return err
}

mapping, err := r.restMapper.RESTMapping(corev1.SchemeGroupVersion.WithKind("ServiceAccount").GroupKind())
mapping, err := r.restMapper.RESTMapping(corev1.SchemeGroupVersion.WithKind("ServiceAccount").GroupKind(), corev1.SchemeGroupVersion.Version)
if err != nil {
return err
}
Expand Down

0 comments on commit 9dd01cd

Please sign in to comment.