Skip to content

Add ability to set Prometheus url with custom path without trailing "/"#197

Merged
stefanprodan merged 1 commit intofluxcd:masterfrom
Laci21:set-url-custom-path
Jun 4, 2019
Merged

Add ability to set Prometheus url with custom path without trailing "/"#197
stefanprodan merged 1 commit intofluxcd:masterfrom
Laci21:set-url-custom-path

Conversation

@Laci21
Copy link
Contributor

@Laci21 Laci21 commented Jun 4, 2019

Fixes #193.

What

Join URL paths so that custom path is taken into account.

Additional context

With this change, I was able to install Flagger like this:

helm upgrade -i flagger flagger/flagger \
--namespace=istio-system \
--set metricsServer=http://prometheus.istio-system.svc.cluster.local/prometheus

... and execute a canary deployment based on the docs successfully.

It seems to also work with custom paths with trailing slashes (prometheus/) or without setting any custom paths.

@Laci21 Laci21 requested a review from stefanprodan as a code owner June 4, 2019 15:46
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @Laci21

@stefanprodan stefanprodan merged commit 00de7ab into fluxcd:master Jun 4, 2019
@Laci21 Laci21 deleted the set-url-custom-path branch June 5, 2019 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support setting Prometheus URL with custom path

2 participants