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),
|
||||
)
|
||||
|
||||
options := []ingressroute.ClientOption{}
|
||||
if appSettings.CertCleanup {
|
||||
options = append(options, ingressroute.WithCertCleanup())
|
||||
}
|
||||
|
||||
irClient := ingressroute.NewClient(
|
||||
*client,
|
||||
cmClient,
|
||||
ingressroute.WithCertCleanup(),
|
||||
options...,
|
||||
)
|
||||
|
||||
stopCh := make(chan struct{})
|
||||
|
|
Loading…
Add table
Reference in a new issue