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
{{ message }}
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.
What steps did you take and what happened:
I was trying to write a plugin that supports a custom resource list view. When listing objects, how can I get current user selected namespace?
router.HandleFunc("*", func(request service.Request) (component.ContentResponse, error) {
podList, err:=request.DashboardClient().List(request.Context(), store.Key{
Namespace: "default", // TODO: how to get current namespace?APIVersion: "v1",
Kind: "Pod",
})
iferr!=nil {
return*contentResponse, err
}
...
})
Environment:
Octant version (use octant version): 0.25.1
Kubernetes version (use kubectl version): 1.23.5
OS (macOS 10.15, Windows 10, Ubuntu 19.10 etc): Fedora 35
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What steps did you take and what happened:
I was trying to write a plugin that supports a custom resource list view. When listing objects, how can I get current user selected namespace?
Environment:
octant version
): 0.25.1kubectl version
): 1.23.5The text was updated successfully, but these errors were encountered: