caas-team / GoKubeDownscaler

A horizontal autoscaler for Kubernetes workloads
GNU General Public License v3.0
9 stars 4 forks source link

StringList regex #27

Closed jonathan-mayer closed 2 months ago

jonathan-mayer commented 3 months ago

Issue

currently the stringlist value type doesn't support regex, even though most if not all of its use cases would benefit/need this to match the py-kube-downscalers configuration style

Problem to solve

Further details

Proposal

Implement a new method in StringList that checks if a string matches one of its entries. Use this function everywhere instead of checking if the list contains a value.

Who can address the issue

Other links/references

jonathan-mayer commented 2 months ago

implemented this in the same branch as #37 because it depends on this