kubeguard / guard

🔑 Kubernetes Authentication & Authorization WebHook Server
https://kubeguard.dev
Apache License 2.0
593 stars 81 forks source link

Add flag to call Graph api only when overage indicator is present #245

Closed weinong closed 4 years ago

weinong commented 4 years ago

This PR enables an optimization to skip calling to Graph api when any of below conditions satisfies

  1. groups claim is already present
  2. overage claim is not present

It fixes #171

tamalsaha commented 4 years ago

@weinong, can you please request one of your team members to review it ? Please update any doc needed. Same pr is ok.

weinong commented 4 years ago

@karataliu PTAL @tamalsaha doc is updated in this PR