1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-01-20 18:52:16 +00:00

fix: add server ip config to cleanup controller (#6999) (#7000)

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
gcp-cherry-pick-bot[bot] 2023-04-25 11:42:41 +00:00 committed by GitHub
parent d393a273d9
commit 3991b161ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

11
.vscode/launch.json vendored
View file

@ -33,6 +33,17 @@
"--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",
"type": "go",

View file

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