Skip to content

Commit 49754c7

Browse files
committed
main sync develop
2 parents 71c8fea + c125f0b commit 49754c7

File tree

12 files changed

+29
-20
lines changed

12 files changed

+29
-20
lines changed

CHANGELOG/release-notes-v1.2.2.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## v1.2.2
2+
3+
## Bugs
4+
- fix: Failure to trigger cd set on auto after pre-cd is success which is also on auto which got triggered after ci (#6361)
5+
6+

charts/devtron/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: devtron-operator
3-
appVersion: 1.2.1
3+
appVersion: 1.2.2
44
description: Chart to configure and install Devtron. Devtron is a Kubernetes Orchestration system.
55
keywords:
66
- Devtron
@@ -11,7 +11,7 @@ keywords:
1111
- argocd
1212
- Hyperion
1313
engine: gotpl
14-
version: 0.22.81
14+
version: 0.22.82
1515
sources:
1616
- https://github.com/devtron-labs/charts
1717
dependencies:

charts/devtron/devtron-bom.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ global:
1010
containerRegistry: "quay.io/devtron"
1111
extraManifests: []
1212
installer:
13-
release: "v1.2.1"
13+
release: "v1.2.2"
1414
registry: ""
1515
image: "inception"
1616
tag: "473deaa4-185-21582"
@@ -38,8 +38,8 @@ components:
3838
imagePullPolicy: IfNotPresent
3939
devtron:
4040
registry: ""
41-
image: "hyperion:69603019-280-29389"
42-
cicdImage: "devtron:69603019-434-29388"
41+
image: "hyperion:a9968961-280-29449"
42+
cicdImage: "devtron:a9968961-434-29448"
4343
imagePullPolicy: IfNotPresent
4444
customOverrides: {}
4545
ciRunner:

charts/devtron/values.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ global:
2424
extraManifests: []
2525
installer:
2626
repo: "devtron-labs/devtron"
27-
release: "v1.2.1"
27+
release: "v1.2.2"
2828
registry: ""
2929
image: inception
3030
tag: 473deaa4-185-21582
@@ -81,8 +81,8 @@ components:
8181
imagePullPolicy: IfNotPresent
8282
devtron:
8383
registry: ""
84-
image: "hyperion:69603019-280-29389"
85-
cicdImage: "devtron:69603019-434-29388"
84+
image: "hyperion:a9968961-280-29449"
85+
cicdImage: "devtron:a9968961-434-29448"
8686
imagePullPolicy: IfNotPresent
8787
customOverrides: {}
8888
serviceMonitor:

manifests/install/devtron-installer.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ metadata:
44
name: installer-devtron
55
namespace: devtroncd
66
spec:
7-
url: https://raw.githubusercontent.com/devtron-labs/devtron/v1.2.1/manifests/installation-script
7+
url: https://raw.githubusercontent.com/devtron-labs/devtron/v1.2.2/manifests/installation-script

manifests/installation-script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
LTAG="v1.2.1";
1+
LTAG="v1.2.2";
22
REPO_RAW_URL="https://raw.githubusercontent.com/devtron-labs/devtron/";
33

44
log("executed devtron setup installation");

manifests/release.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
stable -1 v1.2.1
1+
stable -1 v1.2.2

manifests/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.2.0
1+
v1.2.2

manifests/yamls/devtron.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ spec:
169169
runAsUser: 1000
170170
containers:
171171
- name: devtron
172-
image: "quay.io/devtron/devtron:69603019-434-29388"
172+
image: "quay.io/devtron/devtron:a9968961-434-29448"
173173
securityContext:
174174
allowPrivilegeEscalation: false
175175
runAsUser: 1000

pkg/eventProcessor/in/WorkflowEventProcessorService.go

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ func (impl *WorkflowEventProcessorImpl) SubscribeCDStageCompleteEvent() error {
170170
return
171171
}
172172
wfr.IsArtifactUploaded = cdStageCompleteEvent.IsArtifactUploaded
173+
// currently, CD_STAGE_COMPLETE_TOPIC is published from ci-runner only for pre/post CD success or failure events.
174+
// no other wfr status are sent other than these two.
175+
// a check is in place for all terminal states to ensure future compatibility.
173176
if !slices.Contains(cdWorkflowModelBean.WfrTerminalStatusList, wfr.Status) {
174177
impl.logger.Debugw("event received from ci runner, updating workflow runner status as succeeded", "savedWorkflowRunnerId", wfr.Id, "oldStatus", wfr.Status, "podStatus", wfr.PodStatus)
175178
if cdStageCompleteEvent.IsFailed {
@@ -182,18 +185,17 @@ func (impl *WorkflowEventProcessorImpl) SubscribeCDStageCompleteEvent() error {
182185
impl.logger.Errorw("update cd-wf-runner failed for id ", "cdWfrId", wfr.Id, "err", err)
183186
return
184187
}
185-
186-
triggerContext := triggerBean.TriggerContext{
187-
ReferenceId: pointer.String(msg.MsgId),
188-
}
189-
impl.handleCDStageCompleteEvent(triggerContext, cdStageCompleteEvent, wfr)
190188
} else {
191189
err = impl.cdWorkflowRunnerService.UpdateIsArtifactUploaded(wfr.Id, cdStageCompleteEvent.IsArtifactUploaded)
192190
if err != nil {
193191
impl.logger.Errorw("error in updating isArtifactUploaded", "cdWfrId", wfr.Id, "err", err)
194192
return
195193
}
196194
}
195+
triggerContext := triggerBean.TriggerContext{
196+
ReferenceId: pointer.String(msg.MsgId),
197+
}
198+
impl.handleCDStageCompleteEvent(triggerContext, cdStageCompleteEvent, wfr)
197199
}
198200

199201
// add required logging here

0 commit comments

Comments
 (0)