Skip to content

Commit d5b9a1c

Browse files
authored
Merge branch 'develop' into api-specs
2 parents 02eacc9 + 4b8d72f commit d5b9a1c

File tree

6,096 files changed

+833997
-284433
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

6,096 files changed

+833997
-284433
lines changed

.nojekyll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

App.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ type App struct {
5656
server *http.Server
5757
db *pg.DB
5858
posthogClient *posthogTelemetry.PosthogClient
59+
userService user.UserService
5960
// eventProcessor.CentralEventProcessor is used to register event processors
6061
centralEventProcessor *eventProcessor.CentralEventProcessor // do not remove this.
6162
// used for local dev only
@@ -79,6 +80,7 @@ func NewApp(router *router.MuxRouter,
7980
pubSubClient *pubsub.PubSubClientServiceImpl,
8081
workflowEventProcessorImpl *in.WorkflowEventProcessorImpl,
8182
enforcerV2 *casbinv2.SyncedEnforcer,
83+
userService user.UserService,
8284
) *App {
8385
//check argo connection
8486
//todo - check argo-cd version on acd integration installation
@@ -97,6 +99,7 @@ func NewApp(router *router.MuxRouter,
9799
centralEventProcessor: centralEventProcessor,
98100
pubSubClient: pubSubClient,
99101
workflowEventProcessorImpl: workflowEventProcessorImpl,
102+
userService: userService,
100103
}
101104
return app
102105
}
@@ -112,7 +115,7 @@ func (app *App) Start() {
112115
app.MuxRouter.Init()
113116
//authEnforcer := casbin2.Create()
114117

115-
server := &http.Server{Addr: fmt.Sprintf(":%d", port), Handler: authMiddleware.Authorizer(app.sessionManager2, user.WhitelistChecker, nil)(app.MuxRouter.Router)}
118+
server := &http.Server{Addr: fmt.Sprintf(":%d", port), Handler: authMiddleware.Authorizer(app.sessionManager2, user.WhitelistChecker, app.userService.CheckUserStatusAndUpdateLoginAudit)(app.MuxRouter.Router)}
116119
app.MuxRouter.Router.Use(app.loggingMiddleware.LoggingMiddleware)
117120
app.MuxRouter.Router.Use(middleware.PrometheusMiddleware)
118121
app.MuxRouter.Router.Use(middlewares.Recovery)

CHANGELOG/release-notes-v1.7.0.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
## v1.7.0
2+
3+
## Enhancements
4+
- feat: Added Cronjob chart 1-6-0 (#6650)
5+
- feat: wf logs (#6606)
6+
- feat: Enable selection of all CI pipelines at once when the Environment filter is applied in Notifications (#6526)
7+
## Bugs
8+
- fix: app workflow cd pipleine check (#6658)
9+
- fix: panic fixes on concurrent delete request (#6657)
10+
- fix: panic fix on concurrent deletion request (#6644)
11+
- fix: duplicate entries in deployment history without override (#6637)
12+
- fix: overriden pipeline ids filtering in case of material deletion (#6636)
13+
- fix: prevent deletion of git material used in overridden CI templates (#6633)
14+
- fix: ea mode fixes (#6624)
15+
- fix: stack Manager issues (#6619)
16+
- fix: Change ci to webhook fix (#6626)
17+
- fix: oci chart deployment values.yaml and requirement.yaml not compatible (#6620)
18+
- fix: panic fix installedApp type timeline update (#6614)
19+
- fix: workflow getting incorrectly deleted in case of webhook and unreachable cluster's cd pipeline (#6602)
20+
- fix: add safety checks to prevent index-out-of-range panics in CdHandler (#6597)
21+
- fix: reverted telemetry connection error (#6587)
22+
- fix: anomalies in deployment status timeline (#6569)
23+
- fix: scoped var complex type resolution not working in patch type overrides (#6572)
24+
## Others
25+
- chore: when a cluster event occurs, create config map instead of secret (#6607)
26+
- chore: Gpu workload chart (#6608)
27+
- misc: update sample dockerfiles use non-root user (UID 2002) and base images (#6512)
28+
- misc: wire in EA (#6616)
29+
- chore: removed multi-arch section from readme (#6613)
30+
- chore: git sensor grpc lb policy change (#6610)
31+
- misc: go routines wrapped into panic safe function (#6589)
32+
- chore: http transport service refactoring (#6592)
33+
- misc: GetConfigDBObj in tx (#6584)

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.21 AS build-env
1+
FROM golang:1.24.0 AS build-env
22

33
RUN echo $GOPATH && \
44
apt update && \

DockerfileEA

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.21 AS build-env
1+
FROM golang:1.24.0 AS build-env
22

33
RUN echo $GOPATH && \
44
apt update && \

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
all: fetch-all-env build
44

5-
TARGET_BRANCH?=main
5+
TARGET_BRANCH?=develop
66
TAG?=$(shell bash -c 'git log --pretty=format:'%h' -n 1')
77
FLAGS=
88
ENVVAR=

Wire.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ import (
9393
"github.com/devtron-labs/devtron/client/cron"
9494
"github.com/devtron-labs/devtron/client/dashboard"
9595
eClient "github.com/devtron-labs/devtron/client/events"
96+
"github.com/devtron-labs/devtron/client/fluxcd"
9697
"github.com/devtron-labs/devtron/client/gitSensor"
9798
"github.com/devtron-labs/devtron/client/grafana"
9899
"github.com/devtron-labs/devtron/client/lens"
@@ -223,6 +224,7 @@ func InitializeApp() (*App, error) {
223224
policyGovernance.PolicyGovernanceWireSet,
224225
resourceScan.ScanningResultWireSet,
225226
executor.ExecutorWireSet,
227+
fluxcd.DeploymentWireSet,
226228
// -------wireset end ----------
227229
// -------
228230
gitSensor.GetConfig,
@@ -303,6 +305,9 @@ func InitializeApp() (*App, error) {
303305
pipeline.NewCiMaterialConfigServiceImpl,
304306
wire.Bind(new(pipeline.CiMaterialConfigService), new(*pipeline.CiMaterialConfigServiceImpl)),
305307

308+
app.NewDeploymentEventHandlerImpl,
309+
wire.Bind(new(app.DeploymentEventHandler), new(*app.DeploymentEventHandlerImpl)),
310+
306311
pipeline.NewAppArtifactManagerImpl,
307312
wire.Bind(new(pipeline.AppArtifactManager), new(*pipeline.AppArtifactManagerImpl)),
308313
pipeline.NewDevtronAppCMCSServiceImpl,
@@ -751,6 +756,10 @@ func InitializeApp() (*App, error) {
751756

752757
deployment3.NewFullModeDeploymentServiceImpl,
753758
wire.Bind(new(deployment3.FullModeDeploymentService), new(*deployment3.FullModeDeploymentServiceImpl)),
759+
760+
deployment3.NewFullModeFluxDeploymentServiceImpl,
761+
wire.Bind(new(deployment3.FullModeFluxDeploymentService), new(*deployment3.FullModeFluxDeploymentServiceImpl)),
762+
754763
// util2.NewGoJsonSchemaCustomFormatChecker,
755764

756765
//history starts

api/cluster/ClusterRestHandler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ func (impl ClusterRestHandlerImpl) DeleteCluster(w http.ResponseWriter, r *http.
556556
common.WriteJsonResp(w, err, "Unauthorized User", http.StatusUnauthorized)
557557
return
558558
}
559-
var bean bean2.ClusterBean
559+
var bean bean2.DeleteClusterBean
560560
err = decoder.Decode(&bean)
561561
if err != nil {
562562
impl.logger.Errorw("request err, Delete", "error", err, "payload", bean)
@@ -580,7 +580,7 @@ func (impl ClusterRestHandlerImpl) DeleteCluster(w http.ResponseWriter, r *http.
580580
//RBAC enforcer Ends
581581
err = impl.deleteService.DeleteCluster(&bean, userId)
582582
if err != nil {
583-
impl.logger.Errorw("error in deleting cluster", "err", err, "id", bean.Id, "name", bean.ClusterName)
583+
impl.logger.Errorw("error in deleting cluster", "err", err, "id", bean.Id)
584584
common.WriteJsonResp(w, err, nil, http.StatusInternalServerError)
585585
return
586586
}

api/fluxApplication/FluxApplicationRestHandler.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ func (handler *FluxApplicationRestHandlerImpl) ListFluxApplications(w http.Respo
4545
var clusterIds []int
4646
var err error
4747

48+
noStream := v.Get("noStream") == "true"
49+
4850
//handling when the clusterIds string is empty ,it will not support the
4951
if len(clusterIdString) == 0 {
5052
handler.logger.Errorw("error in getting cluster ids", "error", err, "clusterIds", clusterIds)
@@ -57,7 +59,7 @@ func (handler *FluxApplicationRestHandlerImpl) ListFluxApplications(w http.Respo
5759
return
5860
}
5961
handler.logger.Debugw("extracted ClusterIds successfully ", "clusterIds", clusterIds)
60-
handler.fluxApplicationService.ListFluxApplications(r.Context(), clusterIds, w)
62+
handler.fluxApplicationService.ListFluxApplications(r.Context(), clusterIds, noStream, w)
6163
}
6264

6365
func (handler *FluxApplicationRestHandlerImpl) GetApplicationDetail(w http.ResponseWriter, r *http.Request) {

0 commit comments

Comments
 (0)