small fix to filter right namespace on service state check

This commit is contained in:
rmanach 2025-05-04 15:43:13 +02:00
parent 0581515de0
commit 0e4eda972e

View File

@ -289,6 +289,10 @@ func (c *RemoteClient) checkState(
ready := true
mainloop:
for idx := range srvs {
// ensure app name is the right one
if srvs[idx].App != projectName {
continue
}
for idy := range srvs[idx].Replicas {
if srvs[idx].Replicas[idy].State != target {
log.Info().Dur("retry (ms)", stateTickDuration).Msg("project not in good state yet, retrying...")