Skip to content

NetworkScopes#719

Merged
rshriram merged 13 commits intoistio:release-1.1from
rshriram:networkscope
Nov 28, 2018
Merged

NetworkScopes#719
rshriram merged 13 commits intoistio:release-1.1from
rshriram:networkscope

Conversation

@rshriram
Copy link
Copy Markdown
Member

Signed-off-by: Shriram Rajagopalan shriramr@vmware.com

Shriram Rajagopalan added 5 commits November 20, 2018 17:02
Signed-off-by: Shriram Rajagopalan <shriramr@vmware.com>
Signed-off-by: Shriram Rajagopalan <shriramr@vmware.com>
…try_view

Signed-off-by: Shriram Rajagopalan <shriramr@vmware.com>
Signed-off-by: Shriram Rajagopalan <shriramr@vmware.com>
Signed-off-by: Shriram Rajagopalan <shriramr@vmware.com>
@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 Nov 27, 2018
Signed-off-by: Shriram Rajagopalan <shriramr@vmware.com>
Copy link
Copy Markdown
Contributor

@costinm costinm left a comment

Choose a reason for hiding this comment

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

/lgtm (but some cosmetic doc requests).

I'm not sure it's a good idea to try to implement everything in 1.1 - I would rather have a well tested
implementation at namespace level, without workload selector ( which is trickier - in particular if you consider runtime changes in labels )

// in a namespace will be able to reach other workloads in the same
// namespace. To declare dependencies on workloads in other namespaces, a
// NetworkScope resource has to be specified in the current
// namespace. *_Each namespace can have only one NetworkScope
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

How about defining a name ("default") - to make it easier to write RBAC rules - instead of leaving it 'arbitrary name'?

// - namespace: egress
// ```
//
// In a mesh where the default network scope is set to CURRENT_NAMESPACE
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm not sure - if NetworkScope is specified in a namespace, it should be respected regardless of the default.
So it doesn't matter what the default is.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Have the same doubt: is cluster scoped NetworkScope enough?

@istio-testing
Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: costinm, rshriram

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Shriram Rajagopalan added 4 commits November 27, 2018 16:25
Signed-off-by: Shriram Rajagopalan <shriramr@vmware.com>
Signed-off-by: Shriram Rajagopalan <shriramr@vmware.com>
Signed-off-by: Shriram Rajagopalan <shriramr@vmware.com>

// Configure routes to services in the same namespace as the sidecar
// in addition to namespaces specified in sharedNamespaces.
CURRENT_NAMESPACE = 2;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Won't OWN_NAMESPACE be better? If yes, change throughout the files.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

OWN_NAMESPACE is ambiguous because own has two meanings: "my own" or "owned by". Maybe SAME_NAMESPACE is a better choice?

Shriram Rajagopalan added 2 commits November 27, 2018 20:16
Signed-off-by: Shriram Rajagopalan <shriramr@vmware.com>
// expected to talk to, in addition to other workloads in the same
// namespace. Dependencies describe the properties of outbound traffic from
// a given workload.
repeated Dependency dependencies = 1;
Copy link
Copy Markdown
Member

@hzxuzhonghu hzxuzhonghu Nov 28, 2018

Choose a reason for hiding this comment

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

why dependencies and imports are an array type at the same time?

Only one array can indicate the import dependency.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Dependency has other things, like source pod selectors, but I guess that's going to be added in a future release.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Because workload labels will be added to dependencies in future..

Copy link
Copy Markdown
Contributor

@frankbu frankbu left a comment

Choose a reason for hiding this comment

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

I would consider changing CURRENT_NAMESPACE to SAME_NAMESPACE, but otherwise looks good

Signed-off-by: Shriram Rajagopalan <shriramr@vmware.com>
@rshriram rshriram merged commit 4f643c9 into istio:release-1.1 Nov 28, 2018
}

// REQUIRED: The default import setting for every workload in the mesh.
Mode import_mode = 1;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Curious why the default isn't 0, ALL_NAMESPACES?

It stated in other place: "By default, the service mesh
established by Istio will have a full mesh connectivity - i.e. every
workload will have proxy configuration required to reach every other
workload in the mesh."

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The 1 is a proto field number, not a value.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ah, thanks Frank!

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants