class KubernetesExtension implements HasKubernetesClient, BeforeAllCallback, BeforeEachCallback {

  @Override
  public void beforeAll(ExtensionContext context) throws Exception {<FILL_FUNCTION_BODY>}

  @Override
  public void beforeEach(ExtensionContext context) throws Exception {
    for (Field field : extractFields(context, KubernetesClient.class, f -> !Modifier.isStatic(f.getModifiers()))) {
      for (Object testInstance : context.getRequiredTestInstances().getAllInstances()) {
        if (field.getDeclaringClass().isAssignableFrom(testInstance.getClass())) {
          setFieldValue(field, testInstance, getClient(context).adapt((Class<Client>) field.getType()));
        }
      }
    }
  }
}

    for (Field field : extractFields(context, KubernetesClient.class, f -> Modifier.isStatic(f.getModifiers()))) {
      setFieldValue(field, null, getClient(context).adapt((Class<Client>) field.getType()));
    }
  
<no_super_class>