Prechádzať zdrojové kódy

send doks as cluster type when provisioned

Alexander Belanger 5 rokov pred
rodič
commit
1ebece1f7c

+ 2 - 0
internal/models/cluster.go

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

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

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