small fix to filter right namespace on service state check
This commit is contained in:
parent
0581515de0
commit
0e4eda972e
@ -289,6 +289,10 @@ func (c *RemoteClient) checkState(
|
|||||||
ready := true
|
ready := true
|
||||||
mainloop:
|
mainloop:
|
||||||
for idx := range srvs {
|
for idx := range srvs {
|
||||||
|
// ensure app name is the right one
|
||||||
|
if srvs[idx].App != projectName {
|
||||||
|
continue
|
||||||
|
}
|
||||||
for idy := range srvs[idx].Replicas {
|
for idy := range srvs[idx].Replicas {
|
||||||
if srvs[idx].Replicas[idy].State != target {
|
if srvs[idx].Replicas[idy].State != target {
|
||||||
log.Info().Dur("retry (ms)", stateTickDuration).Msg("project not in good state yet, retrying...")
|
log.Info().Dur("retry (ms)", stateTickDuration).Msg("project not in good state yet, retrying...")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user