Skip to content

Commit

Permalink
add empty string for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Micah Nagel committed May 13, 2022
1 parent 7e2c195 commit d3f8842
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/mattermost/healthcheck/health_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ func (hc *HealthChecker) CheckPodsRollOut(desiredImage string) (PodRolloutStatus
}
var mattermostContainer corev1.Container
for _, container := range pod.Spec.Containers {
if container.Name == mattermostv1alpha1.MattermostAppContainerName {
if container.Name == mattermostv1alpha1.MattermostAppContainerName || container.Name == "" {
mattermostContainer = container
continue
break
}
}
if mattermostContainer.Image != desiredImage {
Expand Down

0 comments on commit d3f8842

Please sign in to comment.