outposts: fix circular import in kubernetes controller
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
		| @ -10,7 +10,7 @@ from structlog.stdlib import get_logger | ||||
| from urllib3.exceptions import HTTPError | ||||
|  | ||||
| from authentik import __version__ | ||||
| from authentik.lib.sentry import SentryIgnoredException | ||||
| from authentik.outposts.controllers.k8s.triggers import NeedsRecreate, NeedsUpdate | ||||
| from authentik.outposts.managed import MANAGED_OUTPOST | ||||
|  | ||||
| if TYPE_CHECKING: | ||||
| @ -20,18 +20,6 @@ if TYPE_CHECKING: | ||||
| T = TypeVar("T", V1Pod, V1Deployment) | ||||
|  | ||||
|  | ||||
| class ReconcileTrigger(SentryIgnoredException): | ||||
|     """Base trigger raised by child classes to notify us""" | ||||
|  | ||||
|  | ||||
| class NeedsRecreate(ReconcileTrigger): | ||||
|     """Exception to trigger a complete recreate of the Kubernetes Object""" | ||||
|  | ||||
|  | ||||
| class NeedsUpdate(ReconcileTrigger): | ||||
|     """Exception to trigger an update to the Kubernetes Object""" | ||||
|  | ||||
|  | ||||
| class KubernetesObjectReconciler(Generic[T]): | ||||
|     """Base Kubernetes Reconciler, handles the basic logic.""" | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Jens Langhammer
					Jens Langhammer