What happened?
if the manifest file is deployment, i expected restarting pod.
but, pod is not restarted because owner is wrong.
it is related with this code block.
|
const newreplicaset = 'newreplicaset' |
if (result?.stdout) {
const stdout = result.stdout.split('\n')
core.debug('stdout from getNewReplicaSet is ' + JSON.stringify(stdout))
stdout.forEach((line: string) => {
const newreplicaset = 'newreplicaset'
if (line && line.toLowerCase().indexOf(newreplicaset) > -1) {
core.debug(
`found string of interest for replicaset, line is ${line}`
)
core.debug(
`substring is ${line.substring(newreplicaset.length).trim()}`
)
newReplicaSet = line
.substring(newreplicaset.length)
.trim()
.split(' ')[0]
}
})
}
here is the result of kubectl describe deployment.
...
NewReplicaSet: xxx-deployment-7675bf5865 (1/1 replicas created)
...
and this line will be converted to : .

i think const newreplicaset = 'newreplicaset' should be changed to const newreplicaset = 'newreplicaset:'.
Version
Runner
self hosted
Relevant log output
##[debug]found string of interest for replicaset, line is Progressing True NewReplicaSetAvailable
##[debug]substring is True NewReplicaSetAvailable
##[debug]found string of interest for replicaset, line is NewReplicaSet: xxx-deployment-77546558b9 (1/1 replicas created)
##[debug]substring is : xxx-deployment-77546558b9 (1/1 replicas created)
What happened?
if the manifest file is
deployment, i expected restarting pod.but, pod is not restarted because
owneris wrong.it is related with this code block.
k8s-deploy/src/types/kubectl.ts
Line 83 in d565a17
here is the result of
kubectl describe deployment.and this line will be converted to
:.i think
const newreplicaset = 'newreplicaset'should be changed toconst newreplicaset = 'newreplicaset:'.Version
Runner
self hosted
Relevant log output