Skip to content
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

Add support for reporting destination Kubernetes service #145

Merged
merged 10 commits into from
Oct 11, 2023

Conversation

orishoshan
Copy link
Contributor

@orishoshan orishoshan commented Oct 9, 2023

Description

This PR adds the capability for the network mapper to keep the information it gets regarding pod-to-service connections. Previously, when the network mapper saw a Kubernetes service, it would resolve through the service to the destination pods. This additional information is useful for display and makes it easier to understand which Kubernetes service the intents are referring to. In addition, it is designed to be used with a new experimental feature in the intents-operator, which enables you to specify a Kubernetes service in intents. This is not only more readable, but it also makes it possible to add a port restriction to the network policy. The target port specified by the Kubernetes service will be used in the resulting network policy.

Coupled with an accompanying change in the Otterize network-mapper CLI, it will be possible to export intents that target Kubernetes services.

References

Intents operator pull request: otterize/intents-operator#256

Testing

  • This change adds test coverage for new/changed/fixed functionality

Checklist

  • I have added documentation for new/changed functionality in this PR and in github.com/otterize/docs
    This change is experimental and API-only at this time, as we are still figuring out the schema for the ClientIntents.

@orishoshan orishoshan enabled auto-merge (squash) October 11, 2023 10:32
@orishoshan orishoshan merged commit 61e9121 into main Oct 11, 2023
19 checks passed
@orishoshan orishoshan deleted the orisho/originating_kubernetes_service branch October 11, 2023 10:35
@github-actions github-actions bot locked and limited conversation to collaborators Oct 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants