소스 검색

send doks as cluster type when provisioned

Alexander Belanger 5 년 전
부모
커밋
1ebece1f7c
2개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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"