Skip to content

Instantly share code, notes, and snippets.

@ihcsim
Last active January 18, 2025 22:11
Show Gist options
  • Select an option

  • Save ihcsim/a9b7e9c2b535fbf6d760a97b27c2679c to your computer and use it in GitHub Desktop.

Select an option

Save ihcsim/a9b7e9c2b535fbf6d760a97b27c2679c to your computer and use it in GitHub Desktop.
func (c *Controller) reconcile(ctx context.Context, policy *v1.ValidatingAdmissionPolicy) error {
if policy == nil {
return nil
}
if policy.Generation <= policy.Status.ObservedGeneration {
return nil
}
warnings := c.typeChecker.Check(policy)
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment