mirror of
https://github.com/kairos-io/kcrypt-challenger.git
synced 2025-09-01 06:37:49 +00:00
Add more logs and refactor the server handers
- Flatten if/else logic by handling errors and returning early - Use different logger for server logs. Also handle skipped errors. - Remove unecessary for loop - --zap-log-level can already be used (and it works) - Remove non-existent enki flag - Run tests with KVM enabled on self-hosted runners and also don't add grub.cfg since it's already there in the base image - Remove non-used earthly target Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
This commit is contained in:
5
main.go
5
main.go
@@ -23,6 +23,7 @@ import (
|
||||
|
||||
// Import all Kubernetes client auth plugins (e.g. Azure, GCP, OIDC, etc.)
|
||||
// to ensure that exec-entrypoint and run can make use of them.
|
||||
|
||||
"k8s.io/client-go/kubernetes"
|
||||
_ "k8s.io/client-go/plugin/pkg/client/auth"
|
||||
|
||||
@@ -120,7 +121,9 @@ func main() {
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
go challenger.Start(context.Background(), clientset, reconciler, namespace, challengerAddr)
|
||||
serverLog := ctrl.Log.WithName("server")
|
||||
|
||||
go challenger.Start(context.Background(), serverLog, clientset, reconciler, namespace, challengerAddr)
|
||||
|
||||
setupLog.Info("starting manager")
|
||||
if err := mgr.Start(ctrl.SetupSignalHandler()); err != nil {
|
||||
|
Reference in New Issue
Block a user