docker-gen icon indicating copy to clipboard operation
docker-gen copied to clipboard

Filter containers to notify

Open tarasov65536 opened this issue 2 years ago • 2 comments

This PR gives ability to specify set of filters to containers query when new generated file arrived.

It is kinda similar to #311 but with better implementation from architectural point of view.

It introduces new command line argument -notify-filter that adds filter in list of filters to query containers that should be notified when generated file changed. Argument format as in docker api

For example:

docker-gen -notify-filter name=foo -notify-filter label=bar=baz ...

adds two filters to containers query.

Signal code still defined by argument -notify-signal.

tarasov65536 avatar Aug 26 '23 17:08 tarasov65536

This probably needs a test in order to get merged.

josegonzalez avatar Feb 25 '24 21:02 josegonzalez

@josegonzalez, what kind of test it needs? Can't find anything similar.

tarasov65536 avatar Mar 17 '24 09:03 tarasov65536