Skip to content
This repository has been archived by the owner on Aug 26, 2021. It is now read-only.

May be a bug? #28

Closed
decker502 opened this issue Sep 12, 2016 · 3 comments
Closed

May be a bug? #28

decker502 opened this issue Sep 12, 2016 · 3 comments

Comments

@decker502
Copy link

Should code be below in tls.go?

    if !i.newCertNeeded(i.ingress.kubelego.LegoMinimumValidity()) {
        i.Log().Infof("no cert request needed")
        return nil
    }
@simonswine
Copy link
Contributor

Not really getting what the problem is here. Could you elaborate a bit more on that?

@decker502
Copy link
Author

The parameter of the function newCertNeeded(minimumValidity time.Duration) is mininumvalidity, but the caller's is

  if !i.newCertNeeded(i.ingress.kubelego.LegoCheckInterval()) {
        i.Log().Infof("no cert request needed")
        return nil
    }

I think it should be

    if !i.newCertNeeded(i.ingress.kubelego.LegoMinimumValidity()) {
        i.Log().Infof("no cert request needed")
        return nil
    }

@simonswine
Copy link
Contributor

@decker502 thanks for reporting this, was definitely a bug and I was a bit blind to see the problem! Should be fixed in the latest canary image build jetstack/kube-lego:canary

@simonswine simonswine added the bug label Sep 30, 2016
@simonswine simonswine added this to the 0.2 milestone Sep 30, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants