def update_secret_binding(name, namespace, new, old, memo, **_): ''' Process the update of a secretbindings resource ''' memo.sb_controller.update_secret_binding( SecretBindingsController.get_object(name, namespace, old), SecretBindingsController.get_object(name, namespace, new) )
def update_secret_binding(name, namespace, new, old, patch, memo, **_): ''' Process the update of a secretbindings resource ''' old_bind = SecretBindingsController.get_object(name, namespace, old) new_bind = SecretBindingsController.get_object(name, namespace, new) memo.sb_controller.update_secret_binding(old_bind, new_bind) if not new_bind.compare_spec(new): patch['spec'] = new_bind.get_spec()
def create_secret_binding(name, namespace, spec, memo, **_): ''' Process the creation of a secretbindings resource ''' bind = SecretBindingsController.get_object(name, namespace, spec) memo.sb_controller.create_secret_binding(bind)
def create_secret_binding(name, namespace, spec, patch, memo, **_): ''' Process the creation of a secretbindings resource ''' bind = SecretBindingsController.get_object(name, namespace, spec) memo.sb_controller.create_secret_binding(bind) if not bind.compare_spec(spec): patch['spec'] = bind.get_spec()
def get_controllers(): main_controller = ESKEngine() return (ExternalSecretsController(main_controller), SecretBindingsController(main_controller))