Repository navigation
add SecretListWatchSelector to reduce memory and CPU footprint - #3355
Conversation
Signed-off-by: Mathis Raguin <[email protected]>
|
Awesome! Thank you! |
Following prometheus-operator/prometheus-operator#3355, add support for this new option. This should be released in v0.41.0.
Following prometheus-operator/prometheus-operator#3355, add support for this new option. This should be released in v0.41.0. Signed-off-by: Mathis Raguin <[email protected]>
@brancz does it mean it's expected to see such errors in the logs: I am trying to filter out secrets of type dockercfg with the setting: |
Note on that issue... it has been solved by removing the quotes using scalar block chomping: |
Now you make me doubt my own implementation 😨 Note that the error I was talking about is not related to what you had where it says |
|
Single quote doesn't work as well... |
|
Filtering with |
|
Then this means that your variables are already quoted, see the following: (And the shell would remove the quotes) How do you execute the Prometheus-Operator? |
|
As a Kubernetes deployment... but it's not the only argument: I think quotes are inherited by the yaml handling... |
|
Sounds like you should be able to use unquoted values as long as they are valid YAML. Thanks for documenting the issue and providing a workaround. |
Fixes #3298
Supersedes #3299
This PR allows us to set a field selector. This follows the discussion about not wanting an opinionated selector in the code. With this option we can both exclude:
and select:
Because this is a field selector, we can chain the selectors using
,.The only restriction is that you can't use an OR operator here.
Moreover, the default value (empty string) is equivalent to
fields.Everythingso this is not a breaking change !While they are properly reported, it seems that the Prometheus Operator is still considered "healthy".