Skip to content

fix(envconfig): rename CLUSTER_DOMAIN env var to FLAGD_CLUSTER_DOMAIN#792

Merged
toddbaert merged 4 commits intoopen-feature:mainfrom
kuznero:roku/fix/cluster-domain
Apr 10, 2026
Merged

fix(envconfig): rename CLUSTER_DOMAIN env var to FLAGD_CLUSTER_DOMAIN#792
toddbaert merged 4 commits intoopen-feature:mainfrom
kuznero:roku/fix/cluster-domain

Conversation

@kuznero
Copy link
Copy Markdown
Contributor

@kuznero kuznero commented Jan 6, 2026

Summary

  • Prefix the cluster domain environment variable with FLAGD_ to maintain consistency with other flagd-related configuration options

Context

This is a follow-up to #789 which added configurable cluster domain support. The environment variable naming should be consistent with other flagd-related options.

Changes

  • Rename CLUSTER_DOMAIN to FLAGD_CLUSTER_DOMAIN in envconfig

Signed-off-by: Roman Kuznetsov roku@lix.one

@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello @kuznero, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on enhancing the consistency of environment variable naming within the flagd configuration. By prefixing the cluster domain environment variable with FLAGD_, the change aligns it with existing flagd-specific settings, making the configuration more intuitive and maintainable. This is a refinement to previously introduced configurable cluster domain support.

Highlights

  • Environment Variable Renaming: The CLUSTER_DOMAIN environment variable has been renamed to FLAGD_CLUSTER_DOMAIN to ensure consistency with other flagd-related configuration options.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request renames the CLUSTER_DOMAIN environment variable to FLAGD_CLUSTER_DOMAIN to improve consistency with other flagd-related configuration options. The change is valid, however, to further improve consistency within the EnvConfig struct itself, I've suggested renaming the struct field from ClusterDomain to FlagdClusterDomain to align with its corresponding environment variable.

Comment thread internal/common/types/envconfig.go Outdated
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.33%. Comparing base (499661e) to head (0c04704).
⚠️ Report is 85 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #792       +/-   ##
===========================================
- Coverage   86.51%   72.33%   -14.19%     
===========================================
  Files          19       30       +11     
  Lines        1587     1923      +336     
===========================================
+ Hits         1373     1391       +18     
- Misses        173      484      +311     
- Partials       41       48        +7     
Files with missing lines Coverage Δ
internal/common/flagdproxy/flagdproxy.go 90.23% <100.00%> (ø)

... and 26 files with indirect coverage changes

Flag Coverage Δ
unit-tests 72.33% <100.00%> (∅)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kuznero
Copy link
Copy Markdown
Contributor Author

kuznero commented Jan 6, 2026

/gemini review

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request correctly renames the CLUSTER_DOMAIN environment variable to FLAGD_CLUSTER_DOMAIN for consistency, updating the EnvConfig struct and its usages. The changes are correct and align with the PR's goal. My review includes one comment on a related field that appears to be unused, suggesting a cleanup to improve code maintainability.

Comment thread internal/common/flagdproxy/flagdproxy.go
@kuznero
Copy link
Copy Markdown
Contributor Author

kuznero commented Jan 6, 2026

/gemini review

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request correctly renames the CLUSTER_DOMAIN environment variable to FLAGD_CLUSTER_DOMAIN to improve consistency. The changes are applied correctly across the configuration, implementation, and test files. I've added one comment regarding potentially unused code that is being touched by this change, which could be an opportunity for a small cleanup.

Comment thread internal/common/flagdproxy/flagdproxy.go
@kuznero
Copy link
Copy Markdown
Contributor Author

kuznero commented Jan 6, 2026

@beeme1mr, this PR is a follow up PR from #789. If you have a moment could you please review/approve it?

@kuznero
Copy link
Copy Markdown
Contributor Author

kuznero commented Jan 17, 2026

@toddbaert , any chance this can be merged?

@kuznero
Copy link
Copy Markdown
Contributor Author

kuznero commented Feb 20, 2026

@beeme1mr can you recommend who else can approve this PR?

kuznero added 4 commits April 10, 2026 15:34
Prefix the cluster domain environment variable with FLAGD_ to maintain
consistency with other flagd-related configuration options.

Signed-off-by: Roman Kuznetsov <roku@lix.one>
Rename the struct field from ClusterDomain to FlagdClusterDomain to
maintain consistency with its environment variable FLAGD_CLUSTER_DOMAIN
and other flagd-related configuration options in the EnvConfig struct.

Signed-off-by: Roman Kuznetsov <roku@lix.one>
Revert the field rename in FlagdProxyConfiguration struct since its
other fields (Port, Image, Tag, etc.) don't use the Flagd prefix -
the prefix is already in the struct name itself.

Only EnvConfig uses the FlagdClusterDomain naming to match other
env config fields like FlagdProxyPort, FlagdProxyImage, etc.

Signed-off-by: Roman Kuznetsov <roku@lix.one>
Signed-off-by: Roman Kuznetsov <roku@lix.one>
@toddbaert toddbaert force-pushed the roku/fix/cluster-domain branch from 486dfc4 to 0c04704 Compare April 10, 2026 19:34
Copy link
Copy Markdown
Member

@toddbaert toddbaert left a comment

Choose a reason for hiding this comment

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

Yep! Thanks @kuznero . Sorry for the delay.

@toddbaert toddbaert closed this Apr 10, 2026
@toddbaert toddbaert reopened this Apr 10, 2026
@toddbaert toddbaert merged commit 0668bd6 into open-feature:main Apr 10, 2026
26 of 30 checks passed
toddbaert added a commit that referenced this pull request Apr 10, 2026
Documents the breaking env var rename from CLUSTER_DOMAIN to
FLAGD_CLUSTER_DOMAIN introduced in #792.

BREAKING CHANGE: CLUSTER_DOMAIN env var is now FLAGD_CLUSTER_DOMAIN.

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
@kuznero kuznero deleted the roku/fix/cluster-domain branch April 10, 2026 20:21
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.

3 participants