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

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

    final ConfigBuilder configBuilder = new ConfigBuilder();
    if (args.length > 0) {
      configBuilder.withMasterUrl(args[0]);
    }
    try (KubernetesClient client = new KubernetesClientBuilder().withConfig(configBuilder.build()).build()) {
      VersionInfo versionInfo = client.getKubernetesVersion();

      logger.info("Version details of this Kubernetes cluster :-");
      logger.info("Major        : {}", versionInfo.getMajor());
      logger.info("Minor        : {}", versionInfo.getMinor());
      logger.info("GitVersion   : {}", versionInfo.getGitVersion());
      logger.info("BuildDate    : {}", versionInfo.getBuildDate());
      logger.info("GitTreeState : {}", versionInfo.getGitTreeState());
      logger.info("Platform     : {}", versionInfo.getPlatform());
      logger.info("GitVersion   : {}", versionInfo.getGitVersion());
      logger.info("GoVersion    : {}", versionInfo.getGoVersion());
      logger.info("GitCommit    : {}", versionInfo.getGitCommit());
    }
  
<no_super_class>