Skip to content

Commit

Permalink
Merge pull request #577 from vyzigold/check_mysqld_empty_image
Browse files Browse the repository at this point in the history
[OSPRH-12079] Verify mysqld_exporter image is set
  • Loading branch information
openshift-merge-bot[bot] authored Jan 7, 2025
2 parents 12f136a + 34e7d27 commit 60698cb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions controllers/ceilometer_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,15 @@ func (r *CeilometerReconciler) reconcileMysqldExporter(
return r.reconcileDeleteMysqldExporter(ctx, instance, helper)
}

if instance.Spec.MysqldExporterImage == "" {
instance.CeilometerStatus.Conditions.Set(condition.FalseCondition(
telemetryv1.MysqldExporterDeploymentReadyCondition,
condition.ErrorReason,
condition.SeverityError,
"mysqld_exporter container image isn't set"))
return ctrl.Result{}, nil
}

configMapVars := make(map[string]env.Setter)
//
// TLS input validation
Expand Down

0 comments on commit 60698cb

Please sign in to comment.