fix(go-traefik-certmanager): consider cert cleanup flag
This commit is contained in:
parent
0ae856a894
commit
15da63ea05
1 changed files with 6 additions and 1 deletions
7
main.go
7
main.go
|
@ -33,10 +33,15 @@ func main() {
|
||||||
certmanager.WithCertIssuerName(appSettings.CertIssuerName),
|
certmanager.WithCertIssuerName(appSettings.CertIssuerName),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
options := []ingressroute.ClientOption{}
|
||||||
|
if appSettings.CertCleanup {
|
||||||
|
options = append(options, ingressroute.WithCertCleanup())
|
||||||
|
}
|
||||||
|
|
||||||
irClient := ingressroute.NewClient(
|
irClient := ingressroute.NewClient(
|
||||||
*client,
|
*client,
|
||||||
cmClient,
|
cmClient,
|
||||||
ingressroute.WithCertCleanup(),
|
options...,
|
||||||
)
|
)
|
||||||
|
|
||||||
stopCh := make(chan struct{})
|
stopCh := make(chan struct{})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue