Support for Retrieving Multiple JSONPath Keys Simultaneously in kubectl Commands #1693
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
What would you like to be added:
Currently, when using kubectl get secret with jsonpath, we can extract the value of a single key, as shown in the following example:
Here, the jsonpath argument specifies the path to a single environment key (A), and the corresponding value can be retrieved. However, if multiple keys need to be retrieved simultaneously (e.g., A and B), it requires multiple commands or a complex workaround.
Feature Request:
Extend the jsonpath functionality to allow specifying multiple keys in a single command, making it possible to retrieve multiple values at once. For instance:
If possible, I would like to contribute by adding this feature myself.
Why is this needed:
By simplifying the process of retrieving a single secret, the workload is reduced, and secret values can be fetched more efficiently.
The text was updated successfully, but these errors were encountered: