outpost: rewrite kubernetes controller

This commit is contained in:
Jens Langhammer
2020-10-14 17:49:09 +02:00
parent 5556e9f8e7
commit 45699a1a69
8 changed files with 411 additions and 133 deletions

View File

@ -36,6 +36,9 @@ class OutpostConfig:
"error_reporting.environment", "customer"
)
kubernetes_replicas: int = field(default=1)
kubernetes_namespace: str = field(default="default")
class OutpostModel(Model):
"""Base model for providers that need more objects than just themselves"""
@ -58,7 +61,7 @@ class OutpostType(models.TextChoices):
class OutpostDeploymentType(models.TextChoices):
"""Deployment types that are managed through passbook"""
# KUBERNETES = "kubernetes"
KUBERNETES = "kubernetes"
DOCKER = "docker"
CUSTOM = "custom"