Skip to content
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

Urls config #210

Merged
merged 5 commits into from
Dec 18, 2024
Merged

Urls config #210

merged 5 commits into from
Dec 18, 2024

Conversation

hervenicol
Copy link
Contributor

Related to #202

These addresses should not be hard-coded, this PR adds a way to override via command-line arguments.

What this PR does / why we need it

Checklist

  • Update changelog in CHANGELOG.md.
  • Follow deployment test procedure in the tests/manual_e2e directory and have a working branch.

@hervenicol hervenicol self-assigned this Dec 18, 2024
@hervenicol hervenicol requested a review from a team as a code owner December 18, 2024 08:31
main.go Outdated Show resolved Hide resolved
main.go Outdated
opts := zap.Options{
Development: false,
}

opts.BindFlags(flag.CommandLine)
flag.Parse()

// parse grafana URL
conf.GrafanaURL, err = url.Parse(grafanaURLString)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
conf.GrafanaURL, err = url.Parse(grafanaURLString)
conf.GrafanaURL, err = url.Parse(grafanaURL)

main.go Outdated
@@ -63,6 +64,9 @@ func init() {
}

func main() {
var grafanaURLString string
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
var grafanaURLString string
var grafanaURL string

@hervenicol hervenicol enabled auto-merge (squash) December 18, 2024 12:28
@hervenicol hervenicol merged commit dbfa683 into main Dec 18, 2024
8 checks passed
@hervenicol hervenicol deleted the urls-config branch December 18, 2024 12:38
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