Explorar el Código

send doks as cluster type when provisioned

Alexander Belanger hace 5 años
padre
commit
1ebece1f7c
Se han modificado 2 ficheros con 3 adiciones y 0 borrados
  1. 2 0
      internal/models/cluster.go
  2. 1 0
      internal/models/integrations/integration.go

+ 2 - 0
internal/models/cluster.go

@@ -96,6 +96,8 @@ func (c *Cluster) Externalize() *ClusterExternal {
 		serv = integrations.EKS
 		serv = integrations.EKS
 	} else if c.GCPIntegrationID != 0 {
 	} else if c.GCPIntegrationID != 0 {
 		serv = integrations.GKE
 		serv = integrations.GKE
+	} else if c.DOIntegrationID != 0 {
+		serv = integrations.DOKS
 	}
 	}
 
 
 	return &ClusterExternal{
 	return &ClusterExternal{

+ 1 - 0
internal/models/integrations/integration.go

@@ -6,6 +6,7 @@ type IntegrationService string
 // The list of supported third-party services
 // The list of supported third-party services
 const (
 const (
 	GKE      IntegrationService = "gke"
 	GKE      IntegrationService = "gke"
+	DOKS     IntegrationService = "doks"
 	GCS      IntegrationService = "gcs"
 	GCS      IntegrationService = "gcs"
 	S3       IntegrationService = "s3"
 	S3       IntegrationService = "s3"
 	HelmRepo IntegrationService = "helm"
 	HelmRepo IntegrationService = "helm"