Skip to content

Commit

Permalink
Disable NS quota in agent if UsageProfiles are disabled. (#88)
Browse files Browse the repository at this point in the history
They are still active in Kyverno if not actively disabled there.
  • Loading branch information
bastjan authored Mar 18, 2024
1 parent 85201d8 commit df821b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,10 @@ func main() {
Client: mgr.GetClient(),
Decoder: admission.NewDecoder(mgr.GetScheme()),

Skipper: psk,
Skipper: skipper.NewMultiSkipper(
skipper.StaticSkipper{ShouldSkip: disableUsageProfiles},
psk,
),

OrganizationLabel: conf.OrganizationLabel,
UserDefaultOrganizationAnnotation: conf.UserDefaultOrganizationAnnotation,
Expand Down

0 comments on commit df821b1

Please sign in to comment.