class CredentialsExample {

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

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

    final ConfigBuilder configBuilder = new ConfigBuilder();
    if (args.length > 0) {
      configBuilder.withMasterUrl(args[0]);
    }
    Config config = configBuilder
        .withTrustCerts(true)
        .withUsername("developer")
        .withPassword("developer")
        .withNamespace("myproject")
        .build();
    try (final KubernetesClient client = new KubernetesClientBuilder().withConfig(config).build()) {

      logger.info("Received pods {}", client.pods().list());

    } catch (Exception e) {
      logger.error(e.getMessage(), e);

      Throwable[] suppressed = e.getSuppressed();
      if (suppressed != null) {
        for (Throwable t : suppressed) {
          logger.error(t.getMessage(), t);
        }
      }
    }
  
<no_super_class>