tobs icon indicating copy to clipboard operation
tobs copied to clipboard

name for kube-prometheus-stack is always overridden

Open paulfantom opened this issue 3 years ago • 2 comments

I consider this a bug which does not work well when installing via helm with --generate-name flag.

paulfantom avatar Feb 16 '22 13:02 paulfantom

This is most likely because of https://github.com/timescale/tobs/blob/main/chart/values.yaml#L135. Maybe we can remove that option?

paulfantom avatar Jul 20 '22 08:07 paulfantom

This will be a breaking change on upgrade. We will need to provide documentation on how to handle that action.

nhudson avatar Jul 21 '22 16:07 nhudson

This may or may not cause upgrade issues. Right now when testing, if you are "upgrading" a previous install, it will error out with this error:


Error: UPGRADE FAILED: failed to create resource: Internal error occurred: failed calling webhook "prometheusrulemutate.monitoring.coreos.com": failed to call webhook: Post "https://tobs-kube-prometheus-operator.default.svc:443/admission-prometheusrules/validate?timeout=10s": x509: certificate is valid for chart-1660587400-kube-prom-operator, chart-1660587400-kube-prom-operator.default.svc, not tobs-kube-prometheus-operator.default.svc

Running another helm upgrade after this failure will result in the upgrade succeeding.

I think the best idea here if we want to remove this is to document that it has been removed and if you're upgrading to add back the line:

fullnameOverride: "tobs-kube-prometheus"

nhudson avatar Aug 15 '22 18:08 nhudson