Skip to content

Commit

Permalink
Merge branch 'main' of github.com:devtron-labs/devtron into helm-depl…
Browse files Browse the repository at this point in the history
…oy-panic
  • Loading branch information
ayu-devtron committed Nov 13, 2024
2 parents 048ee95 + 36636c0 commit eb87294
Show file tree
Hide file tree
Showing 18 changed files with 140 additions and 205 deletions.
31 changes: 31 additions & 0 deletions CHANGELOG/release-notes-v1.0.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
## v1.0.0

## Bugs
- fix: Helm rollback in case of no gitops (#6005)
- fix: App detail deployed by (#6032)
- fix: Removed not null constraint for releaseOverride (#6044)
- fix: Showing inaccurate data in template/list api while fetching previous deployments list in template/list api, output shown was cartesian product of deployment_template_history and wfr (#6034)
- fix: Plugin getByName method error handling (#6016)
- fix: Config deployment history fix (#6003)
- fix: Force abort fix (#5990)
- fix: Helm deployment status (#5996)
- fix: Deployment window FIXED type (#5986)
- fix: Migration seq fix (#5962)
- fix: Modified the query for User listing with filters (#5957)
- fix: Bulk deploy panic and docker tag handling (#5949)
- fix: Stage artifact logic (#5913)
- fix: Permission access getting clubbed (#6045)
## Enhancements
- feat: Config diff enhancement (#5837)
- feat: Terminal role casbin policy (#5991)
- feat: Refactoring argo application service and common-lib constants (#5944)
## Others
- fix : Multiple param of filter in helm app list (#6013)
- chore: Adding refchart migration (#6007)
- chore: Cluster terminal images migration (#6006)
- misc: Removed deployment group validation when deleting CD pipelines (#5989)
- misc: Replaced != with <> for PostgreSQL compatibility (#5987)
- misc: isLatest field in plugin metadata tag changed to not_null (#5984)
- misc: Error handling while creating github repo in case of concurrent reqs (#5978)
- misc: Updated migration number (#5948)
- misc: Err handling for configmap access (#5938)
3 changes: 2 additions & 1 deletion COMMUNITY_CONTRIBUTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* https://www.financialexpress.com/industry/sme/devtron-a-business-opportunity-in-developers-needs/2274094/ - By Srinath Srinivasan


## Videos
## :video_camera: Videos

* https://www.youtube.com/watch?v=ZKcfZC-zSMM - By Victor Farcic

Expand All @@ -33,3 +33,4 @@
* https://www.youtube.com/watch?v=W4-UorfDQxI - Carbon_Capital Consulting

* https://www.youtube.com/watch?v=FB5BI3Ef7uw&t=363s - Let's learn Devtron

184 changes: 77 additions & 107 deletions README.md

Large diffs are not rendered by default.

Binary file added assets/dashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/devtron-feat-glance.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions charts/devtron/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: devtron-operator
appVersion: 0.7.4
appVersion: 1.0.0
description: Chart to configure and install Devtron. Devtron is a Kubernetes Orchestration system.
keywords:
- Devtron
Expand All @@ -11,7 +11,7 @@ keywords:
- argocd
- Hyperion
engine: gotpl
version: 0.22.76
version: 0.22.77
sources:
- https://github.com/devtron-labs/charts
dependencies:
Expand Down
10 changes: 5 additions & 5 deletions charts/devtron/devtron-bom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ global:
containerRegistry: "quay.io/devtron"
extraManifests: []
installer:
release: "v0.7.4"
release: "v1.0.0"
registry: ""
image: "inception"
tag: "473deaa4-185-21582"
Expand All @@ -34,17 +34,17 @@ components:
FEATURE_USER_DEFINED_GITOPS_REPO_ENABLE: "true"
ENABLE_RESOURCE_SCAN: "true"
registry: ""
image: "dashboard:5be7fbeb-690-26830"
image: "dashboard:7e7a0d0a-690-26996"
imagePullPolicy: IfNotPresent
devtron:
registry: ""
image: "hyperion:4288e910-280-26829"
cicdImage: "devtron:4288e910-434-26828"
image: "hyperion:15cf0137-280-27017"
cicdImage: "devtron:15cf0137-434-27015"
imagePullPolicy: IfNotPresent
customOverrides: {}
ciRunner:
registry: ""
image: "ci-runner:fd5702db-138-25483"
image: "ci-runner:3e71f258-138-27009"
argocdDexServer:
registry: ""
image: "dex:v2.30.2"
Expand Down
10 changes: 5 additions & 5 deletions charts/devtron/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ global:
extraManifests: []
installer:
repo: "devtron-labs/devtron"
release: "v0.7.4"
release: "v1.0.0"
registry: ""
image: inception
tag: 473deaa4-185-21582
Expand Down Expand Up @@ -77,12 +77,12 @@ components:
FEATURE_USER_DEFINED_GITOPS_REPO_ENABLE: "true"
ENABLE_RESOURCE_SCAN: "true"
registry: ""
image: "dashboard:5be7fbeb-690-26830"
image: "dashboard:7e7a0d0a-690-26996"
imagePullPolicy: IfNotPresent
devtron:
registry: ""
image: "hyperion:4288e910-280-26829"
cicdImage: "devtron:4288e910-434-26828"
image: "hyperion:15cf0137-280-27017"
cicdImage: "devtron:15cf0137-434-27015"
imagePullPolicy: IfNotPresent
customOverrides: {}
serviceMonitor:
Expand All @@ -108,7 +108,7 @@ components:
# - devtron.example.com
ciRunner:
registry: ""
image: "ci-runner:fd5702db-138-25483"
image: "ci-runner:3e71f258-138-27009"
argocdDexServer:
registry: ""
image: "dex:v2.30.2"
Expand Down
2 changes: 1 addition & 1 deletion manifests/install/devtron-installer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ metadata:
name: installer-devtron
namespace: devtroncd
spec:
url: https://raw.githubusercontent.com/devtron-labs/devtron/v0.7.4/manifests/installation-script
url: https://raw.githubusercontent.com/devtron-labs/devtron/v1.0.0/manifests/installation-script
2 changes: 1 addition & 1 deletion manifests/installation-script
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
LTAG="v0.7.4";
LTAG="v1.0.0";
REPO_RAW_URL="https://raw.githubusercontent.com/devtron-labs/devtron/";

log("executed devtron setup installation");
2 changes: 1 addition & 1 deletion manifests/release.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
stable -1 v0.7.4
stable -1 v1.0.0
2 changes: 1 addition & 1 deletion manifests/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.7.4
v1.0.0
2 changes: 1 addition & 1 deletion manifests/yamls/dashboard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ spec:
- name: envoy-config-volume
mountPath: /etc/envoy-config/
- name: dashboard
image: "quay.io/devtron/dashboard:5be7fbeb-690-26830"
image: "quay.io/devtron/dashboard:7e7a0d0a-690-26996"
imagePullPolicy: IfNotPresent
securityContext:
allowPrivilegeEscalation: false
Expand Down
4 changes: 2 additions & 2 deletions manifests/yamls/devtron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ data:
CD_NODE_TAINTS_VALUE: "ci"
CD_ARTIFACT_LOCATION_FORMAT: "%d/%d.zip"
DEFAULT_CD_NAMESPACE: "devtron-cd"
DEFAULT_CI_IMAGE: "quay.io/devtron/ci-runner:fd5702db-138-25483"
DEFAULT_CI_IMAGE: "quay.io/devtron/ci-runner:3e71f258-138-27009"
DEFAULT_CD_TIMEOUT: "3600"
WF_CONTROLLER_INSTANCE_ID: "devtron-runner"
CI_LOGS_KEY_PREFIX: "ci-artifacts"
Expand Down Expand Up @@ -169,7 +169,7 @@ spec:
runAsUser: 1000
containers:
- name: devtron
image: "quay.io/devtron/devtron:4288e910-434-26828"
image: "quay.io/devtron/devtron:15cf0137-434-27015"
securityContext:
allowPrivilegeEscalation: false
runAsUser: 1000
Expand Down
59 changes: 0 additions & 59 deletions pkg/app/AppService.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ type AppServiceImpl struct {

type AppService interface {
UpdateReleaseStatus(request *bean.ReleaseStatusUpdateRequest) (bool, error)
UpdateDeploymentStatusAndCheckIsSucceeded(app *v1alpha1.Application, statusTime time.Time, isAppStore bool) (bool, *chartConfig.PipelineOverride, error)
GetConfigMapAndSecretJson(appId int, envId int, pipelineId int) ([]byte, error)
UpdateCdWorkflowRunnerByACDObject(app *v1alpha1.Application, cdWfrId int, updateTimedOutStatus bool) error
GetCmSecretNew(appId int, envId int, isJob bool, scope resourceQualifiers.Scope) (*bean.ConfigMapJson, *bean.ConfigSecretJson, error)
Expand Down Expand Up @@ -211,64 +210,6 @@ func (impl *AppServiceImpl) UpdateReleaseStatus(updateStatusRequest *bean.Releas
return count == 1, nil
}

func (impl *AppServiceImpl) UpdateDeploymentStatusAndCheckIsSucceeded(app *v1alpha1.Application, statusTime time.Time, isAppStore bool) (bool, *chartConfig.PipelineOverride, error) {
isSucceeded := false
var err error
var pipelineOverride *chartConfig.PipelineOverride
if isAppStore {
var installAppDeleteRequest repository4.InstallAppDeleteRequest
var gitHash string
if app.Operation != nil && app.Operation.Sync != nil {
gitHash = app.Operation.Sync.Revision
} else if app.Status.OperationState != nil && app.Status.OperationState.Operation.Sync != nil {
gitHash = app.Status.OperationState.Operation.Sync.Revision
}
installAppDeleteRequest, err = impl.installedAppRepository.GetInstalledAppByGitHash(gitHash)
if err != nil {
impl.logger.Errorw("error in fetching installed app by git hash from installed app repository", "err", err)
return isSucceeded, pipelineOverride, err
}
if installAppDeleteRequest.EnvironmentId > 0 {
err = impl.appStatusService.UpdateStatusWithAppIdEnvId(installAppDeleteRequest.AppId, installAppDeleteRequest.EnvironmentId, string(app.Status.Health.Status))
if err != nil {
impl.logger.Errorw("error occurred while updating app status in app_status table", "error", err, "appId", installAppDeleteRequest.AppId, "envId", installAppDeleteRequest.EnvironmentId)
}
impl.logger.Debugw("skipping application status update as this app is chart", "appId", installAppDeleteRequest.AppId, "envId", installAppDeleteRequest.EnvironmentId)
}
} else {
repoUrl := app.Spec.Source.RepoURL
// backward compatibility for updating application status - if unable to find app check it in charts
chart, err := impl.chartRepository.FindChartByGitRepoUrl(repoUrl)
if err != nil {
impl.logger.Errorw("error in fetching chart", "repoUrl", repoUrl, "err", err)
return isSucceeded, pipelineOverride, err
}
if chart == nil {
impl.logger.Errorw("no git repo found for url", "repoUrl", repoUrl)
return isSucceeded, pipelineOverride, fmt.Errorf("no git repo found for url %s", repoUrl)
}
envId, err := impl.appRepository.FindEnvironmentIdForInstalledApp(chart.AppId)
if err != nil {
impl.logger.Errorw("error in fetching app", "err", err, "app", chart.AppId)
return isSucceeded, pipelineOverride, err
}
if envId > 0 {
err = impl.appStatusService.UpdateStatusWithAppIdEnvId(chart.AppId, envId, string(app.Status.Health.Status))
if err != nil {
impl.logger.Errorw("error occurred while updating app status in app_status table", "error", err, "appId", chart.AppId, "envId", envId)
}
impl.logger.Debugw("skipping application status update as this app is chart", "appId", chart.AppId, "envId", envId)
}
}

isSucceeded, _, pipelineOverride, err = impl.UpdateDeploymentStatusForGitOpsPipelines(app, statusTime, isAppStore)
if err != nil {
impl.logger.Errorw("error in updating deployment status", "argoAppName", app.Name)
return isSucceeded, pipelineOverride, err
}
return isSucceeded, pipelineOverride, nil
}

func (impl *AppServiceImpl) ComputeAppstatus(appId, envId int, status health2.HealthStatusCode) (string, error) {
appStatusInternal := string(status)

Expand Down
2 changes: 1 addition & 1 deletion pkg/app/integrationTest/AppService_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func TestAppServiceImpl_UpdateDeploymentStatusAndCheckIsSucceeded(t *testing.T)
wantErr: wantErr,
}
t.Run(tt.name, func(t *testing.T) {
got, _, err := appService.UpdateDeploymentStatusAndCheckIsSucceeded(tt.args.app, tt.args.statusTime, false)
got, _, _, err := appService.UpdateDeploymentStatusForGitOpsPipelines(tt.args.app, tt.args.statusTime, false)
if (err != nil) != tt.wantErr {
t.Errorf("UpdateDeploymentStatusAndCheckIsSucceeded() error = %v, wantErr %v", err, tt.wantErr)
return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func (impl *DeployedApplicationEventProcessorImpl) SubscribeArgoAppUpdate() erro
return
}
}
isSucceeded, pipelineOverride, err := impl.appService.UpdateDeploymentStatusAndCheckIsSucceeded(app, applicationDetail.StatusTime, isAppStoreApplication)
isSucceeded, _, pipelineOverride, err := impl.appService.UpdateDeploymentStatusForGitOpsPipelines(app, applicationDetail.StatusTime, isAppStoreApplication)
if err != nil {
impl.logger.Errorw("error on application status update", "err", err, "msg", string(msg.Data))
// TODO - check update for charts - fix this call
Expand Down
26 changes: 9 additions & 17 deletions releasenotes.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
## v0.7.4
We are extremely excited to announce Devtron's official release of Devtron 1.0. This marks an incredible milestone in our journey. Your valuable feedback and suggestions are what have helped us build the platform and constantly provide value to our users. This is just the beginning - we remain committed to innovation and will continue to deliver powerful features that enhance your DevOps experience based on community feedback and evolving industry needs.

## v1.0.0

## Bugs
- fix: Helm rollback in case of no gitops (#6005)
Expand All @@ -8,34 +10,24 @@
- fix: Plugin getByName method error handling (#6016)
- fix: Config deployment history fix (#6003)
- fix: Force abort fix (#5990)
- fix: Custom tag (#5999)
- fix: Helm deployment status (#5996)
- fix: Deployment window FIXED type (#5986)
- fix: Migration seq fix (#5962)
- fix: Modified the query for User listing with filters (#5957)
- fix: Bulk deploy panic and docker tag handling (#5949)
- fix: stage artifact logic (#5913)
- fix: Stage artifact logic (#5913)
- fix: Permission access getting clubbed (#6045)
## Enhancements
- feat: Config diff enhancement (#5837)
- feat: Terminal role casbin policy (#5991)
- feat: Refactoring argo application service and common-lib constants (#5944)
- feat: Feature release v9 sql scripts (#5950)
## Others
- misc: Main sync develop (#6047)
- misc: Permission access getting clubbed (#6045)
- fix : Multiple param of filter in helm app list (#6013)
- chore: Adding refchart migration (#6007)
- chore: Cluster terminal images migration (#6006)
- chore: Trigger clean (#6004)
- misc: Removed deployment group validation when deleting CD pipelines (#5989)
- misc: Replaced != with <> for PostgreSQL compatibility (#5987)
- misc: Main sync 14 oct 2024 (#5985)
- misc: isLatest field in plugin_metadata tag changed to not_null (#5984)
- chore: Main sync develop (#5983)
- misc: error handling while creating github repo in case of concurrent reqs (#5978)
- misc: Release candidate v0.20.0 (#5980)
- misc: Release candidate v0.19.0 (#5930)
- misc: updated migration number (#5948)
- misc: err handling for configmap access (#5938)


- misc: isLatest field in plugin metadata tag changed to not_null (#5984)
- misc: Error handling while creating github repo in case of concurrent reqs (#5978)
- misc: Updated migration number (#5948)
- misc: Err handling for configmap access (#5938)

0 comments on commit eb87294

Please sign in to comment.