Skip to content

Commit

Permalink
logger panic fix (#200)
Browse files Browse the repository at this point in the history
Signed-off-by: Ved Ratan <[email protected]>
  • Loading branch information
VedRatan authored Jun 27, 2024
1 parent 8d06000 commit dd6fc99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/adapter/nimbus-kyverno/manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -437,9 +437,9 @@ func createTriggerForKp(ctx context.Context, nameNamespace common.Request) {
err = k8sClient.Create(context.TODO(), configMap)

if err != nil {
logger.Error(err, "failed to create trigger ConfigMap in namespace", "Namespace", nameNamespace.Namespace)
logger.Error(err, "failed to create trigger ConfigMap in namespace", "Namespace", configMap.Namespace)
} else {
fmt.Println(nameNamespace)
logger.Info("Created trigger ConfigMap in namespace ", nameNamespace.Namespace)
logger.Info("Created trigger ConfigMap in namespace ", "Namespace" ,configMap.Namespace)
}
}

0 comments on commit dd6fc99

Please sign in to comment.