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

Improve error handling in the Reconcile function #22

Open
jgomezve opened this issue Apr 24, 2022 · 1 comment
Open

Improve error handling in the Reconcile function #22

jgomezve opened this issue Apr 24, 2022 · 1 comment

Comments

@jgomezve
Copy link
Owner

Handle errors coming from the APIC Client

@jgomezve
Copy link
Owner Author

jgomezve commented May 27, 2022

Add a validation step to the request in the Reconcile method.
It could be that the rules in the request comply with the Schema but they can be invalid.

For example:

apiVersion: apic.aci.cisco/v1alpha1
kind: SegmentationPolicy
metadata:
  name: segpol1
spec:
  namespaces:
    - ns1
    - ns2
  rules:
    - eth: arp
      ip: icmp
      port: 80

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant