-
Notifications
You must be signed in to change notification settings - Fork 674
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
Fix support for limit-namespace in FlytePropeller #5238
Conversation
Signed-off-by: Daniel Rammer <[email protected]>
Signed-off-by: Daniel Rammer <[email protected]>
Signed-off-by: Daniel Rammer <[email protected]>
thank you @hamersaw and @MortalHappiness |
}, | ||
} | ||
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hamersaw I'm seeing this log line a lot since we upgraded to 1.12 (45k times in 5 days). For instance:
failed to list objects for PyTorchJob.v1: no matches for kind "PyTorchJob" in version "v1"
The CRD does exist in the cluster:
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
...
name: pytorchjobs.kubeflow.org
spec:
group: kubeflow.org
names:
kind: PyTorchJob
listKind: PyTorchJobList
plural: pytorchjobs
singular: pytorchjob
scope: Namespaced
versions:
- ...
name: v1
Tasks using the pytorch plugin also work.
Do you know what the reason could be for the cache not being aware of the pytorchjob crd?
Tracking issue
fixes #5087
Why are the changes needed?
Refer to issue ^^ for in-depth explanation of problem.
What changes were proposed in this pull request?
Instead of back-pedaling from the informer to retrieve the object cache for listing k8s objects, this PR updates the plugin object monitoring mechanism to issue queries directly to the cache using the k8s object kind and version.
How was this patch tested?
locally with varying configuration.
Setup process
NA
Screenshots
NA
Check all the applicable boxes
Related PRs
NA
Docs link
NA