|
|
@@ -50,7 +50,6 @@ func (c *CreatePorterAppHandler) ServeHTTP(w http.ResponseWriter, r *http.Reques
|
|
|
ctx := r.Context()
|
|
|
project, _ := ctx.Value(types.ProjectScope).(*models.Project)
|
|
|
cluster, _ := ctx.Value(types.ClusterScope).(*models.Cluster)
|
|
|
- user, _ := ctx.Value(types.UserScope).(*models.User)
|
|
|
|
|
|
ctx, span := telemetry.NewSpan(r.Context(), "serve-create-porter-app")
|
|
|
defer span.End()
|
|
|
@@ -302,7 +301,7 @@ func (c *CreatePorterAppHandler) ServeHTTP(w http.ResponseWriter, r *http.Reques
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- if features.AreAgentDeployEventsEnabled(user.Email, k8sAgent) {
|
|
|
+ if features.AreAgentDeployEventsEnabled(k8sAgent) {
|
|
|
serviceDeploymentStatusMap := getServiceDeploymentMetadataFromValues(values, types.PorterAppEventStatus_Progressing)
|
|
|
_, err = createNewPorterAppDeployEvent(ctx, serviceDeploymentStatusMap, types.PorterAppEventStatus_Progressing, porterApp.ID, 1, imageInfo.Tag, c.Repo().PorterAppEvent())
|
|
|
} else {
|
|
|
@@ -491,7 +490,7 @@ func (c *CreatePorterAppHandler) ServeHTTP(w http.ResponseWriter, r *http.Reques
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- if features.AreAgentDeployEventsEnabled(user.Email, k8sAgent) {
|
|
|
+ if features.AreAgentDeployEventsEnabled(k8sAgent) {
|
|
|
serviceDeploymentStatusMap := getServiceDeploymentMetadataFromValues(values, types.PorterAppEventStatus_Progressing)
|
|
|
_, err = createNewPorterAppDeployEvent(ctx, serviceDeploymentStatusMap, types.PorterAppEventStatus_Progressing, updatedPorterApp.ID, helmRelease.Version+1, imageInfo.Tag, c.Repo().PorterAppEvent())
|
|
|
} else {
|