Closed paulfantom closed 3 years ago
I'd say for addons
and platforms
we can drop the kube-prometheus-
prefix now. Otherwise :+1:
One day I would still like to see something a little more ergonomic (definitely my own perception, maybe for others it's not more ergonomic) like:
kp +
kp.platforms.gke +
kp.addons.allNamespaces
That's just food for thought though, and is not mutually exclusive with your proposal, so from my side, feel free to move ahead with your proposal.
One thing: I seen a good suggestion from Thor that the mixin name is confusing. Maybe we can rename that at least here to something else? Also because we have mixins in other subdirs per the chart above.
Otherwise this makes sense to me!
An additional general statement .. as the "API" of kube-prometheus as a library is essentially the main.jsonnet
, I think we can feel free to refactor within components/
however we want.
It would be nice if we could write this "contract" down in the readme.
@lilic I feel we should wait until we find a new name within the community before renaming things here. I feel right now this would be a bit premature and we'd risk that we have to change it multiple times .. As I mentioned in my previous comment, anything within components/
we're pretty free to refactor at any point in time (I guess that's also an argument against my point haha).
Sounds good to me, lets document that!
It would be nice if we could write this "contract" down in the readme.
I agree and will write it in one of PRs with docs update.
As for renaming mixin/
directory - I also don't like it, but I didn't have any other good name. I am open to proposals on the name.
I would say we open a separate issue and we can discuss on the naming :D
What is missing? Good user experience.
Why do we need it? To improve user experience by categorizing various jsonnet snippets to create a clear picture.
Environment
kube-prometheus version:
post release-0.7
Anything else we need to know?:
This is building on top of https://github.com/prometheus-operator/kube-prometheus/pull/873
I would like to categorize files in
jsonnet/kube-prometheus
directory in a following pattern:RFC @prometheus-operator/kube-prometheus-reviewers