...
The controller behave
- Monitor Sdwan Sdewan instance and SdwanRule Mwan3Conf/FirewallConf instance
- When SdwanRule Mwan3Conf/FirewallConf instance created/update:
- validate the instance Spec by API admission webhook
- If this SdwanRule Conf instance is used by any Sdwan Sdewan instance, then info the Sdewan controller to apply the rule to related Sdwan instance by calling api
- conf.
- When Mwan3Conf/FirewallConf instance being deleted:
- If this SdwanRule Conf instance is used by any Sdwan instance, prevent the delete action
- When Sdwan instance created/updated:
- If the rule specified doesn't exist, prevent the create/update action
- Creates sdwan Creates sdewan deployment/pod if it does not exist
- Apply the rules Conf if the rule changesConf instance exists
- When Sdwan instance deleted:
- Delete the deployment/pod