Closed AmitKumarDas closed 4 years ago
Thanks @luisdavim for the suggestions. I will keep that in mind for the future PRs.
:tada: This PR is included in version 0.2.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
This commit adds advanced selector to GenericController. This enables controller developer to add selector to filter watch or attachments or both. Advanced selector enables one to match by
namespace
,labels
,annotations
,finalizers
, any field inspec
, any field instatus
. One can combine various select options and execute these options viaAND-ing
orOR-ing
or a combination of both AND & OR.NOTE: It can match fields with []string datatype as its values as well. NOTE: Advanced selector can't match fields with datatypes other than string & []string.
This commit also marks a change to the log levels for GenericController. Since generic controller is mostly being used as a library in other binaries, it becomes essential to put controller logs at more verbose levels.
In addition, various unit test cases, rename related refactoring, and better comments have been added to make metac logic more readable & easy to contribute.
Signed-off-by: AmitKumarDas amit.das@mayadata.io