@@ -41,14 +41,14 @@ type Provider struct {
4141 issuerRef cmmeta.ObjectReference
4242
4343 mu sync.RWMutex
44- healthz * healthz.Check
44+ readyz * healthz.Check
4545 tlsConfig * tls.Config
4646}
4747
4848// NewProvider will return a new provider where a TLS config is ready to be fetched.
4949func NewProvider (ctx context.Context , log * logrus.Entry , tlsOptions * options.TLSOptions ,
5050 kubeOptions * options.KubeOptions , cmOptions * options.CertManagerOptions ,
51- healthz * healthz.Check ) (* Provider , error ) {
51+ readyz * healthz.Check ) (* Provider , error ) {
5252
5353 p := & Provider {
5454 log : log .WithField ("module" , "serving_certificate" ),
@@ -57,7 +57,7 @@ func NewProvider(ctx context.Context, log *logrus.Entry, tlsOptions *options.TLS
5757 customRootCA : len (tlsOptions .RootCACertFile ) > 0 ,
5858 client : kubeOptions .CMClient ,
5959 issuerRef : cmOptions .IssuerRef ,
60- healthz : healthz ,
60+ readyz : readyz ,
6161 }
6262
6363 if len (tlsOptions .RootCACertFile ) > 0 {
@@ -86,7 +86,7 @@ func NewProvider(ctx context.Context, log *logrus.Entry, tlsOptions *options.TLS
8686
8787 select {
8888 case <- ctx .Done ():
89- p .healthz .Set (false )
89+ p .readyz .Set (false )
9090 p .log .Infof ("closing renewal: %s" , ctx .Err ())
9191 timer .Stop ()
9292 return
@@ -101,7 +101,7 @@ func NewProvider(ctx context.Context, log *logrus.Entry, tlsOptions *options.TLS
101101 }
102102 }()
103103
104- p .healthz .Set (true )
104+ p .readyz .Set (true )
105105
106106 return p , nil
107107}
0 commit comments