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

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

    Config config = new ConfigBuilder().build();
    try (KubernetesClient client = new KubernetesClientBuilder().withConfig(config).build()) {

      String namespace = null;
      if (args.length > 0) {
        namespace = args[0];
      }
      if (namespace == null) {
        namespace = client.getNamespace();
      }
      if (namespace == null) {
        namespace = "default";
      }

      String name = "cheese";
      Resource<ConfigMap> configMapResource = client.configMaps().inNamespace(namespace)
          .resource(new ConfigMapBuilder().withNewMetadata().withName(name)
              .endMetadata().addToData("foo", "" + new Date()).addToData("bar", "beer")
              .build());

      ConfigMap configMap = configMapResource.createOrReplace();

      logger.info("Upserted ConfigMap at {} data {}", configMap.getMetadata().getSelfLink(), configMap.getData());

    }
  
<no_super_class>