@@ -420,11 +420,11 @@ func (r *KubeadmConfigReconciler) joinWorker(ctx context.Context, scope *Scope)
420
420
util .ObjectKey (scope .Cluster ),
421
421
)
422
422
if err != nil {
423
- conditions .MarkFalse (scope .Config , bootstrapv1 .CertificatesAvailableCondition , bootstrapv1 .CertificatesCorrupted , clusterv1 .ConditionSeverityError , err .Error ())
423
+ conditions .MarkFalse (scope .Config , bootstrapv1 .CertificatesAvailableCondition , bootstrapv1 .CertificatesCorruptedReason , clusterv1 .ConditionSeverityError , err .Error ())
424
424
return ctrl.Result {}, err
425
425
}
426
426
if err := certificates .EnsureAllExist (); err != nil {
427
- conditions .MarkFalse (scope .Config , bootstrapv1 .CertificatesAvailableCondition , bootstrapv1 .CertificatesCorrupted , clusterv1 .ConditionSeverityError , err .Error ())
427
+ conditions .MarkFalse (scope .Config , bootstrapv1 .CertificatesAvailableCondition , bootstrapv1 .CertificatesCorruptedReason , clusterv1 .ConditionSeverityError , err .Error ())
428
428
return ctrl.Result {}, err
429
429
}
430
430
conditions .MarkTrue (scope .Config , bootstrapv1 .CertificatesAvailableCondition )
@@ -501,11 +501,11 @@ func (r *KubeadmConfigReconciler) joinControlplane(ctx context.Context, scope *S
501
501
util .ObjectKey (scope .Cluster ),
502
502
)
503
503
if err != nil {
504
- conditions .MarkFalse (scope .Config , bootstrapv1 .CertificatesAvailableCondition , bootstrapv1 .CertificatesCorrupted , clusterv1 .ConditionSeverityError , err .Error ())
504
+ conditions .MarkFalse (scope .Config , bootstrapv1 .CertificatesAvailableCondition , bootstrapv1 .CertificatesCorruptedReason , clusterv1 .ConditionSeverityError , err .Error ())
505
505
return ctrl.Result {}, err
506
506
}
507
507
if err := certificates .EnsureAllExist (); err != nil {
508
- conditions .MarkFalse (scope .Config , bootstrapv1 .CertificatesAvailableCondition , bootstrapv1 .CertificatesCorrupted , clusterv1 .ConditionSeverityError , err .Error ())
508
+ conditions .MarkFalse (scope .Config , bootstrapv1 .CertificatesAvailableCondition , bootstrapv1 .CertificatesCorruptedReason , clusterv1 .ConditionSeverityError , err .Error ())
509
509
return ctrl.Result {}, err
510
510
}
511
511
conditions .MarkTrue (scope .Config , bootstrapv1 .CertificatesAvailableCondition )
0 commit comments