You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ul, err := w.list(ctx, res.APIGroup, res.APIVersion, res.APIResource.Kind, hasMorePages) returns an error so ul is null later on is and IF that increments the counter for errors but it continues till res.Instances += len(ul.Items) and since ul is in this case null it panics.
User cant see why it exits. In my case it was the issue that i used rolebinding instead of clusterrolebinding for service account. However simple return fix the behavior
The text was updated successfully, but these errors were encountered:
When running in container as cronjob i found following issue:
if
ul, err := w.list(ctx, res.APIGroup, res.APIVersion, res.APIResource.Kind, hasMorePages)
returns an error so ul is null later on is and IF that increments the counter for errors but it continues tillres.Instances += len(ul.Items)
and since ul is in this case null it panics.User cant see why it exits. In my case it was the issue that i used rolebinding instead of clusterrolebinding for service account. However simple return fix the behavior
The text was updated successfully, but these errors were encountered: