Skip to content

Conversation

asimpleidea
Copy link
Member

This PR allows the egress watcher to annotate a supported Kubernetes object -- i.e. a ServiceEntry or NetworkPolicy -- with key that notify whether it was inserted or enabled on the chosen SDWAN.

For example, after kubectl applying a ServiceEntry correctly, egress watcher will annotate it with egress-watcher.cnwan.io/sdwan-populated after it receives a confirmation that it was successfully inserted, and `"egress-watcher.cnwan.io/sdwan-enabled" after a successful configuration/policy update from SDWAN.

The annotations handler contains variables and functions that will
create or remove annotations on supported Kubernetes objects.

Signed-off-by: Elis Lulja <[email protected]>
The SDWAN uses the annotations channel to notify the annotations handler
that an operation -- i.e. inserted or enabled -- was successful.

Signed-off-by: Elis Lulja <[email protected]>
This commit runs the goroutine that watchese for operations updates
coming from SDWAN.

Signed-off-by: Elis Lulja <[email protected]>
The provided `ClusterRole` is updated to allow the egress watcher to
update supported objects to be annotated by it.

Signed-off-by: Elis Lulja <[email protected]>
This commit includes the `NamespacedName` to SDWAN, so that it can
notify the annotations handler that that object can be annotation after
a successful operation.

Signed-off-by: Elis Lulja <[email protected]>
@asimpleidea asimpleidea added the enhancement New feature or request label Jan 17, 2023
@asimpleidea asimpleidea requested a review from ljakab as a code owner January 17, 2023 14:39
@asimpleidea asimpleidea self-assigned this Jan 17, 2023
@asimpleidea asimpleidea requested a review from arnatal as a code owner January 17, 2023 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant