jsonnet-libs / k8s

Code generator for Jsonnet Kubernetes libraries.
Apache License 2.0
171 stars 98 forks source link

Add new prometheus-operator versions #331

Closed mikael-lindstrom closed 1 year ago

mikael-lindstrom commented 1 year ago

Adds all current minor versions of the prometheus-operator. This change also introduces two new CRDs, prometheusagents which was added in 0.64 and scrapeconfigs which was added in 0.65. The current implementation in this repo handles 404 gracefully and simply does not generate for the new CRDs if they cannot be downloaded. I'm not sure if this is intended but since it works I opted to just include the new CRDs for all version. Let me know if you rather want me to build logic for this in the config.jsonnet file.