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

Support locale_service Gateway clause for LM #764

Merged
merged 1 commit into from
Jun 17, 2022
Merged

Support locale_service Gateway clause for LM #764

merged 1 commit into from
Jun 17, 2022

Conversation

annakhm
Copy link
Collaborator

@annakhm annakhm commented Jun 14, 2022

Today, locale service clause is only supported on Global Manager.
This change allows to configure it for Local Manager as well. This
configuration conflicts with edge_cluster_path and allows more
flexibility.
When importing Gateway, edge_cluster_path will be initialized rather
than locale_service, and additional apply is required to switch to
locale_service configuration.

Signed-off-by: Anna Khmelnitsky akhmelnitsky@vmware.com

@annakhm
Copy link
Collaborator Author

annakhm commented Jun 14, 2022

/test-all

if len(localeServices) > 0 {

if isGlobalManager {
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: can we move this out of the if len(localeServices) > 0 block, like L933-938 of nsxt/resource_nsxt_policy_tier0_gateway.go

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point, done

Today, locale service clause is only supported on Global Manager.
This change allows to configure it for Local Manager as well. This
configuration conflicts with edge_cluster_path and allows more
flexibility.
When importing Gateway, edge_cluster_path will be initialized rather
than locale_service, and additional apply is required to switch to
locale_service configuration.

Signed-off-by: Anna Khmelnitsky <akhmelnitsky@vmware.com>
@annakhm
Copy link
Collaborator Author

annakhm commented Jun 16, 2022

/test-all

@annakhm annakhm merged commit 3cd5b2c into master Jun 17, 2022
@annakhm annakhm deleted the lm-ls branch June 17, 2022 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants