1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00

fix: add server ip config to cleanup controller ()

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
Charles-Edouard Brétéché 2023-04-25 12:50:46 +02:00 committed by GitHub
parent f2cd3791ea
commit 349a5fe41a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions
.vscode
cmd/cleanup-controller

11
.vscode/launch.json vendored
View file

@ -33,6 +33,17 @@
"--kubeconfig=${userHome}/.kube/config", "--kubeconfig=${userHome}/.kube/config",
], ],
}, },
{
"name": "Launch Cleanup Controller",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/cmd/cleanup-controller",
"args": [
"--kubeconfig=${userHome}/.kube/config",
"--serverIP=<SERVER-IP>:9443",
],
},
{ {
"name": "Launch CLI", "name": "Launch CLI",
"type": "go", "type": "go",

View file

@ -95,7 +95,7 @@ func main() {
tls.CertRenewalInterval, tls.CertRenewalInterval,
tls.CAValidityDuration, tls.CAValidityDuration,
tls.TLSValidityDuration, tls.TLSValidityDuration,
"", serverIP,
) )
certController := internal.NewController( certController := internal.NewController(
certmanager.ControllerName, certmanager.ControllerName,