-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Support define configscope for k8s service #10598
Support define configscope for k8s service #10598
Conversation
pkg/features/pilot/pilot.go
Outdated
// ServiceScopeLabel configs the scope the service visible to. | ||
// "PUBLIC" which is the default, indicates it is reachable within the mesh | ||
// "PRIVATE" indicates it is reachable within its namespace | ||
ServiceScopeLabel = "istio-config-scope" |
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.
An alternate choice is to set this in annotation, any suggestion?
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.
I prefer annotations. Other parts of istio use annotations. The availability zone thing should also be using annotations (not to mention its incorrect after your recent work on using regions, zones, etc..).
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 update
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hzxuzhonghu, rshriram The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Support define Service configScope by annotation
"networking.istio.io/configScope"