Slide 66
Slide 66 text
66
cert-manager
状態管理の種類と実例紹介
- 証明書の再作成をする必要が出たら、Issuing = True にする
- 状態収束に必要な処理がすべて動作する
66
log.V(logf.InfoLevel).Info("Certificate must be re-issued",
"reason", reason, "message", message)
crt = crt.DeepCopy()
apiutil.SetCertificateCondition(crt, crt.Generation,
cmapi.CertificateConditionIssuing, cmmeta.ConditionTrue, reason,
message)
if err := c.updateOrApplyStatus(ctx, crt); err != nil {
return err
}
c.recorder.Event(crt, corev1.EventTypeNormal, "Issuing", message)
return nil
}
https://github.dev/cert-manager/cert-manager/blob/e7ed5c491be93b3c93ea236d02a455aa2d6cd00a/pkg/controller/certificates/trigger/trigger_controller.go#L200-L201