@@ -617,10 +617,12 @@ func (r *CeilometerReconciler) reconcileCeilometer(
617617 )
618618 if err != nil {
619619 if k8s_errors .IsNotFound (err ) {
620+ // Since the CA cert secret should have been manually created by the user and provided in the spec,
621+ // we treat this as a warning because it means that the service will not be able to start.
620622 instance .Status .Conditions .Set (condition .FalseCondition (
621623 condition .TLSInputReadyCondition ,
622- condition .RequestedReason ,
623- condition .SeverityInfo ,
624+ condition .ErrorReason ,
625+ condition .SeverityWarning ,
624626 condition .TLSInputReadyWaitingMessage , instance .Spec .TLS .CaBundleSecretName ))
625627 return ctrl.Result {}, nil
626628 }
@@ -847,10 +849,12 @@ func (r *CeilometerReconciler) reconcileMysqldExporter(
847849 )
848850 if err != nil {
849851 if k8s_errors .IsNotFound (err ) {
852+ // Since the CA cert secret should have been manually created by the user and provided in the spec,
853+ // we treat this as a warning because it means that the service will not be able to start.
850854 instance .Status .Conditions .Set (condition .FalseCondition (
851855 telemetryv1 .MysqldExporterTLSInputReadyCondition ,
852- condition .RequestedReason ,
853- condition .SeverityInfo ,
856+ condition .ErrorReason ,
857+ condition .SeverityWarning ,
854858 condition .TLSInputReadyWaitingMessage , instance .Spec .MysqldExporterTLS .CaBundleSecretName ))
855859 return ctrl.Result {}, nil
856860 }
@@ -873,6 +877,8 @@ func (r *CeilometerReconciler) reconcileMysqldExporter(
873877 hash , err := instance .Spec .MysqldExporterTLS .ValidateCertSecret (ctx , helper , instance .Namespace )
874878 if err != nil {
875879 if k8s_errors .IsNotFound (err ) {
880+ // Since the TLS cert secret should have been automatically created by the encompassing OpenStackControlPlane,
881+ // we treat this as an info.
876882 instance .Status .Conditions .Set (condition .FalseCondition (
877883 telemetryv1 .MysqldExporterTLSInputReadyCondition ,
878884 condition .RequestedReason ,
@@ -1026,10 +1032,12 @@ func (r *CeilometerReconciler) reconcileKSM(
10261032 )
10271033 if err != nil {
10281034 if k8s_errors .IsNotFound (err ) {
1035+ // Since the CA cert secret should have been manually created by the user and provided in the spec,
1036+ // we treat this as a warning because it means that the service will not be able to start.
10291037 instance .Status .Conditions .Set (condition .FalseCondition (
10301038 telemetryv1 .KSMTLSInputReadyCondition ,
1031- condition .RequestedReason ,
1032- condition .SeverityInfo ,
1039+ condition .ErrorReason ,
1040+ condition .SeverityWarning ,
10331041 condition .TLSInputReadyWaitingMessage , instance .Spec .KSMTLS .CaBundleSecretName ))
10341042 return ctrl.Result {}, nil
10351043 }
0 commit comments