Skip to content

pushprox: fix hardcoded ipv4 #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

fayak
Copy link

@fayak fayak commented Feb 13, 2024

the --use-localhost flag doesn't account for ipv6 only clusters. This small PR fixe the issue.

I have no idea how to fix properly Dockerfile.dapper, the changes I introduced allowed me to build the image and test it locally, fixing my issue, but most probably one need to make some changes/updates to the Dockerfile

@alexandreLamarre alexandreLamarre self-requested a review February 27, 2024 11:40
Copy link

@alexandreLamarre alexandreLamarre left a comment

Choose a reason for hiding this comment

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

As for the dapperfile update and go upgrade we plan to move away from using drone, and also plan on updating dependencies in this repo, so I'd like to get those in before merging this.

It would be great to get the ipv6 support into the next release though!

@@ -51,7 +51,7 @@ var (
metricsAddr = kingpin.Flag("metrics-addr", "Serve Prometheus metrics at this address").Default(":9369").String()
tokenPath = kingpin.Flag("token-path", "Uses an OAuth 2.0 Bearer token found in this path to make scrape requests").String()
insecureSkipVerify = kingpin.Flag("insecure-skip-verify", "Disable SSL security checks for client").Default("false").Bool()
useLocalhost = kingpin.Flag("use-localhost", "Use 127.0.0.1 to scrape metrics instead of FQDN").Default("false").Bool()
useLocalhost = kingpin.Flag("use-localhost", "Use localhost to scrape metrics instead of FQDN").Default("false").Bool()

Choose a reason for hiding this comment

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

I think I would prefer having a separate boolean flag for using ipv6, in general I think its better to have explict bindings

@fayak fayak requested a review from a team as a code owner April 15, 2024 15:50
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.

2 participants