-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
reuse annotation from api #46202
reuse annotation from api #46202
Conversation
34af970
to
f2c0944
Compare
@@ -101,7 +91,7 @@ type Controller struct { | |||
// do not support writing. We only use it here for reading WorkloadEntry/WorkloadGroup. | |||
store model.ConfigStoreController | |||
|
|||
// Note: unregister is to update the workload entry status: like setting `DisconnectedAtAnnotation` | |||
// Note: unregister is to update the workload entry status: like setting `annotation.IoIstioDisconnectedAt.Name` |
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.
nit: comment with actual annotation name is more readable
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.
OK, will restore
// TODO use status or another proper API instead of annotations | ||
|
||
// AutoRegistrationGroupAnnotation on a WorkloadEntry stores the associated WorkloadGroup. | ||
AutoRegistrationGroupAnnotation = "istio.io/autoRegistrationGroup" |
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.
May be it is lot simpler to replace the name at this constant and use the constants every where?
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, but just align with others
/test integ-pilot |
Please provide a description of this PR: