2022-10-10 13:50:04 +00:00
|
|
|
{
|
|
|
|
"version": "0.2.0",
|
|
|
|
"configurations": [
|
|
|
|
{
|
|
|
|
"name": "Launch Kyverno",
|
|
|
|
"type": "go",
|
|
|
|
"request": "launch",
|
|
|
|
"mode": "auto",
|
|
|
|
"program": "${workspaceFolder}/cmd/kyverno",
|
|
|
|
"args": [
|
|
|
|
"--kubeconfig=${userHome}/.kube/config",
|
2023-12-21 10:53:16 +00:00
|
|
|
"--serverIP=<SERVER-IP>:9443",
|
2023-12-19 18:15:34 +00:00
|
|
|
"--backgroundServiceAccountName=system:serviceaccount:kyverno:kyverno-background-controller",
|
2024-08-28 20:49:10 +00:00
|
|
|
"--reportsServiceAccountName=system:serviceaccount:kyverno:kyverno-reports-controller",
|
2023-02-20 16:26:10 +00:00
|
|
|
"-v=2",
|
2023-08-28 17:58:36 +00:00
|
|
|
"--caSecretName=kyverno-svc.kyverno.svc.kyverno-tls-ca",
|
|
|
|
"--tlsSecretName=kyverno-svc.kyverno.svc.kyverno-tls-pair",
|
2022-10-10 13:50:04 +00:00
|
|
|
],
|
2023-06-26 10:08:51 +00:00
|
|
|
"env": {
|
|
|
|
"KYVERNO_NAMESPACE": "kyverno",
|
|
|
|
"KYVERNO_SERVICEACCOUNT_NAME": "kyverno-admission-controller",
|
|
|
|
"KYVERNO_DEPLOYMENT": "dummy",
|
|
|
|
"KYVERNO_POD_NAME": "dummy",
|
|
|
|
"INIT_CONFIG": "kyverno",
|
|
|
|
"METRICS_CONFIG": "kyverno-metrics",
|
|
|
|
}
|
2022-12-12 15:20:20 +00:00
|
|
|
},
|
2023-03-15 07:42:52 +00:00
|
|
|
{
|
|
|
|
"name": "Launch Reports Controller",
|
|
|
|
"type": "go",
|
|
|
|
"request": "launch",
|
|
|
|
"mode": "auto",
|
|
|
|
"program": "${workspaceFolder}/cmd/reports-controller",
|
|
|
|
"args": [
|
|
|
|
"--kubeconfig=${userHome}/.kube/config",
|
|
|
|
],
|
2023-09-01 11:02:48 +00:00
|
|
|
"env": {
|
2023-06-26 10:08:51 +00:00
|
|
|
"KYVERNO_NAMESPACE": "kyverno",
|
|
|
|
"KYVERNO_SERVICEACCOUNT_NAME": "kyverno-reports-controller",
|
|
|
|
"KYVERNO_DEPLOYMENT": "dummy",
|
|
|
|
"KYVERNO_POD_NAME": "dummy",
|
|
|
|
"INIT_CONFIG": "kyverno",
|
|
|
|
"METRICS_CONFIG": "kyverno-metrics",
|
|
|
|
}
|
2023-03-15 07:42:52 +00:00
|
|
|
},
|
2023-03-22 04:14:34 +00:00
|
|
|
{
|
|
|
|
"name": "Launch Background Controller",
|
|
|
|
"type": "go",
|
|
|
|
"request": "launch",
|
|
|
|
"mode": "auto",
|
|
|
|
"program": "${workspaceFolder}/cmd/background-controller",
|
|
|
|
"args": [
|
|
|
|
"--kubeconfig=${userHome}/.kube/config",
|
|
|
|
],
|
2023-09-01 11:02:48 +00:00
|
|
|
"env": {
|
2023-06-26 10:08:51 +00:00
|
|
|
"KYVERNO_NAMESPACE": "kyverno",
|
|
|
|
"KYVERNO_SERVICEACCOUNT_NAME": "kyverno-background-controller",
|
|
|
|
"KYVERNO_DEPLOYMENT": "dummy",
|
|
|
|
"KYVERNO_POD_NAME": "dummy",
|
|
|
|
"INIT_CONFIG": "kyverno",
|
|
|
|
"METRICS_CONFIG": "kyverno-metrics",
|
|
|
|
}
|
2023-03-22 04:14:34 +00:00
|
|
|
},
|
2023-04-25 10:50:46 +00:00
|
|
|
{
|
|
|
|
"name": "Launch Cleanup Controller",
|
|
|
|
"type": "go",
|
|
|
|
"request": "launch",
|
|
|
|
"mode": "auto",
|
|
|
|
"program": "${workspaceFolder}/cmd/cleanup-controller",
|
|
|
|
"args": [
|
|
|
|
"--kubeconfig=${userHome}/.kube/config",
|
|
|
|
"--serverIP=<SERVER-IP>:9443",
|
2023-08-28 17:58:36 +00:00
|
|
|
"--caSecretName=kyverno-cleanup-controller.kyverno.svc.kyverno-tls-ca",
|
|
|
|
"--tlsSecretName=kyverno-cleanup-controller.kyverno.svc.kyverno-tls-pair",
|
2023-04-25 10:50:46 +00:00
|
|
|
],
|
2023-09-01 11:02:48 +00:00
|
|
|
"env": {
|
2023-06-26 10:08:51 +00:00
|
|
|
"KYVERNO_NAMESPACE": "kyverno",
|
|
|
|
"KYVERNO_SERVICEACCOUNT_NAME": "kyverno-cleanup-controller",
|
2023-09-01 11:02:48 +00:00
|
|
|
"KYVERNO_SVC": "kyverno-cleanup-controller",
|
2023-06-26 10:08:51 +00:00
|
|
|
"KYVERNO_DEPLOYMENT": "dummy",
|
|
|
|
"KYVERNO_POD_NAME": "dummy",
|
|
|
|
"INIT_CONFIG": "kyverno",
|
|
|
|
"METRICS_CONFIG": "kyverno-metrics",
|
|
|
|
}
|
2023-04-25 10:50:46 +00:00
|
|
|
},
|
2022-12-12 15:20:20 +00:00
|
|
|
{
|
|
|
|
"name": "Launch CLI",
|
|
|
|
"type": "go",
|
|
|
|
"request": "launch",
|
|
|
|
"mode": "auto",
|
|
|
|
"program": "${workspaceFolder}/cmd/cli/kubectl-kyverno",
|
2023-09-01 11:02:48 +00:00
|
|
|
"cwd": "${workspaceFolder}",
|
2022-12-12 15:20:20 +00:00
|
|
|
"args": [
|
|
|
|
"test",
|
2023-12-04 07:35:36 +00:00
|
|
|
"test/cli"
|
2022-12-12 15:20:20 +00:00
|
|
|
],
|
2022-10-10 13:50:04 +00:00
|
|
|
}
|
|
|
|
]
|
2023-06-26 10:08:51 +00:00
|
|
|
}
|