Documentation ¶
Index ¶
- func IsStatusReconciled(dsc *operatorv1alpha1.DiscoveryServiceCertificate, certificateHash string, ...) bool
- type CertificateReconciler
- func (r *CertificateReconciler) GetCertificateHash() string
- func (r *CertificateReconciler) GetSchedule() *time.Duration
- func (r *CertificateReconciler) IsReady() bool
- func (r *CertificateReconciler) NotAfter() time.Time
- func (r *CertificateReconciler) NotBefore() time.Time
- func (r *CertificateReconciler) Reconcile() (ctrl.Result, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsStatusReconciled ¶
func IsStatusReconciled(dsc *operatorv1alpha1.DiscoveryServiceCertificate, certificateHash string, ready bool, notBefore, notAfter time.Time) bool
IsStatusReconciled calculates the status of the resource
Types ¶
type CertificateReconciler ¶
type CertificateReconciler struct {
// contains filtered or unexported fields
}
CertificateReconciler is a struct with methods to reconcile DiscoveryServiceCertificates
func NewCertificateReconciler ¶
func NewCertificateReconciler(ctx context.Context, logger logr.Logger, client client.Client, s *runtime.Scheme, dsc *operatorv1alpha1.DiscoveryServiceCertificate, provider providers.CertificateProvider) CertificateReconciler
NewCertificateReconciler returns a new RevisionReconciler
func (*CertificateReconciler) GetCertificateHash ¶
func (r *CertificateReconciler) GetCertificateHash() string
GetCertificateHash returns true if the hash of the certificate. Should be invoked only after running Reconcile()
func (*CertificateReconciler) GetSchedule ¶
func (r *CertificateReconciler) GetSchedule() *time.Duration
GetSchedule returns a time.Duration value that indicates when the reconcile needs to be triggered to renew the certificate
func (*CertificateReconciler) IsReady ¶
func (r *CertificateReconciler) IsReady() bool
IsReady returns true if the certificate is ready after the reconcile. Should be invoked only after running Reconcile()
func (*CertificateReconciler) NotAfter ¶
func (r *CertificateReconciler) NotAfter() time.Time
NotAfter returns the NotAfter property of the reconciled certificate. Should be invoked only after running Reconcile()
func (*CertificateReconciler) NotBefore ¶
func (r *CertificateReconciler) NotBefore() time.Time
NotBefore returns the NotBefore property of the reconciled certificate. Should be invoked only after running Reconcile()