Skip to content

Commit

Permalink
Add missing default for Octavia ApacheImage
Browse files Browse the repository at this point in the history
  • Loading branch information
gthiemonge committed Apr 18, 2024
1 parent 41031f2 commit ab5b471
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/openstack/octavia.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ func ReconcileOctavia(ctx context.Context, instance *corev1beta1.OpenStackContro
octavia.Spec.OctaviaWorker.ContainerImage = *version.Status.ContainerImages.OctaviaWorkerImage
octavia.Spec.OctaviaHealthManager.ContainerImage = *version.Status.ContainerImages.OctaviaHealthmanagerImage
octavia.Spec.OctaviaHousekeeping.ContainerImage = *version.Status.ContainerImages.OctaviaHousekeepingImage
octavia.Spec.ApacheContainerImage = *version.Status.ContainerImages.ApacheImage

err := controllerutil.SetControllerReference(helper.GetBeforeObject(), octavia, helper.GetScheme())
if err != nil {
Expand All @@ -184,6 +185,7 @@ func ReconcileOctavia(ctx context.Context, instance *corev1beta1.OpenStackContro
instance.Status.ContainerImages.OctaviaWorkerImage = version.Status.ContainerImages.OctaviaWorkerImage
instance.Status.ContainerImages.OctaviaHealthmanagerImage = version.Status.ContainerImages.OctaviaHealthmanagerImage
instance.Status.ContainerImages.OctaviaHousekeepingImage = version.Status.ContainerImages.OctaviaHousekeepingImage
instance.Status.ContainerImages.ApacheImage = version.Status.ContainerImages.ApacheImage
instance.Status.Conditions.MarkTrue(corev1beta1.OpenStackControlPlaneOctaviaReadyCondition, corev1beta1.OpenStackControlPlaneOctaviaReadyMessage)
} else {
instance.Status.Conditions.Set(condition.FalseCondition(
Expand Down

0 comments on commit ab5b471

Please sign in to comment.