@@ -65,26 +65,30 @@ async function promoteCanary(kubectl: Kubectl, manifests: string[]) {
65
65
66
66
// In case of SMI traffic split strategy when deployment is promoted, first we will redirect traffic to
67
67
// canary deployment, then update stable deployment and then redirect traffic to stable deployment
68
- core . info ( 'Redirecting traffic to canary deployment' )
68
+ core . startGroup ( 'Redirecting traffic to canary deployment' )
69
69
await SMICanaryDeploymentHelper . redirectTrafficToCanaryDeployment (
70
70
kubectl ,
71
71
manifests
72
72
)
73
+ core . endGroup ( )
73
74
74
- core . info ( 'Deploying input manifests with SMI canary strategy' )
75
+ core . startGroup ( 'Deploying input manifests with SMI canary strategy' )
75
76
await deploy . deploy ( kubectl , manifests , DeploymentStrategy . CANARY )
77
+ core . endGroup ( )
76
78
77
- core . info ( 'Redirecting traffic to stable deployment' )
79
+ core . startGroup ( 'Redirecting traffic to stable deployment' )
78
80
await SMICanaryDeploymentHelper . redirectTrafficToStableDeployment (
79
81
kubectl ,
80
82
manifests
81
83
)
84
+ core . endGroup ( )
82
85
} else {
83
- core . info ( 'Deploying input manifests' )
86
+ core . startGroup ( 'Deploying input manifests' )
84
87
await deploy . deploy ( kubectl , manifests , DeploymentStrategy . CANARY )
88
+ core . endGroup ( )
85
89
}
86
90
87
- core . info ( 'Deleting canary and baseline workloads' )
91
+ core . startGroup ( 'Deleting canary and baseline workloads' )
88
92
try {
89
93
await canaryDeploymentHelper . deleteCanaryDeployment (
90
94
kubectl ,
@@ -97,6 +101,7 @@ async function promoteCanary(kubectl: Kubectl, manifests: string[]) {
97
101
ex
98
102
)
99
103
}
104
+ core . endGroup ( )
100
105
}
101
106
102
107
async function promoteBlueGreen ( kubectl : Kubectl , manifests : string [ ] ) {
@@ -109,7 +114,7 @@ async function promoteBlueGreen(kubectl: Kubectl, manifests: string[]) {
109
114
core . getInput ( 'route-method' , { required : true } )
110
115
)
111
116
112
- core . info ( 'Deleting old deployment and making new one' )
117
+ core . startGroup ( 'Deleting old deployment and making new one' )
113
118
let result
114
119
if ( routeStrategy == RouteStrategy . INGRESS ) {
115
120
result = await promoteBlueGreenIngress ( kubectl , manifestObjects )
@@ -118,9 +123,10 @@ async function promoteBlueGreen(kubectl: Kubectl, manifests: string[]) {
118
123
} else {
119
124
result = await promoteBlueGreenService ( kubectl , manifestObjects )
120
125
}
126
+ core . endGroup ( )
121
127
122
128
// checking stability of newly created deployments
123
- core . info ( 'Checking manifest stability' )
129
+ core . startGroup ( 'Checking manifest stability' )
124
130
const deployedManifestFiles = result . newFilePaths
125
131
const resources : Resource [ ] = getResources (
126
132
deployedManifestFiles ,
@@ -129,8 +135,9 @@ async function promoteBlueGreen(kubectl: Kubectl, manifests: string[]) {
129
135
] )
130
136
)
131
137
await KubernetesManifestUtility . checkManifestStability ( kubectl , resources )
138
+ core . endGroup ( )
132
139
133
- core . info (
140
+ core . startGroup (
134
141
'Routing to new deployments and deleting old workloads and services'
135
142
)
136
143
if ( routeStrategy == RouteStrategy . INGRESS ) {
@@ -170,4 +177,5 @@ async function promoteBlueGreen(kubectl: Kubectl, manifests: string[]) {
170
177
manifestObjects . deploymentEntityList
171
178
)
172
179
}
180
+ core . endGroup ( )
173
181
}
0 commit comments