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

Allow configuration of Calico bgp and encapsulation values #388

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

Conversation

dalees
Copy link

@dalees dalees commented Aug 2, 2024

To enable Calico BGP mode we need to set bgp and encapsulation values. The chart allows overriding of the bgp value already, but encapsulation is within a list, which is concatenated if changes are attempted in the overrides field.

So, here we add configuration for both values and document how to enable the full-mesh mode we will use.

To enable Calico BGP mode we need to set bgp and encapsulation values.
The chart allows overriding of the bgp value already, but encapsulation
is within a list, which is concatenated if changes are attempted in the
overrides field.

So, here we add configuration for both values and document how to enable
the full-mesh mode we will use.
@dalees
Copy link
Author

dalees commented Aug 2, 2024

Note: This should result in no default behaviour change. An implementation of using these options will be submitted to the magnum-capi-helm driver.

@dalees
Copy link
Author

dalees commented Aug 2, 2024

Created Magnum CAPI driver change that depends on this PR: https://review.opendev.org/c/openstack/magnum-capi-helm/+/925552

Copy link
Collaborator

@mkjpryor mkjpryor left a comment

Choose a reason for hiding this comment

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

I'm not overly keen on essentially moving parts of the Helm values for the chart out of the values section, as it makes us more brittle against changes to the chart values.

In particular the new calico.bgp setting proposed here is essentially just a shorthand for calico.release.values.installation.calicoNetwork.bgp.

There are more complications with the encapsulation, but I think maybe we can accomplish the same effect by inspecting the values that are given and adapting the defaults accordingly, as happens in some other addons (e.g. only generating the default IP pool if one is not given in the values).

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