-
Notifications
You must be signed in to change notification settings - Fork 672
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Plugin Collector does not include group #5429
Comments
Thank you for opening your first issue here! 🛠 |
To address the issue where Flytepropeller's plugin collector fails to list objects due to missing group names in the Here's an example of how you can modify the func (r *ResourceLevelMonitor) collect(ctx context.Context) {
list := metav1.PartialObjectMetadataList{
TypeMeta: metav1.TypeMeta{
Kind: r.gvk.Kind,
APIVersion: fmt.Sprintf("%s/%s", r.gvk.Group, r.gvk.Version),
},
}
if err := r.cache.List(ctx, &list); err != nil {
logger.Warnf(ctx, "failed to list objects for %s.%s: %v", r.gvk.Kind, r.gvk.Version, err)
return
}
// ... rest of the function
} Would you like more details on how to implement this fix? Sources: This is an AI-generated response and your feedback is appreciated! Please leave a 👍 if this is helpful and 👎 if it is not. Mention @RunLLM to ask follow-up questions. See runllm.com for more! |
@trevormcguire would you be willing to submit a PR to correctly set the API version? |
@hamersaw sure, will work on that |
Describe the bug
Flytepropeller tracks how many objects there for each resource type (such as TfJob, PyTorchjob, etc). However, the plugin collector go client does not include group names in the apiVerison when searching for these resources (such as kubeflow/v1), so a warning is raised
failed to list objects for
when attempting to list them.flyte/flytepropeller/pkg/controller/nodes/task/k8s/plugin_collector.go
Lines 52 to 61 in 75b33f8
This seems to have been introduced when we were testing out 1.12 and can be traced back to #5238
Here is an example for SparkApplication.v1beta2
Expected behavior
Resource Manager is able to correctly list custom resources
Additional context to reproduce
No response
Screenshots
No response
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: