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

Move some environment variables to be fetched by catalog #1502

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Amogh-Bharadwaj
Copy link
Contributor

@Amogh-Bharadwaj Amogh-Bharadwaj commented Mar 19, 2024

Right now, some configuration parameters for our mirrors are set via environment variables, while others are fetched from a table in catalog.
This PR:

  • Renames that table from alerting_settings to dynamic_settings
  • Moves over some variables from peerdbenv (config.go) to dynamicconf

@Amogh-Bharadwaj Amogh-Bharadwaj requested review from iskakaushik and serprex and removed request for iskakaushik March 19, 2024 12:26
@Amogh-Bharadwaj Amogh-Bharadwaj marked this pull request as draft March 19, 2024 12:27
flow/dynamicconf/dynamicconf.go Fixed Show fixed Hide fixed
flow/dynamicconf/dynamicconf.go Fixed Show fixed Hide fixed
flow/dynamicconf/dynamicconf.go Fixed Show fixed Hide fixed
flow/dynamicconf/dynamicconf.go Fixed Show fixed Hide fixed
flow/dynamicconf/dynamicconf.go Fixed Show fixed Hide fixed
flow/dynamicconf/dynamicconf.go Fixed Show fixed Hide fixed
return defaultValue
}

result, err := strconv.ParseInt(value.String, 10, 32)
Copy link
Member

@serprex serprex Mar 20, 2024

Choose a reason for hiding this comment

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

Suggested change
result, err := strconv.ParseInt(value.String, 10, 32)
result, err := strconv.ParseInt(value.String, 10, 64)

Should update signed code too

@CLAassistant
Copy link

CLAassistant commented May 21, 2024

CLA assistant check
All committers have signed the CLA.

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.

None yet

3 participants