rundeck-plugins / kubernetes

52 stars 59 forks source link

RSE-250: get pods on authorized namespace #141

Closed L2JE closed 1 year ago

L2JE commented 1 year ago

Ticket: https://pagerduty.atlassian.net/browse/RSE-250

Problem

Can not load node sources when using a token for a user that has access to only specific namespaces.

Solution

Include a field "Namespace" among the other "Config" fields: image


These 2 values would be equivalent: image

The difference is that using field selector you will get an error if you don't have permissions to access other namespaces, because it will load all pods from any namespace and after that it will apply the selector.