Răsfoiți Sursa

requests check capi enabled from db, not env

Stefan McShane 3 ani în urmă
părinte
comite
583f4bc395
2 a modificat fișierele cu 4 adăugiri și 1 ștergeri
  1. 3 0
      .gitignore
  2. 1 1
      api/server/handlers/project_integration/create_aws.go

+ 3 - 0
.gitignore

@@ -17,6 +17,9 @@ bin
 openapi.yaml
 .idea
 vendor
+zarf/helm/charts
+*.env
+porter
 
 # Local docs directories
 /docs/.obsidian

+ 1 - 1
api/server/handlers/project_integration/create_aws.go

@@ -51,7 +51,7 @@ func (p *CreateAWSHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
 		AWSIntegration: aws.ToAWSIntegrationType(),
 	}
 
-	if !p.Config().DisableCAPIProvisioner {
+	if project.CapiProvisionerEnabled {
 		credReq := porterv1.CreateAssumeRoleChainRequest{
 			ProjectId:       int64(project.ID),
 			SourceArn:       "arn:aws:iam::108458755588:role/CAPIManagement", // hard coded as this is the final hop for a CAPI cluster