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
This builds the selector like a normal query string - e.g. label1=value1&label2=value2 - but this results in api request /api/v1/namespaces/my-namespace/pods?labelSelector=label1=value1&label2=value2&pretty=1 which will only use first label, since labelSelector ends after value1 (due to & located IN label selector).
Entries of labelSelector need to be separated via comma (,). This can be achieved by providing third argument ($arg_separator) to http_build_query():
Label selector is just built via normal
http_build_query()
without providing more arguments than desired label selectors:This builds the selector like a normal query string - e.g.
label1=value1&label2=value2
- but this results in api request/api/v1/namespaces/my-namespace/pods?labelSelector=label1=value1&label2=value2&pretty=1
which will only use first label, sincelabelSelector
ends aftervalue1
(due to&
located IN label selector).Entries of labelSelector need to be separated via comma (
,
). This can be achieved by providing third argument ($arg_separator
) tohttp_build_query()
:The text was updated successfully, but these errors were encountered: