Skip to content

Conversation

howardjohn
Copy link
Member

Fixes #25253

Opening for early comments - still need tests.

One thing we may consider is adding a map of only private DR (or maybe even a special case for just root namespace...). This way we can distinguish between *.local rules meant as "global" and exportTo=. rules meant for istio-system and resolve NOTE: This does mean that we are effectively giving destination rules in other namespace precedence over private dest rules in the config root namespace

cc @rshriram @hzxuzhonghu

@istio-testing istio-testing added the do-not-merge/work-in-progress Block merging of a PR because it isn't ready yet. label Jul 30, 2020
@googlebot googlebot added the cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. label Jul 30, 2020
@istio-testing
Copy link
Collaborator

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@istio-testing istio-testing added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jul 30, 2020
@howardjohn howardjohn force-pushed the pilot/dr-local-root-ns branch from a2a0bfe to 28b4611 Compare August 7, 2020 14:39
@istio-testing istio-testing added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 7, 2020
@@ -1298,6 +1307,14 @@ func (ps *PushContext) initDestinationRules(env *Environment) error {
return nil
}

func makeProcessedDestRules() *processedDestRules {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/makeProcessedDestRules/newProcessedDestRules

Comment on lines 1369 to 1377
if configs[i].Namespace == ps.Mesh.RootNamespace {
ps.mergeDestinationRule(rootNamespaceLocalDestRules, configs[i], exportToMap)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this apply for private DRs?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm yes it seems this is backwards. Not sure how the test passes.. let me revist

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test was wrong - just updated the test+code

@howardjohn howardjohn marked this pull request as ready for review August 13, 2020 15:06
@howardjohn howardjohn requested a review from a team as a code owner August 13, 2020 15:06
@istio-testing istio-testing removed the do-not-merge/work-in-progress Block merging of a PR because it isn't ready yet. label Aug 13, 2020
@howardjohn howardjohn force-pushed the pilot/dr-local-root-ns branch from 28b4611 to 167be9a Compare August 13, 2020 15:07
@istio-testing
Copy link
Collaborator

istio-testing commented Aug 14, 2020

@howardjohn: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
release-notes_istio 052d4bc link /test release-notes_istio

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

400 Bad Request with Export to '.' with istio ingress
5 participants