-
Notifications
You must be signed in to change notification settings - Fork 83
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
Adding labels to admiral generated service entries #281
Conversation
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.
Looks good overall, added comments.
Also some PR checks are failing.
} | ||
if seDr.SeDnsPrefix != "" && seDr.SeDnsPrefix != common.Default { | ||
newServiceEntry.Labels["dnsPrefix"] = seDr.SeDnsPrefix | ||
} |
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.
Based on this spec for label names, the above might not work. We can have dns-prefix
?
Also why labels and not an annotations? Are you using this as filter for querying?
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.
Good catch will update the name, having said that when I tested it on a test cluster it did create SE with this label. I don't see use case where we might need to filter based on dns prefix or GTP, will update these to be annotation.
Will keep env as label, since identity is today getting added and label, and may be required to filter endpoints, let me know if this is ok?
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.
Yes
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.
cool, updated code based on this
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## master #281 +/- ##
==========================================
+ Coverage 74.18% 74.22% +0.04%
==========================================
Files 32 32
Lines 3266 3279 +13
==========================================
+ Hits 2423 2434 +11
- Misses 695 697 +2
Partials 148 148
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Signed-off-by: vjoshi3 <[email protected]>
Signed-off-by: vjoshi3 <[email protected]>
263bba8
to
3d83184
Compare
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
Update to SE modification flow, in order to add env, prefix and associated GTP details to SE labels.