-
Notifications
You must be signed in to change notification settings - Fork 347
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
chore: Validate before adding Xds resource #1662
Conversation
Signed-off-by: Ronnie Personal <76408835+Ronnie-personal@users.noreply.github.com>
Codecov Report
@@ Coverage Diff @@
## main #1662 +/- ##
==========================================
+ Coverage 64.77% 64.86% +0.08%
==========================================
Files 83 84 +1
Lines 11925 12081 +156
==========================================
+ Hits 7725 7836 +111
- Misses 3715 3744 +29
- Partials 485 501 +16
|
Signed-off-by: Ronnie Personal <76408835+Ronnie-personal@users.noreply.github.com>
Signed-off-by: Ronnie Personal <76408835+Ronnie-personal@users.noreply.github.com>
thanks for raising this PR @Ronnie-personal . |
Signed-off-by: Ronnie Personal <76408835+Ronnie-personal@users.noreply.github.com>
8927da9
to
b5c4234
Compare
How about this code change? `func (t *ResourceVersionTable) AddXdsResource(rType resourcev3.Type, xdsResource types.Resource) error {
}` |
yeah @Ronnie-personal something similar to above logic is needed, you can probably use |
Signed-off-by: Ronnie Personal <76408835+Ronnie-personal@users.noreply.github.com>
Signed-off-by: Ronnie-personal <76408835+Ronnie-personal@users.noreply.github.com>
Signed-off-by: Ronnie Personal <76408835+Ronnie-personal@users.noreply.github.com>
Co-authored-by: tony-2023 <138949958+tony-2023@users.noreply.github.com> Signed-off-by: Ronnie Personal <76408835+Ronnie-personal@users.noreply.github.com>
Signed-off-by: Ronnie Personal <76408835+Ronnie-personal@users.noreply.github.com>
Signed-off-by: Ronnie Personal <76408835+Ronnie-personal@users.noreply.github.com>
Signed-off-by: Ronnie Personal <76408835+Ronnie-personal@users.noreply.github.com>
Signed-off-by: Ronnie Personal <76408835+Ronnie-personal@users.noreply.github.com>
Signed-off-by: Ronnie Personal <76408835+Ronnie-personal@users.noreply.github.com>
Signed-off-by: Ronnie Personal <76408835+Ronnie-personal@users.noreply.github.com>
Signed-off-by: Ronnie Personal <76408835+Ronnie-personal@users.noreply.github.com>
Signed-off-by: Ronnie Personal <76408835+Ronnie-personal@users.noreply.github.com>
Signed-off-by: Ronnie Personal <76408835+Ronnie-personal@users.noreply.github.com>
Signed-off-by: Ronnie Personal <76408835+Ronnie-personal@users.noreply.github.com>
Signed-off-by: Ronnie Personal <76408835+Ronnie-personal@users.noreply.github.com>
@arkodg This PR does not change e2e test code. Do you think the error is caused by any code change in this pull request? |
Signed-off-by: Ronnie Personal <76408835+Ronnie-personal@users.noreply.github.com>
Signed-off-by: Ronnie Personal <76408835+Ronnie-personal@users.noreply.github.com>
Signed-off-by: Ronnie Personal <76408835+Ronnie-personal@users.noreply.github.com>
} | ||
|
||
case resourcev3.EndpointType: | ||
// TBD - ValidateAll() breaks existing test internal/cmd/egctl/translate_test |
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.
thanks for catching this, lets raise a issue to track this
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.
LGTM @Ronnie-personal, this PR looks good, just added some minor comments, thanks again ! |
@arkodg |
What type of PR is this? Chore: Validate before adding Xds resource
What this PR does / why we need it: This PR calls Validate() before adding the resource to Xds resource table.
Which issue(s) this PR fixes: #1647
Fixes #