Add regex support in filters #340
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There is currently no way of filtering components by name, when deploying. I have 2 cases that this feature would resolve
Deploying multiple instances of same kind
I am working on the database project. I have 2 ConfigMaps in one component, first one is for the app configuration (when updated, the app should be redeployed), the second is storing the index fields for the database (when updated, the app can automatically fetch new updates from the file). So I somehow need to be able to deploy 2nd ConfigMap separately from the first, however I didn't find a way to filter same kind of k8s objects.
Deploying to particular availability zone
Sometimes there is a need to deploy component only in one availability zone for testing purposes and then deploy to all zones. This can be mitigated with the proper configuration in jsonnet, but it would be easier to just filter components by zone name.
Hope this feature would also benefit other users, since filtering by regexp will allow users to more gradually make deployments using qbec.