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

[feat] add support for custom BGP environment overrides via environment variables #277

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

Conversation

eljohnson92
Copy link
Contributor

@eljohnson92 eljohnson92 commented Dec 17, 2024

General:

This PR adds support for two new environment variables in the following formats BGPPeerPrefix="2600:3c0f" and BGPCustomIDMap='{"nl-ams": 22, "us-southeast": 4}' which combined allows for custom BGP environments.

  • Have you removed all sensitive information, including but not limited to access keys and passwords?
  • Have you checked to ensure there aren't other open or closed Pull Requests for the same bug/feature/question?

Pull Request Guidelines:

  1. Does your submission pass tests?
  2. Have you added tests?
  3. Are you addressing a single feature in this PR?
  4. Are your commits atomic, addressing one change per commit?
  5. Are you following the conventions of the language?
  6. Have you saved your large formatting changes for a different PR, so we can focus on your work?
  7. Have you explained your rationale for why this feature is needed?
  8. Have you linked your PR to an open issue

@github-actions github-actions bot added the new-feature for new features in the changelog. label Dec 17, 2024
@eljohnson92 eljohnson92 force-pushed the support_custom_bgp_environments branch from 2751cbb to 9cec7dc Compare December 17, 2024 19:07
@@ -481,6 +482,12 @@ func (l *loadbalancers) getCiliumLBIPPool(ctx context.Context, service *v1.Servi

// NOTE: Cilium CRDs must be installed for this to work
func (l *loadbalancers) ensureCiliumBGPPeeringPolicy(ctx context.Context) error {
if raw, ok := os.LookupEnv("BGPCustomIDMap"); ok {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we add these two environment variables in readme here? https://github.com/linode/linode-cloud-controller-manager?tab=readme-ov-file#additional-environment-variables

Also, should we capitalize the environment variable to match with existing style?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature for new features in the changelog.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants