-
Notifications
You must be signed in to change notification settings - Fork 163
Description
Is your feature request related to a problem? Please describe.
When VPAs are created, the only labels on them are hardcoded labels (defined in goldilocks at build time). In order to see what app this VPA belongs to, we have to parse the spec section to extract the deployment/ss/ds, then go look it up and get the labels from there, or apply institutional knowledge to know where or what to look at.
Describe the solution you'd like
I'd like to have the VPAs have the (mostly) same labels that the resources have. I'd like options to enable copy-through of labels and to control which labels get copied. Ideally it would be cli options. I expect it to automatically exclude "owner" type labels so that the respective tools don't think they own these resources. Examples are app.kubernetes.io/managed-by or helm.sh/*, but I'm sure there are lots more.
Describe alternatives you've considered
- A python script that runs at $interval to do the above parse/extract/label process. In my local tests,
goldilocks does not see VPA label changes as a change marker, so it does not want to revert the additional labels.EDIT: goldilocks eventually reconciles the VPA and removes any added labels.
Additional context
I would happily accept any suggestions of preferred approach that might differ from my description. Locally I've already set Claude loose on putting something together. It has 3 new cli options (a boolean enable with a modest default, an explicit include list, and an explicit exclude list). It has a full suite of tests and documentation. It compiles and passes tests locally, but I have not tested it in a real cluster yet. I'm going to poke at it a bit more before creating a PR. (I have to make sure I don't run afoul of my own employer's rules with regard to open source contributions as well. I have not submitted the required contributors information yet.)
Generic questions:
- Does Fairwinds have any AI specific advisement or limitations on use?
- Does this project have any AI specific advisement or limitations on use?