Skip to content

Commit eb92019

Browse files
committed
Merge branch 'develop' into app-template-oss-ent
2 parents f9e40a2 + a2b6047 commit eb92019

File tree

665 files changed

+58265
-12310
lines changed

Some content is hidden

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

665 files changed

+58265
-12310
lines changed

CHANGELOG/release-notes-v1.3.0.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
## v1.3.0
2+
3+
## Bugs
4+
- fix: panic fixes (#6411)
5+
- fix: auto pre-cd not getting triggered (if cd is manual) after webhook ci event is captured (#6407)
6+
- fix: Base update (#6405)
7+
- fix: devtron apps deployed via helm showing in helm apps list (#6397)
8+
- fix: when a helm app is managed by argocd then skip argo app update when same name ext helm app is installed (#6389)
9+
- fix: upgraded to go-git/v5 v5.13.0 (#6388)
10+
- fix: fix for ci cd workflow fake success status and multiple post/pre cd success notifications (#6370)
11+
- fix: fix for while cloning app or workflow when external secret is present in any pipeline then that pipeline is not cloned (#6368)
12+
- fix: fix for while cloning app or workflow when external secret is present in any pipeline then that pipeline is not cloned (#6366)
13+
- fix: buildx driver opt using k8s driver even if not enabled (#6349)
14+
- fix: Auto trigger even if pre-cd fails (#6338)
15+
- fix: role group listing fix (#6343)
16+
- fix: sql injection fixes (#6334)
17+
- fix: role group k8s permissions duplication (#6336)
18+
## Enhancements
19+
- feat: hibernate devtron app (#6356)
20+
- feat: separate build worker status timeline (#6320)
21+
- feat: send notification with chosen config (#6331)
22+
- feat: sql script changes for operation audit (#6342)
23+
## Documentation
24+
- doc: updated devtron user list in users.md (#6363)
25+
## Others
26+
- misc: pipeline listing in app Group (#6410)
27+
- misc: Notif back com (#6398)
28+
- sync: Main sync develop (#6396)
29+
- sync: vendor update on release 29 (#6395)
30+
- sync: Release candidate v0.29.0 (#6394)
31+
- sync: Main sync develop (#6375)
32+
- misc: common-lib change (#6347)
33+
- sync: Release candidate v0.28.0 (#6340)
34+
- misc: Fix typo: Cronjob → CronJob (#6335)
35+
- sync: Main sync develop (#6358)
36+
37+

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ADD ./vendor/github.com/Microsoft/ /go/src/github.com/devtron-labs/devtron/vendo
1414
RUN GOOS=linux make build
1515

1616
# uncomment this post build arg
17-
FROM ubuntu:22.04@sha256:1b8d8ff4777f36f19bfe73ee4df61e3a0b789caeff29caa019539ec7c9a57f95 as devtron-all
17+
FROM ubuntu:24.04@sha256:72297848456d5d37d1262630108ab308d3e9ec7ed1c3286a32fe09856619a782 as devtron-all
1818

1919
RUN apt update && \
2020
apt install ca-certificates git curl -y && \
@@ -43,4 +43,4 @@ RUN chmod +x /git-ask-pass.sh
4343

4444
USER devtron
4545

46-
CMD ["./devtron"]
46+
CMD ["./devtron"]

DockerfileEA

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ADD ./vendor/github.com/Microsoft/ /go/src/github.com/devtron-labs/devtron/vendo
1313

1414
RUN GOOS=linux make build-all
1515

16-
FROM ubuntu:22.04@sha256:1b8d8ff4777f36f19bfe73ee4df61e3a0b789caeff29caa019539ec7c9a57f95 as devtron-ea
16+
FROM ubuntu:24.04@sha256:72297848456d5d37d1262630108ab308d3e9ec7ed1c3286a32fe09856619a782 as devtron-ea
1717

1818
RUN apt update && \
1919
apt install ca-certificates curl -y && \

USERS.md

Lines changed: 31 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,34 @@ As the community grows, we want to keep track of the users and organizations usi
55
Currently, Devtron is being used by the following organizations:
66

77
1. [73strings](https://www.73strings.com/)
8-
2. [Ather Energy](https://www.atherenergy.com/)
9-
3. [BharatPe](https://bharatpe.com/)
10-
4. [Birdeye](https://birdeye.com/)
11-
5. [Bluecopa](https://www.bluecopa.com/)
12-
6. [Chitale Bandhu](https://www.chitalebandhu.in/)
13-
7. [Centricity](https://centricity.co.in/)
14-
8. [Delhivery](https://www.delhivery.com/)
15-
9. [KHELGroup](https://thekhelgroup.com/)
16-
10. [Lemnisk](https://www.lemnisk.co/)
17-
11. [OTPLess](https://otpless.com/)
18-
12. [Spinny](https://www.spinny.com/)
19-
13. [Tata 1Mg](https://www.1mg.com/)
20-
14. [TravClan](https://www.travclan.com/)
21-
15. [Xoxoday](https://www.xoxoday.com/)
22-
23-
24-
8+
2. [Apica](https://www.apica.io/)
9+
3. [Ather Energy](https://www.atherenergy.com/)
10+
4. [BharatPe](https://bharatpe.com/)
11+
5. [Birdeye](https://birdeye.com/)
12+
6. [Bluecopa](https://www.bluecopa.com/)
13+
7. [Careers 360](https://www.careers360.com/)
14+
8. [Chitale Bandhu](https://www.chitalebandhu.in/)
15+
9. [Comcast](https://corporate.comcast.com/)
16+
10. [Delhivery](https://www.delhivery.com/)
17+
11. [Empuls](https://www.empuls.io/)
18+
12. [EMT Madrid](https://www.emtmadrid.es/Home)
19+
13. [Encircle Marketing](https://encircle-marketing.com/)
20+
14. [FTL Express](https://www.ftl-express.com/)
21+
15. [Genwise](https://www.genwise.club/)
22+
16. [HCL Tech](https://www.hcltech.com/)
23+
17. [Indiamart](https://www.indiamart.com/)
24+
18. [IPCortex](https://ipcortex.co.uk/)
25+
19. [Jivi.ai](https://www.jivi.ai/)
26+
20. [KHELGroup](https://thekhelgroup.com/)
27+
21. [Kenny LLC](https://kennyl.dev/)
28+
22. [Lemnisk](https://www.lemnisk.co/)
29+
23. [MobileID](https://www.mobileid.ch/en)
30+
24. [OTPLess](https://otpless.com/)
31+
25. [University of Albany](https://www.albany.edu/)
32+
26. [Shiprocket](https://www.shiprocket.in/)
33+
27. [Spinny](https://www.spinny.com/)
34+
28. [Tata 1Mg](https://www.1mg.com/)
35+
29. [Texas Tech University](https://www.ttu.edu/)
36+
30. [TravClan](https://www.travclan.com/)
37+
31. [Xoxoday](https://www.xoxoday.com/)
38+
32. [Zupee](https://www.zupee.com/)

Wire.go

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ import (
7373
"github.com/devtron-labs/devtron/api/sse"
7474
"github.com/devtron-labs/devtron/api/team"
7575
"github.com/devtron-labs/devtron/api/terminal"
76+
"github.com/devtron-labs/devtron/api/userResource"
7677
util5 "github.com/devtron-labs/devtron/api/util"
7778
webhookHelm "github.com/devtron-labs/devtron/api/webhook/helm"
7879
"github.com/devtron-labs/devtron/cel"
@@ -102,14 +103,14 @@ import (
102103
appWorkflow2 "github.com/devtron-labs/devtron/internal/sql/repository/appWorkflow"
103104
"github.com/devtron-labs/devtron/internal/sql/repository/bulkUpdate"
104105
"github.com/devtron-labs/devtron/internal/sql/repository/chartConfig"
105-
"github.com/devtron-labs/devtron/internal/sql/repository/deploymentConfig"
106106
dockerRegistryRepository "github.com/devtron-labs/devtron/internal/sql/repository/dockerRegistry"
107107
"github.com/devtron-labs/devtron/internal/sql/repository/helper"
108108
repository8 "github.com/devtron-labs/devtron/internal/sql/repository/imageTagging"
109109
"github.com/devtron-labs/devtron/internal/sql/repository/pipelineConfig"
110110
resourceGroup "github.com/devtron-labs/devtron/internal/sql/repository/resourceGroup"
111111
"github.com/devtron-labs/devtron/internal/util"
112112
"github.com/devtron-labs/devtron/pkg/app"
113+
read4 "github.com/devtron-labs/devtron/pkg/app/appDetails/read"
113114
"github.com/devtron-labs/devtron/pkg/app/dbMigration"
114115
"github.com/devtron-labs/devtron/pkg/app/status"
115116
"github.com/devtron-labs/devtron/pkg/appClone"
@@ -125,9 +126,10 @@ import (
125126
"github.com/devtron-labs/devtron/pkg/build"
126127
"github.com/devtron-labs/devtron/pkg/build/artifacts/imageTagging"
127128
pipeline6 "github.com/devtron-labs/devtron/pkg/build/pipeline"
128-
"github.com/devtron-labs/devtron/pkg/bulkAction"
129+
"github.com/devtron-labs/devtron/pkg/bulkAction/service"
129130
"github.com/devtron-labs/devtron/pkg/chart"
130131
"github.com/devtron-labs/devtron/pkg/chart/gitOpsConfig"
132+
read2 "github.com/devtron-labs/devtron/pkg/chart/read"
131133
chartRepoRepository "github.com/devtron-labs/devtron/pkg/chartRepo/repository"
132134
"github.com/devtron-labs/devtron/pkg/commonService"
133135
"github.com/devtron-labs/devtron/pkg/config"
@@ -155,6 +157,8 @@ import (
155157
repository3 "github.com/devtron-labs/devtron/pkg/pipeline/history/repository"
156158
repository5 "github.com/devtron-labs/devtron/pkg/pipeline/repository"
157159
"github.com/devtron-labs/devtron/pkg/pipeline/types"
160+
"github.com/devtron-labs/devtron/pkg/pipeline/workflowStatus"
161+
repository6 "github.com/devtron-labs/devtron/pkg/pipeline/workflowStatus/repository"
158162
"github.com/devtron-labs/devtron/pkg/plugin"
159163
"github.com/devtron-labs/devtron/pkg/policyGovernance"
160164
resourceGroup2 "github.com/devtron-labs/devtron/pkg/resourceGroup"
@@ -167,6 +171,7 @@ import (
167171
workflow3 "github.com/devtron-labs/devtron/pkg/workflow"
168172
"github.com/devtron-labs/devtron/pkg/workflow/dag"
169173
util2 "github.com/devtron-labs/devtron/util"
174+
"github.com/devtron-labs/devtron/util/commonEnforcementFunctionsUtil"
170175
cron2 "github.com/devtron-labs/devtron/util/cron"
171176
"github.com/devtron-labs/devtron/util/rbac"
172177
"github.com/google/wire"
@@ -210,6 +215,7 @@ func InitializeApp() (*App, error) {
210215
workflow3.WorkflowWireSet,
211216
imageTagging.WireSet,
212217
devtronResource.DevtronResourceWireSet,
218+
userResource.UserResourceWireSet,
213219
policyGovernance.PolicyGovernanceWireSet,
214220
resourceScan.ScanningResultWireSet,
215221

@@ -355,8 +361,10 @@ func InitializeApp() (*App, error) {
355361
wire.Bind(new(gitOpsConfig.DevtronAppGitOpConfigService), new(*gitOpsConfig.DevtronAppGitOpConfigServiceImpl)),
356362
chart.NewChartServiceImpl,
357363
wire.Bind(new(chart.ChartService), new(*chart.ChartServiceImpl)),
358-
bulkAction.NewBulkUpdateServiceImpl,
359-
wire.Bind(new(bulkAction.BulkUpdateService), new(*bulkAction.BulkUpdateServiceImpl)),
364+
read2.NewChartReadServiceImpl,
365+
wire.Bind(new(read2.ChartReadService), new(*read2.ChartReadServiceImpl)),
366+
service.NewBulkUpdateServiceImpl,
367+
wire.Bind(new(service.BulkUpdateService), new(*service.BulkUpdateServiceImpl)),
360368

361369
repository.NewImageTagRepository,
362370
wire.Bind(new(repository.ImageTagRepository), new(*repository.ImageTagRepositoryImpl)),
@@ -373,6 +381,10 @@ func InitializeApp() (*App, error) {
373381
wire.Bind(new(appList.AppListingRouter), new(*appList.AppListingRouterImpl)),
374382
appList2.NewAppListingRestHandlerImpl,
375383
wire.Bind(new(appList2.AppListingRestHandler), new(*appList2.AppListingRestHandlerImpl)),
384+
385+
read4.NewAppDetailsReadServiceImpl,
386+
wire.Bind(new(read4.AppDetailsReadService), new(*read4.AppDetailsReadServiceImpl)),
387+
376388
app.NewAppListingServiceImpl,
377389
wire.Bind(new(app.AppListingService), new(*app.AppListingServiceImpl)),
378390
repository.NewAppListingRepositoryImpl,
@@ -471,6 +483,11 @@ func InitializeApp() (*App, error) {
471483
pipeline.NewCiServiceImpl,
472484
wire.Bind(new(pipeline.CiService), new(*pipeline.CiServiceImpl)),
473485

486+
workflowStatus.NewWorkflowStageFlowStatusServiceImpl,
487+
wire.Bind(new(workflowStatus.WorkFlowStageStatusService), new(*workflowStatus.WorkFlowStageStatusServiceImpl)),
488+
repository6.NewWorkflowStageRepositoryImpl,
489+
wire.Bind(new(repository6.WorkflowStageRepository), new(*repository6.WorkflowStageRepositoryImpl)),
490+
474491
pipelineConfig.NewCiWorkflowRepositoryImpl,
475492
wire.Bind(new(pipelineConfig.CiWorkflowRepository), new(*pipelineConfig.CiWorkflowRepositoryImpl)),
476493

@@ -488,6 +505,9 @@ func InitializeApp() (*App, error) {
488505
rbac.NewEnforcerUtilImpl,
489506
wire.Bind(new(rbac.EnforcerUtil), new(*rbac.EnforcerUtilImpl)),
490507

508+
commonEnforcementFunctionsUtil.NewCommonEnforcementUtilImpl,
509+
wire.Bind(new(commonEnforcementFunctionsUtil.CommonEnforcementUtil), new(*commonEnforcementFunctionsUtil.CommonEnforcementUtilImpl)),
510+
491511
chartConfig.NewPipelineConfigRepository,
492512
wire.Bind(new(chartConfig.PipelineConfigRepository), new(*chartConfig.PipelineConfigRepositoryImpl)),
493513

@@ -615,6 +635,7 @@ func InitializeApp() (*App, error) {
615635
repository9.NewClusterInstalledAppsRepositoryImpl,
616636
wire.Bind(new(repository9.ClusterInstalledAppsRepository), new(*repository9.ClusterInstalledAppsRepositoryImpl)),
617637

638+
commonService.NewCommonBaseServiceImpl,
618639
commonService.NewCommonServiceImpl,
619640
wire.Bind(new(commonService.CommonService), new(*commonService.CommonServiceImpl)),
620641

@@ -652,8 +673,8 @@ func InitializeApp() (*App, error) {
652673

653674
router.NewCommonRouterImpl,
654675
wire.Bind(new(router.CommonRouter), new(*router.CommonRouterImpl)),
655-
restHandler.NewCommonRestHanlderImpl,
656-
wire.Bind(new(restHandler.CommonRestHanlder), new(*restHandler.CommonRestHanlderImpl)),
676+
restHandler.NewCommonRestHandlerImpl,
677+
wire.Bind(new(restHandler.CommonRestHandler), new(*restHandler.CommonRestHandlerImpl)),
657678

658679
router.NewScopedVariableRouterImpl,
659680
wire.Bind(new(router.ScopedVariableRouter), new(*router.ScopedVariableRouterImpl)),
@@ -934,11 +955,7 @@ func InitializeApp() (*App, error) {
934955
cel.NewCELServiceImpl,
935956
wire.Bind(new(cel.EvaluatorService), new(*cel.EvaluatorServiceImpl)),
936957

937-
deploymentConfig.NewRepositoryImpl,
938-
wire.Bind(new(deploymentConfig.Repository), new(*deploymentConfig.RepositoryImpl)),
939-
940-
common.NewDeploymentConfigServiceImpl,
941-
wire.Bind(new(common.DeploymentConfigService), new(*common.DeploymentConfigServiceImpl)),
958+
common.WireSet,
942959

943960
repoCredsK8sClient.NewRepositoryCredsK8sClientImpl,
944961
wire.Bind(new(repoCredsK8sClient.RepositoryCredsK8sClient), new(*repoCredsK8sClient.RepositoryCredsK8sClientImpl)),

WiringNilCheck.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ func skipUnnecessaryFieldsForCheck(fieldName, valName string) bool {
114114
"modulecronserviceimpl": {"cron"},
115115
"oteltracingserviceimpl": {"traceprovider"},
116116
"terminalaccessrepositoryimpl": {"templatescache"},
117+
"grpcapiclientimpl": {"serviceclient"},
118+
"serverenvconfig": {"errorencounteredongettingdevtronhelmrelease"},
117119
}
118120
if _, ok := fieldAndValName[valName]; ok {
119121
for _, ignoreFieldName := range fieldAndValName[valName] {

api/appStore/chartGroup/ChartGroupRestHandler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ func (impl *ChartGroupRestHandlerImpl) GetChartGroupList(w http.ResponseWriter,
274274
return
275275
}
276276
}
277-
res, err := impl.ChartGroupService.ChartGroupList(maxCount)
277+
res, err := impl.ChartGroupService.GetChartGroupList(maxCount)
278278
if err != nil {
279279
impl.Logger.Errorw("service err, GetChartGroupList", "err", err, "max", max)
280280
common.WriteJsonResp(w, err, nil, http.StatusInternalServerError)

api/argoApplication/ArgoApplicationRestHandler.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package argoApplication
1818

1919
import (
20+
"context"
2021
"errors"
2122
"github.com/devtron-labs/devtron/api/restHandler/common"
2223
"github.com/devtron-labs/devtron/pkg/argoApplication"
@@ -89,6 +90,9 @@ func (handler *ArgoApplicationRestHandlerImpl) GetApplicationDetail(w http.Respo
8990
common.WriteJsonResp(w, errors.New("unauthorized"), nil, http.StatusForbidden)
9091
return
9192
}
93+
ctx := r.Context()
94+
ctx = context.WithValue(ctx, "token", token)
95+
9296
var err error
9397
v := r.URL.Query()
9498
resourceName := v.Get("name")
@@ -104,7 +108,7 @@ func (handler *ArgoApplicationRestHandlerImpl) GetApplicationDetail(w http.Respo
104108
return
105109
}
106110
}
107-
resp, err := handler.readService.GetAppDetail(resourceName, namespace, clusterId)
111+
resp, err := handler.readService.GetAppDetailEA(ctx, resourceName, namespace, clusterId)
108112
if err != nil {
109113
handler.logger.Errorw("error in getting argo application app detail", "err", err, "resourceName", resourceName, "clusterId", clusterId)
110114
common.WriteJsonResp(w, err, nil, http.StatusInternalServerError)

api/argoApplication/wire_argoApplication.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ var ArgoApplicationWireSetFull = wire.NewSet(
3030
config.NewArgoApplicationConfigServiceImpl,
3131
wire.Bind(new(config.ArgoApplicationConfigService), new(*config.ArgoApplicationConfigServiceImpl)),
3232

33+
argoApplication.NewArgoApplicationServiceImpl,
3334
argoApplication.NewArgoApplicationServiceExtendedServiceImpl,
3435
wire.Bind(new(argoApplication.ArgoApplicationService), new(*argoApplication.ArgoApplicationServiceExtendedImpl)),
3536

api/auth/sso/SsoLoginHandler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ package sso
1919
import (
2020
"encoding/json"
2121
"errors"
22+
"github.com/devtron-labs/devtron/pkg/auth/user/bean"
2223
"net/http"
2324
"strconv"
2425

25-
"github.com/devtron-labs/devtron/api/bean"
2626
"github.com/devtron-labs/devtron/api/restHandler/common"
2727
"github.com/devtron-labs/devtron/pkg/auth/authorisation/casbin"
2828
"github.com/devtron-labs/devtron/pkg/auth/sso"

0 commit comments

Comments
 (0)