Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Move PE sync into LastOperation #123

Merged
merged 4 commits into from
Sep 9, 2021
Merged

Move PE sync into LastOperation #123

merged 4 commits into from
Sep 9, 2021

Conversation

fabritsius
Copy link
Contributor

No description provided.

@@ -332,14 +291,37 @@ func (b *Broker) populateConnections(connections []mongodbatlas.PrivateEndpointC
return connections
}

func privateEndpointIsPlanned(provider string, name string, planEndpoits privateendpoint.PrivateEndpoints) bool {
Copy link
Contributor

Choose a reason for hiding this comment

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

What does "IsPlanned" refer to here? like we expect it? what are those conditions? some notes here would help maintainability

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here it just means that the endpoint with a given name and provider is in the plan. Thought it's self-explanatory but happy to add extra comments.

@fabritsius fabritsius merged commit 3dabe83 into master Sep 9, 2021
@fabritsius fabritsius deleted the improve-pe-sync branch September 9, 2021 08:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants