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

Move all checks and default values for network stack to NetworkStack class #87

Merged
merged 3 commits into from
Dec 21, 2023

Conversation

gaiksaya
Copy link
Member

Description

In order to make the checks more compatible with props as well as context variables, moving the checks and default values to NetworkStack Class. I tested the behavior with existing stack and it showed no changes.
Also removed maxAzs property as it was not being used as network stack was always called with hard coded value to 3.

This is the first iteration of clean up. See linked issue below for whys.

Issues Resolved

#75

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

let serverAccess: IPeer;
// Properties and context variables check
let cidrRange = `${props?.cidr ?? scope.node.tryGetContext('cidr')}`;
if (cidrRange == 'undefined'){
Copy link
Collaborator

@rishabh6788 rishabh6788 Dec 21, 2023

Choose a reason for hiding this comment

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

Should be ===

Copy link

codecov bot commented Dec 21, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (1995864) 80.21% compared to head (96bc4ed) 80.25%.

Files Patch % Lines
lib/networking/vpc-stack.ts 81.25% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #87      +/-   ##
==========================================
+ Coverage   80.21%   80.25%   +0.04%     
==========================================
  Files           7        7              
  Lines         470      471       +1     
  Branches      136      141       +5     
==========================================
+ Hits          377      378       +1     
  Misses         93       93              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Sayali Gaikawad <[email protected]>
Signed-off-by: Sayali Gaikawad <[email protected]>
@gaiksaya gaiksaya merged commit 3acacd6 into opensearch-project:main Dec 21, 2023
5 checks passed
@gaiksaya gaiksaya deleted the move-checks branch December 21, 2023 04:16
@gaiksaya gaiksaya restored the move-checks branch December 22, 2023 23:30
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