Skip to content

Commit

Permalink
blee1
Browse files Browse the repository at this point in the history
  • Loading branch information
derailed committed Mar 6, 2024
1 parent ecd33ff commit 394fec3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,12 @@ func (a *APIClient) CanI(ns, gvr, name string, verbs []string) (auth bool, err e
for _, v := range verbs {
sar.Spec.ResourceAttributes.Verb = v
resp, err := client.Create(ctx, sar, metav1.CreateOptions{})
log.Trace().Msgf("[CAN] %s(%s) %v <<%v>>", gvr, verbs, resp, err)
log.Trace().Msgf("[CAN] %s(%q/%q) <%v>", gvr, ns, name, verbs)
if resp != nil {
log.Trace().Msgf(" Spec: %#v", resp.Spec)
log.Trace().Msgf(" Auth: %t [%q]", resp.Status.Allowed, resp.Status.Reason)
}
log.Trace().Msgf(" <<%v>>", err)
if err != nil {
log.Warn().Err(err).Msgf(" Dial Failed!")
a.cache.Add(key, false, cacheExpiry)
Expand Down

0 comments on commit 394fec3

Please sign in to comment.