diff options
| author | Carlos Konstanski <carlos.konstanski@verizonwireless.com> | 2020-04-30 08:34:07 -0600 |
|---|---|---|
| committer | Carlos Konstanski <carlos.konstanski@verizonwireless.com> | 2020-04-30 08:34:07 -0600 |
| commit | 08203a6cb7889e55975d1568e9f4a9187fad8306 (patch) | |
| tree | 49ca07c8c2a44b213c0bfe23303bfbbda41d965a /src/orchestration/models.py | |
initial commit
Diffstat (limited to 'src/orchestration/models.py')
| -rw-r--r-- | src/orchestration/models.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/orchestration/models.py b/src/orchestration/models.py new file mode 100644 index 0000000..8e79d8d --- /dev/null +++ b/src/orchestration/models.py @@ -0,0 +1,26 @@ +from django.db import models + + +class ImageSync(models.Model): + remote_region_name = models.CharField(max_length=64) + docker_image = models.TextField(max_length=65535) + upload_start_time = models.DateTimeField() + upload_end_time = models.DateTimeField(null=True) + upload_status = models.CharField(max_length=9, choices=[('STARTED', 'STARTED'), ('UPLOADING', 'UPLOADING'), ('COMPLETE', 'COMPLETE'), ('FAILED', 'FAILED')]) + upload_message = models.CharField(max_length=255) + + def __str__(self): + return "%s : %s" % (self.remote_region_name, self.docker_image) + + +class RemoteRegionSetup(models.Model): + caas_vendor_version = models.CharField(max_length=20) + kubernetes_version = models.CharField(max_length=20) + central_region_name = models.CharField(max_length=64) + remote_region_name = models.CharField(max_length=64) + kubernetes_namespace = models.CharField(max_length=64) + serviceaccount = models.CharField(max_length=64) + kubeconfig = models.TextField(max_length=16777215, null=True, blank=True) + + def __str__(self): + return "%s : %s" % (self.remote_region_name, self.kubernetes_namespace) |
