class LoginExample {
  private static final Logger logger = LoggerFactory.getLogger(LoginExample.class);

  public static void main(String[] args) {<FILL_FUNCTION_BODY>}
}

    try (KubernetesClient kubernetesClient = new KubernetesClientBuilder().withConfig(new ConfigBuilder()
        .withMasterUrl("cluster_url")
        .withUsername("my_username")
        .withPassword("my_password")
        .build()).build()) {
      final OpenShiftClient openShiftClient = kubernetesClient.adapt(OpenShiftClient.class);
      logger.info("Login Successful");
      final ProjectList pl = openShiftClient.projects().list();
      pl.getItems().stream().map(Project::getMetadata).map(ObjectMeta::getName).forEach(logger::info);
    }
  
<no_super_class>