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

Introduce a new type: serviceEffectivePolicy as a better abstraction than ClientIntents for reconciliation. Implement EffectivePolicyReconciler for ingress network policies. #323

Merged
merged 35 commits into from
Jan 8, 2024

Conversation

omris94
Copy link
Collaborator

@omris94 omris94 commented Dec 28, 2023

Description

This pull request introduces two new abstractions: ServiceEffectivePolicy and ServerEffectivePolicyGroupReconciler. These abstractions are designed to help reconcile input resources (such as intents, pods, and protected services) to output policies (such as network policies for Ingress, Kafka ACLs, and Postgres).

The ServiceEffectivePolicy type is created, and an EffectivePolicyReconciler is implemented specifically for Ingress network policies.

Testing

I modified the existing tests of ingress policies (and external netpols) according to the changes.

  • 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

@omris94 omris94 changed the title Support effective policy appliers as a better abstraction for reconcilers Introduce a new type: serviceEffectivePolicy as a better abstraction than ClientIntents for reconciliation. Implement EffectivePolicyApplier for ingress network policies. Jan 1, 2024
@omris94 omris94 marked this pull request as ready for review January 1, 2024 20:45
src/operator/effectivepolicy/Syncer.go Outdated Show resolved Hide resolved
src/operator/effectivepolicy/Syncer.go Outdated Show resolved Hide resolved
src/operator/effectivepolicy/Syncer.go Outdated Show resolved Hide resolved
src/operator/effectivepolicy/Syncer.go Outdated Show resolved Hide resolved
@omris94 omris94 changed the title Introduce a new type: serviceEffectivePolicy as a better abstraction than ClientIntents for reconciliation. Implement EffectivePolicyApplier for ingress network policies. Introduce a new type: serviceEffectivePolicy as a better abstraction than ClientIntents for reconciliation. Implement EffectivePolicyReconciler for ingress network policies. Jan 3, 2024
@omris94 omris94 merged commit 4da0664 into main Jan 8, 2024
9 checks passed
@omris94 omris94 deleted the omris/use-service-effective-policy branch January 8, 2024 09:42
@github-actions github-actions bot locked and limited conversation to collaborators Jan 8, 2024
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.

None yet

2 participants