-
Notifications
You must be signed in to change notification settings - Fork 260
[NPM] Caching Pod information to compare against desired state #780
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #780 +/- ##
==========================================
+ Coverage 37.88% 42.24% +4.36%
==========================================
Files 142 143 +1
Lines 15741 14024 -1717
==========================================
- Hits 5963 5925 -38
+ Misses 9043 7385 -1658
+ Partials 735 714 -21 |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
|
||
| IpsetUDPFlag string = "udp:" | ||
| IpsetSCTPFlag string = "sctp:" | ||
| IpsetTCPFlag string = "tcp:" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah how was this even missing :D
| var err error | ||
| oldNsNs, oldNsLabel := "ns-"+oldNsObj.ObjectMeta.Name, oldNsObj.ObjectMeta.Labels | ||
| newNsNs, newNsLabel := "ns-"+newNsObj.ObjectMeta.Name, newNsObj.ObjectMeta.Labels | ||
| oldNsNs, oldNsLabel := util.GetNSNameWithPrefix(oldNsObj.ObjectMeta.Name), oldNsObj.ObjectMeta.Labels |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should pick the oldNSObj from cache
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed, we will creating a new Work item for these changes
neaggarwMS
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🕐
neaggarwMS
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🕐
| if rv == "" { | ||
| return 0 | ||
| } | ||
| rvInt, err := strconv.ParseUint(rv, 10, 64) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should potentially store resource version as uint if we're comparing every time, can take that in a later change
neaggarwMS
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
![]()
This PR includes below changes: