Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Song Gao committed Nov 1, 2019
1 parent f09aae3 commit 9529337
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ require (
github.com/elazarl/goproxy v0.0.0-20190421051319-9d40249d3c2f // indirect
github.com/elazarl/goproxy/ext v0.0.0-20190421051319-9d40249d3c2f // indirect
github.com/emicklei/go-restful v2.9.5+incompatible
github.com/fatih/color v1.7.0 // indirect
github.com/ghodss/yaml v1.0.1-0.20190212211648-25d852aebe32
github.com/go-openapi/loads v0.19.4
github.com/go-openapi/spec v0.19.3
Expand All @@ -39,6 +40,7 @@ require (
github.com/juju/errors v0.0.0-20180806074554-22422dad46e1
github.com/juju/loggo v0.0.0-20180524022052-584905176618 // indirect
github.com/juju/testing v0.0.0-20180920084828-472a3e8b2073 // indirect
github.com/mattn/go-isatty v0.0.4 // indirect

This comment has been minimized.

Copy link
@cofyc

cofyc Nov 1, 2019

Contributor

run make tidy 下,这两个新增与 go mod 的 bug 有关

github.com/mholt/archiver v3.1.1+incompatible
github.com/nwaples/rardecode v1.0.0 // indirect
github.com/onsi/gomega v1.5.0
Expand Down
3 changes: 2 additions & 1 deletion pkg/webhook/handler/certHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ func (wh *WebhookHandler) RefreshCertPEMExpirationHandler(config *RefreshJobConf
return err
}
certByte := secret.Data["cert.pem"]
cert, err := certUtil.DecodeCertPem(string(certByte[:]))
certString := string(certByte[:])
cert, err := certUtil.DecodeCertPem(certString)
now := time.Now()
expireDate := cert.NotAfter
internal := expireDate.Sub(now)
Expand Down

0 comments on commit 9529337

Please sign in to comment.