Procházet zdrojové kódy

add user id to infra objects

Alexander Belanger před 4 roky
rodič
revize
d7886736ea

+ 1 - 0
api/server/handlers/provision/provision_docr.go

@@ -69,6 +69,7 @@ func (c *ProvisionDOCRHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
 		Suffix:          suffix,
 		Status:          types.StatusCreating,
 		DOIntegrationID: request.DOIntegrationID,
+		CreatedByUserID: user.ID,
 	}
 
 	// handle write to the database

+ 1 - 0
api/server/handlers/provision/provision_doks.go

@@ -69,6 +69,7 @@ func (c *ProvisionDOKSHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
 		Suffix:          suffix,
 		Status:          types.StatusCreating,
 		DOIntegrationID: request.DOIntegrationID,
+		CreatedByUserID: user.ID,
 	}
 
 	// handle write to the database

+ 1 - 0
api/server/handlers/provision/provision_ecr.go

@@ -69,6 +69,7 @@ func (c *ProvisionECRHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
 		Suffix:           suffix,
 		Status:           types.StatusCreating,
 		AWSIntegrationID: request.AWSIntegrationID,
+		CreatedByUserID:  user.ID,
 	}
 
 	// handle write to the database

+ 1 - 0
api/server/handlers/provision/provision_eks.go

@@ -69,6 +69,7 @@ func (c *ProvisionEKSHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
 		Suffix:           suffix,
 		Status:           types.StatusCreating,
 		AWSIntegrationID: request.AWSIntegrationID,
+		CreatedByUserID:  user.ID,
 	}
 
 	// handle write to the database

+ 1 - 0
api/server/handlers/provision/provision_gcr.go

@@ -69,6 +69,7 @@ func (c *ProvisionGCRHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
 		Suffix:           suffix,
 		Status:           types.StatusCreating,
 		GCPIntegrationID: request.GCPIntegrationID,
+		CreatedByUserID:  user.ID,
 	}
 
 	// handle write to the database

+ 1 - 0
api/server/handlers/provision/provision_gke.go

@@ -69,6 +69,7 @@ func (c *ProvisionGKEHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
 		Suffix:           suffix,
 		Status:           types.StatusCreating,
 		GCPIntegrationID: request.GCPIntegrationID,
+		CreatedByUserID:  user.ID,
 	}
 
 	// handle write to the database