Skip to content

Commit

Permalink
init podData
Browse files Browse the repository at this point in the history
  • Loading branch information
dvvanessastoiber authored May 8, 2024
1 parent ce19610 commit ce9fdde
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/org/ods/orchestration/phases/DeployOdsComponent.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,17 @@ class DeployOdsComponent {
applyTemplates(openShiftDir, deploymentMean)

def retries = project.environmentConfig?.openshiftRolloutTimeoutRetries ?: 10
def podData = []
for (def i = 0; i < retries; i++) {
def podData = os.checkForPodData(project.targetProject, deploymentMean.selector)
podData = os.checkForPodData(project.targetProject, deploymentMean.selector)
if (podData) {
return podData
}
steps.echo("Could not find 'running' pod(s) with label '${deploymentMean.selector}' - waiting")
steps.sleep(12)
}
}

// TODO: What if podData is empty?
// TODO: Once the orchestration pipeline can deal with multiple replicas,
// update this to deal with multiple pods.
def pod = podData[0].toMap()
Expand Down

0 comments on commit ce9fdde

Please sign in to comment.